ipconfig.co.uk

No internet but Wi-Fi says connected: what to check, in order


Seven checks, in the order that finds the broken layer fastest, with the Windows, macOS and Linux command for each.

"Connected, no internet" is one of the least helpful messages a computer can show. It only tells you that the Wi-Fi part worked: your device found the access point and the password was accepted. Everything after that (an address, a route to the router, the router's own internet connection, DNS) could still be broken. The trick is to test each of those in order, because the first one that fails is where the problem is.

1. Is it only this device?

Pick up your phone, turn off mobile data, and try a website over the same Wi-Fi. This one test splits the problem in half.

  • Nothing works on any device: the router or the broadband line is the problem. Skip to step 6.
  • Other devices are fine: the problem is on this computer. Carry on with step 2. If it is an older laptop that misbehaves on every network, ihatethiscomputer.co.uk's fix-or-replace checklist makes the same point: test another device before blaming the laptop.

2. Do you have a real IP address?

Windows · Command Prompt
ipconfig

Look at the Wi-Fi adapter's IPv4 address. A normal home address starts 192.168., 10. or 172.16 to 172.31. If it starts 169.254, or there is no IPv4 address at all, the router never answered your DHCP request. That is the most common cause of "connected, no internet" on busy or guest networks. The 169.254 section of the troubleshooting playbook covers why, but the quick fix on Windows is:

Windows · Command Prompt
ipconfig /release
ipconfig /renew

If you get a proper address back, try the web again. What release and renew actually do.

3. Is there a default gateway, and does it answer?

In the same ipconfig output, the Default Gateway line should show your router's address, usually something like 192.168.1.1 or 192.168.1.254. If it is blank, see no default gateway. If it is there, ping it:

Windows · Command Prompt
ping 192.168.1.1

Use your own gateway address, not this example. Replies mean the Wi-Fi link to the router works. Timeouts with a good signal often mean a mesh node or extender has lost its connection to the main router, or two devices are fighting over one address (see IP address conflicts). Some routers simply do not answer ping, so treat a timeout as a hint rather than proof.

4. Can you reach the internet by number?

Any shell
ping 1.1.1.1
ping 8.8.8.8

On Linux and macOS, ping keeps going until you press Ctrl+C. If the gateway answered but these do not, your computer is fine and the router has no working internet connection. That is step 6.

5. Can you look up names?

If ping 1.1.1.1 works but websites will not load, it is almost always DNS:

Windows · Command Prompt
nslookup example.com
nslookup example.com 1.1.1.1

The first line asks the DNS server you were given; the second asks Cloudflare's directly. If only the second works, the DNS server your router hands out has stopped answering. Flush the cache with ipconfig /flushdns (every platform here), reboot the router, or set a public DNS server. If Chrome shows DNS_PROBE_FINISHED_NXDOMAIN, there is a separate article on that error.

6. The router and the line

If every device is affected, or the gateway answers but 1.1.1.1 does not:

  • Look at the router's lights. Most hubs show a separate light for the broadband or internet connection, and the manual explains the colours.
  • Restart the router: switch it off at the wall, wait a little, switch it on, and give it a few minutes to reconnect before testing.
  • Check your provider's service status page or app from mobile data. An area outage is not something you can fix at home.
  • Log in to the router and look at its status page. How to find the router admin page.

7. Captive portals, proxies and VPNs

Everything above can pass and pages still fail to load. Three things cause most of these cases.

A login page you have not seen. Hotels, trains and cafés intercept your first web request to show a sign-in page, and sometimes the device does not notice. Browse to http://neverssl.com, a deliberately plain-HTTP site, and the portal should appear.

A leftover proxy. On Windows check Settings › Network & internet › Proxy. The system-wide WinHTTP proxy, which some updaters and services use, is shown by:

Windows · Command Prompt
netsh winhttp show proxy

Direct access (no proxy server) is what you want to see on a home PC.

A VPN or "web protection" product that is half running. Disconnect or uninstall it and test again.

Last resort: reset the network stack

If only one Windows PC is affected and nothing above has found the cause, reset its network configuration. Open Command Prompt as administrator (how) and run:

Windows · Command Prompt
netsh winsock reset
netsh int ip reset
ipconfig /flushdns

Then restart the PC. On Windows 11 the button version is Settings › Network & internet › Advanced network settings › Network reset, which also removes and reinstalls the network adapters, so you may need to reconnect to your Wi-Fi network afterwards. Microsoft notes that VPN clients and virtual switches may need reinstalling too. The full reset procedures cover macOS and Linux as well.

The order, in one list

  1. Another device on the same Wi-Fi: same problem or not?
  2. ipconfig: a real address, not 169.254?
  3. A default gateway, and does ping reach it?
  4. ping 1.1.1.1: internet by number?
  5. nslookup example.com: names?
  6. Router lights, restart, provider status.
  7. Captive portal, proxy, VPN, then a network reset.

The troubleshooting playbook has the same checks with the Linux and macOS commands side by side.

More from the blog

All articles and guides →

Last reviewed . Command syntax verified against Windows 11, Ubuntu 24.04, macOS 15 and FreeBSD 14 unless noted otherwise.

Spotted a mistake or a switch we have missed? Every page on this site is written to be checked against real output, so please test on your own machine and compare.