I can see that I am connected to the hotel WiFi on my laptop, but the login screen does not come up on my browser. So I cannot access the Internet.
My mobile phone automagically connects to the hotel WiFi and brings up the login screen. So I know that the WiFi is working and allows access to the Internet.
How do I get the WiFi login screen on my laptop?
Solution - short answers
default via 192.168.96.1 dev wlp3s0 192.168.96.0/20 dev wlp3s0 proto kernel scope link src 192.168.108.193
Look at the first line 'default via 192.168.96.1'. Put the value 192.168.96.1, or whatever you have for that value in the first line, into your browser address bar. This should take you to the login screen.
Look in the file /etc/resolv.conf after connecting to the WiFi and type the private IP address in this file into your browser.
To see the contents of this file, type:
Here's the output I got. Yours will probably have a different content:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 192.168.96.1 nameserver 220.127.116.11 nameserver 18.104.22.168
When I put the private IP value (192.168.96.1 in this example) into Firefox, the login screen appeared.
Hopefully, one of these methods works for you. I put an expanded explanation and the background story below. I like background stories. Makes me feel like I'm not the only one who has trouble figuring things out.
I use a VPN when accessing the world wide web. This adds a layer of security when using public networks.
Our internet connection use a domain name system(DNS) server to find out where to go to get the contents for the web addresses we ask it to access. The file /etc/resolv.conf contains the IP addresses of the DNS servers in use by the current connection. This file is automatically created when you set up a new connection.
Looking at the contents of /etc/resolv.conf after I connected with the hotel WiFi, I recognise the IP addresses 22.214.171.124 and 126.96.36.199 as Google DNS addresses. This makes sense. Google will have a database of what website is where if anybody does.
The IP addresses 192.168.0.0 to 192.168.255.255 are reserved for private network addresses.
The IP address of 192.168.96.1 in the file /etc/resolv.conf is one of the addresses reserved for private networks. So this looks to be the local access point. This makes sense. The IP address for the login page is a private address on the hotel network, not accessible on the world wide web where anybody could have a go at logging in to the hotel WiFi.
Putting this IP value (192.168.96.1) into Firefox has us directed to the local login page.
I finally got to grips with this during the Covid 19 pandemic. I spent some time quarantining in a hotel in Rio de Janeiro before joining a survey ship to work offshore Brazil.
It works, then doesn't the next time you use it
Try clearing the browser cache.
Disable any VPN you are using while connecting, then re-enable the VPN.
I hope this post is of use to others. I welcome any comments and corrections.