To find out whether you have internet in Windows, open Command Prompt and run ping 8.8.8.8, then ping example.com. If replies come back from both, you have internet; if only the first works, the connection is fine but DNS is failing.
The checks below go from fastest to most specific. Each one rules out a different layer: your adapter, your router, your provider, and name lookup.
Step 1: Read the network icon in the taskbar
The icon at the bottom right of the taskbar is drawn by the Network Connectivity Status Indicator (NCSI). Microsoft documents three states: connected over a wired link, connected over wireless, and connected with no internet. For Wi-Fi, a connection with no internet shows the text "No Internet" under the network name when you click the icon.
NCSI works by sending an HTTP request to a Microsoft-hosted probe address. If the reply is valid, Windows treats the device as having internet. The probe can fail for reasons that have nothing to do with your provider. Microsoft lists a proxy that blocks the request (for example an HTTP 403 Forbidden reply), a misconfigured proxy, and a captive portal that redirects the request instead of passing it through. In the captive portal case the response doesn't match the expected content, Microsoft Connect Test.
So treat the icon as a hint. "No Internet" usually means something is wrong, but it can also be a false alarm. A step 2 result overrules it.
Step 2: Ping an IP address
Press Win+R, type cmd and press Enter. Then run:
ping 8.8.8.8
8.8.8.8 is a public IP address, so this test needs no name lookup. By default Windows sends 4 echo requests and waits up to 4 seconds for each reply. Example output when the internet works:
Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=14ms TTL=117
Reply from 8.8.8.8: bytes=32 time=13ms TTL=117
Reply from 8.8.8.8: bytes=32 time=14ms TTL=117
Reply from 8.8.8.8: bytes=32 time=13ms TTL=117
Example output when it does not:
Pinging 8.8.8.8 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out is the message Windows prints when no echo reply arrives within the timeout. A single timed-out reply among good ones is packet loss, not an outage. The article on the ping command explains the options and how to read the statistics.
Step 3: Ping a website name
ping example.com
This test adds a DNS lookup. Microsoft's ping documentation describes the diagnosis: if pinging the IP address succeeds but pinging the name does not, you may have a name resolution problem. In that case your connection is working and the fault is in DNS. Start with the DNS server not responding fix.
Some servers ignore ping on purpose, so a timeout from one website proves little. If a name fails, try a second site before drawing a conclusion. If a specific site is the only thing that won't load, see how to check if a website is down.
Step 4: Use Test-NetConnection in PowerShell
PowerShell has a cmdlet built for this. Run it with no arguments:
Test-NetConnection
With no parameters it pings a default Microsoft test server. In Microsoft's documentation that server is internetbeacon.msedge.net. Example output:
ComputerName : internetbeacon.msedge.net
RemoteAddress : 13.107.4.52
InterfaceAlias : Ethernet
SourceAddress : 192.168.1.20
PingSucceeded : True
PingReplyDetails (RTT) : 6 ms
PingSucceeded : True means the ping got through. The output also names the adapter that carried it (InterfaceAlias), which helps if your PC has both Ethernet and Wi-Fi. To get only a yes or no, add -InformationLevel Quiet; for a ping test the cmdlet then returns a Boolean.
Test-NetConnection -ComputerName example.com -InformationLevel Quiet
You can also test a TCP port, which is closer to what a browser does than a ping. This checks whether a connection to port 443 (HTTPS) opens:
Test-NetConnection -ComputerName example.com -Port 443
The result field to read is TcpTestSucceeded. This matters when ICMP is blocked but web traffic is not, or the reverse.
Step 5: Find out whether the router or the provider is at fault
If step 2 failed, ping your router next. First find its address:
ipconfig
Look for the Default Gateway line under your active adapter, then ping that address (the example uses a typical home value, yours may differ):
ping 192.168.1.1
Microsoft's Wi-Fi troubleshooting page lists pinging the default gateway as the way to check whether the problem is the router or your internet provider. Read the result like this:
| Ping to router | Ping to 8.8.8.8 | Likely cause |
|---|---|---|
| Replies | Replies | Internet works. If a site fails, the problem is DNS or that site. |
| Replies | Times out | Your PC reaches the router, but the router has no working link beyond it: modem, cable, or provider. |
| Times out | Times out | Your PC cannot reach the router: Wi-Fi link, cable, adapter or driver. |
If the router answers but nothing beyond it does, check whether another phone or laptop on the same network has internet. When no device does, the fault is on the router, modem or provider side. When only one device fails, the fault is on that device.
What to try when the check fails
Microsoft's own troubleshooting list for Wi-Fi problems is a sensible order of attack. These are the first steps from it, in that order:
- Run the Network troubleshooter: Settings > Network & internet > Status on Windows 11.
- Confirm Wi-Fi is on, the network shows as connected, and Airplane mode is off.
- Forget the network and reconnect to it.
- Restart the modem and router.
- Switch between 2.4 GHz and 5 GHz if your router offers both.
Further steps on Microsoft's list include running network commands as administrator (ipconfig /release, ipconfig /renew, ipconfig /flushdns, netsh winsock reset, netsh int ip reset), reinstalling the adapter driver, and using Network reset as a last resort. The ipconfig release and renew guide covers the first two. Network reset can require reinstalling VPN clients afterward, so leave it for last.
If the internet works but it feels broken
Having internet and having good internet are different. Pages that load slowly or calls that stutter point to speed or packet loss rather than an outage. Measure it with the steps in how to test your internet speed.
If every test passes but one app still fails, look at the VPN and proxy settings. Microsoft notes that a VPN shows as a small blue shield on the Wi-Fi icon, and the NCSI documentation names proxies as a common reason for a wrong "No Internet" status. Turn the VPN off temporarily and repeat the ping test to see whether it makes a difference.
Frequently asked questions
- Why does Windows say "No Internet" when websites still load?
- The taskbar status comes from a separate probe, not from your browser. Windows sends a small HTTP request to a Microsoft test address and expects a specific reply. If a proxy, VPN, firewall or captive portal blocks or alters that request, Windows can show no internet while other sites work. Test a real website to see which is correct.
- What does "Request timed out" mean in ping?
- It means no echo reply came back within the timeout, which is 4000 ms (4 seconds) by default on Windows. The destination may be unreachable, or something along the path may block ICMP. Try a second destination before concluding the internet is down.
- Can I be connected to Wi-Fi and have no internet?
- Yes. Wi-Fi only links your PC to the router. The router still needs a working link to your internet provider. Windows shows this state as a connected network with the text "No Internet" under its name.
- How do I tell if the problem is my PC or my provider?
- Test another device on the same network. If it also has no internet, check the router and modem, then your provider. If only one device fails, the cause is on that device: its adapter, its settings, or its DNS.