When a MacBook won’t connect to Wi-Fi, check that Wi-Fi is on and the right network is chosen, then restart the Mac and the router. Next, forget the network and rejoin, renew the DHCP lease, check DNS, run Wireless Diagnostics and update macOS. Joined but no internet, or it keeps dropping? Two guides below pick up from there.
Table of Contents
1. Check that Wi-Fi is on and the right network is chosen
Click the Wi-Fi icon in the menu bar (Apple’s Wi-Fi menu guide), make sure Wi-Fi is on, then choose your network under Known Networks or Other Networks and enter the password. Passwords are case-sensitive, so I check capitals first. Or open Control Center, move the pointer over Wi-Fi and click the arrow.
No Wi-Fi icon? Turn Wi-Fi on in System Settings > Wi-Fi. To show the icon on macOS 26 and 27, open System Settings > Menu Bar and select the Wi-Fi checkbox. On macOS 13 to 15, open System Settings > Control Center and choose Show in Menu Bar from the pop-up menu next to Wi-Fi.
2. Tell a Mac problem from a router problem
Try another phone or laptop on the same Wi-Fi. If it connects, Apple’s iPhone and iPad guide says the router and network are working, so keep going. If it can’t either, restart the router and cable modem by unplugging them and plugging them back in.
Then restart the Mac, and turn off any VPN, firewall, antivirus or content-blocking app while you test; Apple says they can block connections. You can also join a different network, such as your iPhone’s Personal Hotspot. If the Mac connects there, Apple says to ask your internet provider or network administrator to check for an outage.
3. Forget the Wi-Fi network and join it again
Forgetting a network removes it from the Mac, and Apple suggests it when a network’s password has changed. If your other devices use iCloud Keychain with the same Apple Account, Apple says they forget the network too. Have the password ready before you start: Copy Password in the More menu below copies it when it’s offered, or an iPhone on the network can share it (sharing a Wi-Fi password from iPhone lists what the prompt needs).
Open System Settings > Wi-Fi. Under Known Networks, click the More button beside the network and choose Forget This Network. If you’re connected to it, you can instead click Details, then Forget This Network. Join again with the current password (Apple’s steps).
4. Renew the DHCP lease on your Mac
Your router lends the Mac an address for a set time, a DHCP lease, and restarting the Mac renews it. To renew it by hand, choose Apple menu > System Settings > Network, select Wi-Fi, click Details > TCP/IP > Renew DHCP Lease, then OK. Apple says that resolves connection issues in some cases, and the button is available when the service uses DHCP.
5. Check the DNS servers your Mac is using
A DNS server maps website names to IP addresses. To try another, open System Settings > Network, select Wi-Fi, click Details > DNS, click the Add (+) button under DNS Servers, enter Google’s 8.8.8.8 and 8.8.4.4 or Cloudflare’s 1.1.1.1 and 1.0.0.1, and click OK. To undo it, select the entry and click the Remove (-) button (Apple’s DNS steps).
6. Run Wireless Diagnostics on your Mac
Click the Wi-Fi icon and look for Wi-Fi Recommendations. If it’s listed, choose it for the Mac’s advice. For Wireless Diagnostics, quit your open apps and try to join the problem network, then hold Option, click the Wi-Fi icon, choose Open Wireless Diagnostics and follow the onscreen instructions. Apple says it doesn’t change your network settings.
7. Install the latest macOS update
Open System Settings > General > Software Update and install what’s offered (Apple’s update guide). If the Mac can’t get online on this network, Apple says to connect to a different Wi-Fi network that works, then update from there.
8. Reset network settings with a new location
If nothing has worked, a new network location is Apple’s way to reset network settings without losing your current ones (macOS 13.1 or later). Open System Settings > Network, click the Action pop-up menu, choose Locations > Edit Locations, click Add (+), name it and click Done (Apple’s steps). Enter settings for each network service you want in the new location, then quit System Settings to finish the switch and join Wi-Fi again. To go back, choose Apple menu > Location and pick Automatic, the default.
If it joins but has no internet or keeps dropping
Joined, but with no IP address or a self-assigned one that starts with 169.254? Go to MacBook Wi-Fi has no IP address; it covers a router that filters by MAC address or has run out of addresses. Connects, then keeps dropping? Go to MacBook Wi-Fi keeps disconnecting, which covers interference and router settings.
Check what macOS sees in Terminal (read-only)
Prefer no Terminal? Option-click the Wi-Fi icon to see your IP address, router address and channel (Apple says). First, the hardware: find the Wi-Fi entry and its device name, en0 here. Check yours rather than assuming en0, because the later commands use it.
$ networksetup -listallhardwareports
Hardware Port: Wi-Fi
Device: en0
Ethernet Address: [REDACTED]
Then the link state: Status: says whether the Mac is joined, and PHY Mode and Channel describe the connection. Your output will be longer, because the filter also matches nearby networks.
$ system_profiler SPAirPortDataType | grep -E "Status:|Card Type|PHY Mode|Channel:"
Card Type: Wi-Fi (0x14E4, 0x4388)
Status: Connected
PHY Mode: 802.11ax
Channel: 48 (5GHz, 160MHz)
Next, the address on that device. Any address printed is the Mac’s IPv4 address (generalized here). Nothing printed means en0 has no IPv4 address; one starting 169.254 is a link-local address a host configures for itself when no other is available (RFC 3927). To see the whole DHCP reply the Mac accepted, ipconfig getpacket en0 prints it, and ipconfig commands on a Mac shows which lines to read.
$ ipconfig getifaddr en0
192.168.1.x
Last, the DNS servers. Each nameserver line is a server the Mac can ask. This Mac lists Google’s public servers; yours may show your router, your provider’s servers or any you added in step 5.
$ scutil --dns | head -8
DNS configuration
resolver #1
nameserver[0] : 8.8.8.8
nameserver[1] : 8.8.4.4
if_index : 14 (en0)
flags : Request A records
reach : 0x00000002 (Reachable)
When the Wi-Fi hardware is the problem
If the first command lists no Wi-Fi port, macOS can’t see a Wi-Fi interface, which can point to a hardware fault, so run the Apple Diagnostics test below. If the Mac has Wi-Fi but System Settings > Network doesn’t list it, Apple says the Wi-Fi service may not be set up: click the Action pop-up menu, choose Add Service, set Interface to Wi-Fi, name it and click Create.
To test the hardware, run Apple Diagnostics: on Apple silicon, shut down, press and hold the power button until you see Options, release it, then hold Command-D until the Mac restarts; on an Intel Mac, hold D at startup. Click Run Offline if you’re given the option. On macOS 26 and later, Apple says you’re asked to choose a specific diagnostic to run, so pick a Wi-Fi test if one is offered. In Apple’s reference codes, CNW001, CNW003 to CNW006 and CNW009 mean there may be an issue with the Wi-Fi hardware, and Apple says to contact Apple or take the Mac to an Apple Store or authorized service provider. CNW007 and CNW008 mean no networks were detected, so run the test again in range of a network, and contact Apple if the code appears again.
I ran the four read-only Terminal commands above on a MacBook Pro with macOS 26.6 and did not test any of the fixes or Apple Diagnostics. Every System Settings path is from Apple’s support pages, checked for macOS 26 and 27 and, where the menus differ, macOS 13 to 15.