How to fix Network Manager issue with public Wi-Fi connection

The arrival of the summer pushes people to move, it’s usually a good time to go to beaches or mountains and, in general, to holiday locations. We need to solve the Network Manager issue with public Wi-Fi to bring with us the laptop and to surf the web thanks to one of the many free Wi-Fi connections. Yes, this is the idea but what if our Linux doesn’t want to connect.


No captive portal, no connection to free Wi-Fi. What’s the matter?

In order to have Internet access through a public Wi-Fi connection, you had to agree to the terms of service and, sometimes, to click a ‘Connect’ button. The page that opens up showing an agreement is the ‘infamous’ captive portal. Many places that offer free public Wi-Fi use this method.

Many times, especially if you use GNOME with Network Manager (and both with Firefox and Chrome / and both on Fedora or Ubuntu), it happens that you are unable to connect and also unable to view the captive portal to make the access to the free Internet connection.

So, how to solve this annoying behavior?

I had the same problem and I solved it editing the /etc/NetworkManager/NetworkManager.conf file.

First, open the file with a text editor:

$ sudo vi /etc/NetworkManager/NetworkManager.conf

Then, add to it the following lines:



Finally, restart Network Manager:

$ service network-manager restart

That’s all.