How does windows (7 in my case) knows that I'm "connected to the internet"?

4

2

Possible Duplicate:
How does Windows know whether it has internet access or if a Wi-Fi connection requires in-browser authentication?

I see "internet connection" or "no internet connection" on the network chooser in windows 7. How does it knows if it has an internet connection at all? What site does it ping? (or access, or lookup.... or ???)

Ran Biron

Posted 2010-12-06T19:19:19.437

Reputation: 143

Question was closed 2013-01-15T11:31:31.730

Answers

2

It checks for DNS. If you have a loaded DNS list then it considers you connected to the internet.

If you don't have DNS then it assumes you're on LAN only.

It will mistakenly tell you you're connected to the internet if you're on a LAN that has a local DNS server that is not actually able to reach the external network.

Steven Mietelski

Posted 2010-12-06T19:19:19.437

Reputation: 66

You can also hardcode your DNS servers and then connect to a local router that doesn't have access to verify this. It won't know that you're not actually connected if you have DNS – Steven Mietelski – 2011-01-04T21:16:09.830

0

Actually this feature is called Network Connectivity Status Indicator (NCSI), it basically does a DNS resolution of a specific Microsoft server, then requests a file from it that should contain a certain phrase.. More details can be found from the superuser blog post that discussed a superuser Question of the Week...

*The mentioned question and blog post were written AFTER the time this question was asked.. But I don't think that question will ever be closed as duplicated after all those upvotes :D

amyassin

Posted 2010-12-06T19:19:19.437

Reputation: 293