4

When I connect to a hotel network that does not require a WPA key, on my PC, the first browser access will be trapped and directed to the login page. This is understandable, and I can guess the network equipment provisions access by MAC address.

On my Android (5.0) phone, a Sign-in to Network screen opens and it shows that same web page as what I see on the PC. What is the protocol that makes this happen?

  • Why do you think it would be any different? – Ron Maupin Jan 2 '16 at 1:46
  • If it's the same, what/who triggers a web access? How would Android know that the web access was hijacked by a login page and thus launch the Sign-in to Network app? – Old Geezer Jan 2 '16 at 3:16
  • You probably have some application still running in the background using HTTP. When it tries to connect through Wi-Fi, the hotel network does exactly the same thing as it does for your PC. You need to investigate what on your phone is trying to use HTTP through the hotel Wi-Fi. – Ron Maupin Jan 2 '16 at 3:20
  • 2
    It's called a Captive Portal – DavidPostill Jan 2 '16 at 14:35
  • 2
7
+25

Direct quote from How Automatic Detection of Captive Portal works (follow link for full text)

Basic strategy behind Captive Portal detection
The Automatic Detection of Captive Portal mechanism is based on a simple verification, done by the Operational System (OS) of the client device (smartphone, tablet, laptop).
It simply tries to reach a specific URL and verify that such URL returns a well-known result.

  • If a Captive Portal is not in place, the result will match the expected one and the OS will know that there is full access to internet.
  • If the URL returns a result other than the expected one, then the OS will detect that there is a Captive Portal in place and that it's needed to proceed with authentication in order to get full access to internet: in this case the OS will open the Splash Page automatically.

Further Readings
Windows 7 Network Awareness: How Windows knows it has an internet connection
Captive portals - MSDN

  • This is exactly how Apple does it (as an example) because if you've got custom DNS settings and you try to connect to a captive portal it tries to connect to an apple.com URL and fails. – Kinnectus Jul 11 '16 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.