So whenever I am in hotels (or other public networks) after I connect to the hotel network a browser window opens with a logon page or customer agreement.

How does Windows know to open a webpage when connecting to the network?

marked as duplicate by Xavierjazz, Mokubai Dec 1 '16 at 16:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • The browser window opens up automatically? I expect DNS fakery to forward the request to the hotel log in site instead of the page you are requesting. but only after you open the browser – ratchet freak Dec 1 '16 at 16:26

Windows detects that there is an Captive Portal and lauches the browser. The page loaded is from the router of the establishment that redirects all http requests to their own webserver who hosts the login page. That way it is transparent to the end-user.

Once you have logged in, the router will then act as a proxy and let your requests go to the internet normally.

These systems are called Captive Portals. Here is the Wikipedia article on them: https://en.wikipedia.org/wiki/Captive_portal

Microsoft Windows does in fact automatically open a broswer window when it detects captive portals. Here is the MSDN article that describes this: https://msdn.microsoft.com/en-us/library/windows/hardware/dn408681.aspx

  • Immediately after connecting to the network windows opens a webpage (without user interaction). Something has to happen to trigger that, its kicking off a web-request or something no? I should say I'm familiar with how the proxy works, just don't get how a webpage opens as soon as I connect. – user1028270 Dec 1 '16 at 16:28
  • 1
    Windows probably detects that there is a Captive Portal and prompts you because it is not able to connect to it's normal services. I added the link to the Wikipedia article on captive portals in my answer. – IronWilliamCash Dec 1 '16 at 16:30
  • 1
    Yes it seems what when Windows detects captive portals, it opens a Window automatically. I added this too to my answer. – IronWilliamCash Dec 1 '16 at 16:32
  • 1
    Ah ha! That's pretty cool, also looks like this was a new feature starting with Windows 8: msdn.microsoft.com/en-us/library/windows/hardware/dn408681.aspx – user1028270 Dec 1 '16 at 16:34
  • Glad I could help! – IronWilliamCash Dec 1 '16 at 16:36

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