How does Windows know when your Internet connection (but not your LAN connection) goes down? [duplicate]

Solution 1:

This behavior is activated by setting the DWORD value EnableActiveProbing in

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet

to the value 1, and respectively 0 to disable it.

On certain events like login or connection problems it checks DNS with nslookup dns.msftncsi.com and verifies that it returns 131.107.255.255, then to test your HTTP it tries to download ncsi.txt from msftncsi.com. It should contain Microsoft NCSI, which stands for Network Connectivity Status Indicator...

More information can be read in the Microsoft Technical Library.