Wi-Fi automatically disconnects when no public internet access is available

kerman QPC 25 Reputation points
2025-10-10T17:16:09.24+00:00

I work on an intranet and can't access the public internet. However, the Wi-Fi feature on Windows automatically disconnects when it detects that the Wi-Fi can't access the public internet (http://www.msftconnecttest.com/connecttest.txt).

How can I prevent this automatic disconnection? It seems that this feature isn't available in current Windows versions.

I really don't need this so-called feature to improve the user experience. Please stop disconnecting me. I'm accessing the intranet!

Windows development | Internet Information Services
0 comments No comments
{count} votes

Answer accepted by question author
  1. Tom Tran (WICLOUD CORPORATION) 1,995 Reputation points Microsoft External Staff
    2025-10-13T06:33:34.2466667+00:00

    Hi @kerman QPC ,

    Thank you for sharing the details.

    From my understanding, this behavior is tied to the Network Connectivity Status Indicator (NCSI), which checks for public internet connectivity using http://www.msftconnecttest.com/connecttest.txt. When the check fails, Windows marks the network as “limited,” and in some cases, auto-disconnect occurs.


    Why This Happens

    Windows is designed to improve user experience by detecting captive portals and avoiding “dead” connections. However, in intranet-only environments, this can feel unnecessary.

    While there’s no direct toggle in current Windows versions, you can disable the active probe that triggers this behavior. Here are two common approaches:


    Option 1: Disable NCSI Active Probes via Registry

    1. Open Registry Editor (regedit).
    2. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet
    3. Modify or create the DWORD value:
    • Name: EnableActiveProbing
    • Value: 0 (to disable)
    1. Restart your computer.

    This stops Windows from checking msftconnecttest.com, so your Wi-Fi won’t disconnect due to lack of internet.


    Option 2: Use Group Policy (Enterprise Recommended)

    1. Open Group Policy Editor (gpedit.msc).
    2. Go to: Computer Configuration > Administrative Templates > Network > Network Connectivity Status Indicator
    3. Enable the policy: "Specify passive polling".
    4. Apply and restart.

    Important Note: Disabling NCSI means Windows won’t detect captive portals or limited connectivity, which is usually fine for intranet setups. For more details, see:


    If this resolves your issue, please let me know. Your feedback helps others with similar setups.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.