Battery, network & drives

Mac says Wi-Fi is connected but there's no internet? Find which link is broken

“Connected” only means your Mac is talking to the router. The internet can still fail further along. Four quick checks tell you exactly where it breaks, so you fix the right thing instead of restarting everything.

On this page
  1. Step 1: Find your router's address and your own
  2. Step 2: Test each link in order
  3. Step 3: Get a fresh address from the router
  4. Step 4: Fix DNS, VPNs and filters
  5. Step 5: When the router or line is the problem
  6. Check that it worked, and how to undo
  7. When to contact Apple
  8. Sources
  9. Quick answers
Tested on

macOS 27.0.1 on a MacBook Pro with Apple M1 Pro, 16 November 2026. None of the commands below needs an administrator password, and none of them changes anything unless the step says so.

Step 1: Find your router's address and your own

Open Terminal (Applications → Utilities) and run:

route -n get default

Note the gateway (your router, for example 192.168.1.1) and the interface (usually en0 for Wi-Fi). Then check your Mac's own address:

ipconfig getifaddr en0

An address that starts with 169.254, or no answer at all, means the router never gave your Mac an address. Go straight to Step 3.

Run these one by one. Each ping stops by itself after three tries:

ping -c 3 192.168.1.1
ping -c 3 1.1.1.1
dscacheutil -q host -a name apple.com

Replace 192.168.1.1 with the gateway address from Step 1. On public Wi-Fi (hotels, airports, offices), run the login-page test below first: some of these networks block ping, so a failed ping there means nothing if web pages load. Then read the results:

ResultWhere it breaksGo to
Router ping failsBetween your Mac and the routerStep 3
Router OK, 1.1.1.1 failsThe router or your internet lineStep 5
Both pings OK, no address after name: apple.comDNS (turning names into addresses)Step 4
All OK, but web pages don't loadA login page, VPN or filterStep 4

Hotel, airport and café networks often need you to log in on a web page first. This Apple test page prints Success only when you are really online:

curl -s https://captive.apple.com/hotspot-detect.html

If you get a different page back, open Safari and the login page should appear.

Step 3: Get a fresh address from the router

  1. Open System Settings → Wi-Fi.
  2. Click Details next to the network you're connected to.
  3. Click TCP/IP, then Renew DHCP Lease, and click OK.

While you're in Details, look at Private Wi-Fi address and Limit IP address tracking. Leave Limit IP address tracking on unless the network's owner tells you otherwise. Some routers that filter devices by hardware address reject a private address. If the problem started on a network that worked before, try setting Private Wi-Fi address to Fixed or Off for that network only.

Still no luck? In the same Details window, click Forget This Network…, then join it again. You'll need the Wi-Fi password, so have it ready first.

Step 4: Fix DNS, VPNs and filters

See which DNS servers your Mac is actually using:

scutil --dns | grep nameserver

On a work or school Mac, don't change DNS or VPN settings yourself: they're often required, so ask your IT team. Otherwise, if you see addresses you don't recognize, or the problem began when you installed a VPN or security app, that's the likely cause:

  • In Wi-Fi → Details → DNS, first take a screenshot of the list so you can restore it. Then remove servers you didn't add, or add your router's address. Leaving the list empty uses whatever the router provides.
  • In System Settings → Network → VPN & Filters, turn off VPNs and content filters one at a time and test again.

Step 5: When the router or line is the problem

If the router answers but nothing beyond it does, check whether other devices on the same network are online. If none are, restart the router or contact your internet provider. If only the Mac fails, check the router for device limits or blocking. Apple publishes recommended router settings (linked below).

To measure the line once it works, macOS has a built-in test:

networkQuality

It reports download and upload capacity, and responsiveness: how much your connection slows down under load. Low responsiveness explains laggy video calls even when speeds look fine. The test transfers a lot of data, so don't run it on a phone hotspot or a metered connection.

Check that it worked, and how to undo

Run the three commands from Step 2 again: all three should answer, and the captive test should print Success. To undo, put back any DNS servers you removed, turn your VPN back on, and set Private Wi-Fi address back to its previous value. Renewing the DHCP lease needs no undo.

For a deeper look, hold Option and click the Wi-Fi icon in the menu bar, then choose Open Wireless Diagnostics. It can watch your connection and record drops.

When to contact Apple

If your Mac fails on several different networks while other devices work fine on them, and the problem continues in safe mode, contact Apple Support. (Safe mode on Apple silicon: shut down, hold the power button until the startup options appear, select your startup disk, hold Shift and click Continue in Safe Mode. On Intel: restart holding Shift.) That points to the Mac's Wi-Fi hardware rather than settings.

Sources

Quick answers

Why does my Mac say connected but no internet?

Connected only means the Mac reached the router. The break can be the router's address assignment, DNS, a login page, a VPN, or the internet line itself. Ping the router, then 1.1.1.1, then test a name lookup to find which.

What does a 169.254 address mean on a Mac?

The router didn't give the Mac an address. Renew the DHCP lease in Wi-Fi → Details → TCP/IP, or forget the network and join again.

Is the networkQuality command safe to run?

Yes. It only measures your connection by downloading and uploading test data to Apple's servers for about 20 seconds. Because that uses a lot of data, avoid it on phone hotspots and metered connections.