1

I installed Ubuntu 17 on a Lenovo Ideapad 700 and I'm having some troubles connecting to only some public WiFi networks. The problem is, after connecting to the hotel's WiFi, Firefox won't redirect me to the login page. But in my office's WiFi network it perfectly redirects to login page without any issues.

Please note that the hotel's WiFi network work with other devices. Also I tried to enter random URLs and IPs after googling and nothing seems to work.

Any help is much appreciated to resolve this issue.

Eliah Kagan
  • 119,640
SSB
  • 11
  • 1
  • 2

1 Answers1

0

On Ubuntu 20.04 (Unity) I ran route -n where the first "Destination" was 0.0.0.0 and the "Gateway" was 172.31.0.1. I could ping the gateway IP (ping 172.31.0.1), but not public ones like Google's 8.8.8.8.

Captive portal was working on my android phone so I could connect there and see which URL I was being redirected to in my mobile browser. I used this to edit my hosts file in order to connect the IP to this domain: sudo vi /etc/hosts and added a new entry like:

172.31.0.1 gialto.wifi/hotspot/novotelmedellinguest

Then in the internet settings in the upper right of the desktop I unticked "enable networking" and then reticked it. From there I could put the full http://gialto.wifi/hotspot/novotelmedellinguest URL into my browser and enter my credentials / accept their terms.