Our Thinking / Field Notes / The Fix

TROUBLESHOOTING / WINDOWS 11 WI-FI CONNECTED BUT NO INTERNET

Windows 11 Connected to Wi-Fi but No Internet: How to Fix It

Windows 11 says Wi-Fi is connected but there is no internet. Work out whether the PC, the router or Windows' own status check is at fault, then fix it with the least disruptive step first.

Start here

Find out which side is broken before changing anything. If another device on the same Wi-Fi also has no internet, the router, broadband line or a network sign-in page is the problem, not your PC. If only the PC fails, run the read-only checks below, then work up through renewing the IP address, removing a stray proxy or VPN, resetting the Winsock and TCP/IP stack, and only then the adapter driver and Windows Network reset. If a browser works but Windows still says No internet, something is probably blocking Windows' own connectivity check.

Decide whether the PC is the problem

Wi-Fi has two jobs. First your PC joins the wireless network, which is all 'connected' means. Then the network has to pass your traffic to the internet through a router, and that second part can fail while the first looks perfectly healthy. 'Connected, no internet' is a symptom, not a diagnosis, and two quick comparisons tell you which half to look at.

Neither comparison changes anything on the PC, so do them before any command or reset.

  • Try another device on the same Wi-Fi network. If a phone or second laptop also cannot get online, stop troubleshooting Windows and look at the router, the broadband line or a sign-in page on the network.
  • Try the PC on a different connection, such as a phone hotspot or an Ethernet cable. If it works there, the PC is probably healthy and the original network is the problem. If it fails everywhere, the fault is on the PC.
  • Glance at the router or access point for warning lights. Power-cycling it is a reasonable first move if every device is affected and nobody else is relying on it at that moment.

Read-only checks on the PC

These commands only display information. Run them in Windows Terminal or PowerShell from the Start menu; you do not need administrator rights. They show how far your traffic gets, which saves you from resetting things that were never broken.

Where a command needs a value from your own network, replace the placeholder in capitals. Wait for each command to finish before running the next.

  1. Run the first command and look at the entry for your Wi-Fi connection. IPv4Connectivity should say Internet. Any other value means Windows has not confirmed internet access on that connection.
    powershell
    Get-NetConnectionProfile
  2. Run ipconfig /all and find the section for the Wi-Fi adapter. Note the IPv4 Address, the Default Gateway (your router) and the DNS Servers. An IPv4 address starting 169.254 is one Windows invented for itself because nothing handed it a proper address.
    cmd
    ipconfig /all
  3. Ping the default gateway. Replace YOUR_GATEWAY_ADDRESS with the Default Gateway value from the previous step. Replies mean the PC can talk to the router.
    cmd
    ping YOUR_GATEWAY_ADDRESS
  4. Ping a well-known public address by number, which takes DNS out of the equation. Some networks block ping, so a failure here is a clue rather than proof.
    cmd
    ping 1.1.1.1
  5. Ask Windows to look up a name. This uses the same name Windows itself uses for its connectivity check, so it is a fair test of DNS.
    powershell
    Resolve-DnsName www.msftconnecttest.com

What those results point to

Read the results from the top down and stop at the first thing that looks wrong.

  • An address starting 169.254: the router's DHCP service (the part that hands out addresses) did not answer. Renewing the address in the next sections may fix it. If it does not, the fault is on the router or network, not in Windows.
  • No reply from the default gateway: the wireless link itself is unhealthy, or a guest network is isolating devices. Move closer, try another access point, and check whether the network is meant to allow internet access at all.
  • Gateway replies but the public address does not: the router has lost its own route out. Check the broadband line and the router's status page. If other devices fail too, this is almost certainly not the PC.
  • Public address replies but the name lookup fails: DNS (the system that turns names into addresses) is the problem. Flushing the cache or changing the DNS server, covered below, is the next step.
  • Everything replies but Windows still reports no internet, or pages hang: suspect a network sign-in page, a proxy, a VPN, security software, or Windows' own status check being blocked.

Sign-in pages, proxies and VPNs

Hotel, guest and café networks often use a captive portal: they let you join, then hold all traffic until you accept terms or sign in. Windows detects this by fetching a tiny text file over plain HTTP and checking what comes back. If something other than the expected text arrives, such as a redirect or a login page, Windows treats the network as having no real internet. Windows usually opens the sign-in page for you, but it does not always manage it.

  1. Open a browser and type this address in full, starting with http and not https: http://www.msftconnecttest.com/connecttest.txt. A working connection shows the plain text Microsoft Connect Test. A sign-in page, a redirect or a blank page means a captive portal or filter is intercepting the request. Complete the sign-in and the status should change within a few seconds.
  2. Open Settings, then Network & internet, then Proxy. If Use a proxy server is on under Manual proxy setup and you do not recognise it, note the details first, then turn it off and retest. On a business PC a proxy may be deliberate or pushed by policy, so do not fight it: if it comes back or is required, pass the details to whoever manages the network.
  3. Disconnect any VPN client and retest. Some VPN setups reroute all traffic, and if the route is wrong the PC loses its path out while Wi-Fi still shows connected. If the internet returns, the VPN configuration is the thing to fix, not the Wi-Fi.

Renew the address and clear cached lookups

This is the gentlest fix that actually changes something. It asks the router for a fresh IP address and throws away cached DNS answers. Open Terminal as administrator by right-clicking Start and choosing Terminal (Admin).

One warning for support technicians: releasing the address drops the network connection for a moment, so do not run it over a remote session that depends on this same Wi-Fi. You will lose the session and may need someone on site to reconnect. It only affects adapters set to obtain an address automatically; a manually configured address is left alone. The change is temporary, because Windows asks for a new address as soon as you renew or reconnect.

  1. Release the current address and request a new one. Run the two commands one after the other, waiting for the first to finish.
    cmd
    ipconfig /release
    ipconfig /renew
  2. Clear the DNS cache. This only discards stored lookups, which Windows rebuilds as needed.
    cmd
    ipconfig /flushdns
  3. Run Get-NetConnectionProfile again. If IPv4Connectivity now says Internet, you are done. If the address still starts 169.254, the router is not answering DHCP requests and further changes on the PC will not help.
    powershell
    Get-NetConnectionProfile
  4. If name lookups were the failing check earlier, try a different DNS server as a test. Open Settings, then Network & internet, then Wi-Fi, open the properties of your network and edit the DNS server assignment. On a work PC that joins a domain, do not leave public DNS servers in place, because they cannot resolve internal names. To roll back, set the assignment back to automatic.

Reset the Winsock and TCP/IP stack

If the address and DNS look right but traffic still goes nowhere, the network software layers inside Windows may be damaged. Winsock is the layer that applications use to talk to the network, and VPN clients and security tools sometimes insert themselves into it. Resetting it and the TCP/IP settings returns both to a clean state.

Use an administrator terminal. The reset commands change system networking settings and need a restart to take effect. Before you start, write down any manually set IP address or DNS server on this PC, because the TCP/IP reset may clear them. Third-party VPN or security software that hooked into Winsock may need repairing or reinstalling afterwards.

Wait for the restart to finish and sign back in before testing. A minute or two is typical, longer if Windows applies updates on the way.

  1. Reset the Winsock catalogue.
    cmd
    netsh winsock reset
  2. Reset the TCP/IP stack. If either command reports errors, stop and treat the PC as needing support or the Network reset described below, rather than repeating them.
    cmd
    netsh int ip reset
  3. Restart the PC from Start, Power, Restart.
  4. After signing back in, rerun Get-NetConnectionProfile and the browser test from earlier.

Adapter settings, drivers and Network reset

Work through these in order, because each is more disruptive than the one before. Wi-Fi adapters that drop out or half-work are often a power-saving or driver issue, which tends to show as a connection that works for a while after a restart and then dies.

Removing a driver while Wi-Fi is your only way online can leave you stranded. Download the manufacturer's driver on another device first and keep a copy on a USB drive.

  1. Open Device Manager, expand Network adapters, right-click your Wi-Fi adapter, choose Properties and open the Power Management tab. Clear Allow the computer to turn off this device to save power, then select OK.
  2. Open Settings, then Windows Update, and select Check for updates. Install anything offered, including optional driver updates for the adapter if listed, then restart.
  3. If the problem remains, uninstall and reinstall the adapter driver. Download the latest driver from the PC maker's support site first. In Device Manager, select the adapter and choose Uninstall device. Tick Attempt to remove the driver for this device only if you have the replacement driver saved, then select Uninstall and restart. Windows normally reinstalls the adapter on startup; if it does not, install the saved driver.
  4. As a last resort, go to Settings, then Network & internet, then Advanced network settings, then Network reset, and select Reset now. This removes and reinstalls your network adapters, restores their settings to defaults and restarts the PC. Expect to reconnect to Wi-Fi networks and enter their passwords again. VPN clients and Hyper-V virtual switches may need reinstalling or recreating, and networks may come back as the Public profile. Save any work first and confirm you have the Wi-Fi password to hand.
  5. When the PC is back, connect to Wi-Fi and check that Get-NetConnectionProfile reports Internet.

Windows says No internet but your browser works

The network icon and the Get-NetConnectionProfile result come from Windows' Network Connectivity Status Indicator, or NCSI. It sends a small web request to Microsoft's probe address and expects a specific reply. If a firewall, proxy, content filter or security product interferes with that one request, Windows reports no internet even though everything else works. Microsoft itself warns not to rely solely on the indicator. Where you see this, the fix belongs on the network side, not in the PC.

The relevant details for an administrator are these. From Windows 10 version 1607 onward the probe is an HTTP request to www.msftconnecttest.com/connecttest.txt, which should return HTTP 200 with the text Microsoft Connect Test. Allow the hostnames msftconnecttest.com and msftncsi.com through filters and proxies on port 80. Do not write rules based on IP addresses, because the public probe servers moved to Akamai in June 2023 and an old IP-based rule is a known cause of failures since then. Do not disable active probing as a workaround: Microsoft says passive checks alone cannot detect every connectivity problem.

The first command below tests that the probe host is reachable on port 80 and reports TcpTestSucceeded as True if so. The second reads the most recent NCSI log entries, which record why a probe failed, such as a captive portal or a proxy problem. Both are read-only.

powershell
Test-NetConnection -ComputerName www.msftconnecttest.com -Port 80
powershell
Get-WinEvent -LogName "Microsoft-Windows-NCSI/Operational" -MaxEvents 20 | Format-List TimeCreated, Id, Message

Confirm the fix and know when to hand over

You are done when the browser test returns Microsoft Connect Test, Get-NetConnectionProfile reports Internet for the Wi-Fi connection, the taskbar network icon no longer shows a warning and ordinary websites load. Check after a restart as well, because a fault that returns after a reboot points at the adapter driver or power settings rather than the network.

Hand it to someone else in these cases. Other devices fail too, which points at the router, the broadband line or the provider. The PC is managed by an IT team and a proxy, VPN or firewall policy is involved. The 169.254 address persists after renewing, which means the router's DHCP service needs attention. Or the fault survives a driver reinstall and Network reset, which suggests failing adapter hardware, so a different adapter such as a USB Wi-Fi dongle or Ethernet is a quick way to confirm.

Technical terms explained
169.254
The start of the self-assigned addresses Windows uses when it cannot get an address from DHCP. It means the PC has no valid address from the router.
captive portal
A sign-in or terms page that a public or guest Wi-Fi network shows before it allows internet access.
default gateway
The address of the router your PC sends traffic to when the destination is outside the local network.
DHCP
The service, usually running on the router, that hands out IP addresses and related settings to devices when they join a network.
DNS
The system that turns website names into the numeric addresses computers use. If it fails, addresses may still work while names do not.
NCSI
Network Connectivity Status Indicator, the Windows feature that tests whether a connection reaches the internet and drives the taskbar icon.
proxy
A server your traffic is sent through on its way to the internet. A wrong or unreachable proxy can block browsing and connectivity checks.
Winsock
The Windows Sockets layer that applications use to communicate over the network. Resetting it removes added components and restores defaults.

Sources and further reading

KEEP THE CONVERSATION GOING

Still stuck on a network fault?

If the problem sits on the router, the firewall or a managed PC rather than one laptop, Rismor can help with diagnosing office network and Windows connectivity issues.

Contact Rismor