You close the lid, open it an hour later, and the network icon shows a globe with a slash. Windows says `Wi-Fi doesn't have a valid IP configuration`, and the only listed fix is to plug in a cable. The message is not an accusation about your hardware. It means the adapter asked for an address and got silence. Confirm that first in how to set up a home Wi-Fi network, then work outward.
Quick steps
- Run ipconfig /all and look for 169.254
- Test whether a cold boot is clean
- Compare with a wired connection
- Release and renew the address
- Reset Winsock and the IP stack
- Stop the adapter from sleeping
- Check the router's DHCP pool size
Things you'll need
- An administrator Command Prompt
- The router's login details
- An Ethernet cable or a USB network adapter for comparison
- The laptop maker's driver page open in a browser
Step-by-step
Method 1 of 3: Confirm DHCP Is the Failure
Download image
Step 1: Read what the message claims
This text is Windows' own conclusion after a DHCP attempt produced nothing usable. It does not mean the radio is dead. It means the machine asked for an address, got silence, and fell back to a self-assigned one.
Download image
Step 2: Check for an APIPA address
Run ipconfig /all and read the IPv4 address under the wireless adapter. An address starting 169.254 means DHCP failed and Windows made one up. A 192.168 or 10.x address with a gateway means the warning is stale.
Download image
Step 3: Note whether sleep is the trigger
Restart instead of waking, and watch whether the connection holds. If a cold boot is clean and a resume is not, the driver is failing to renegotiate the link. That one observation removes half the steps in this article.
Download image
Step 4: Compare against a wired connection
Plug in Ethernet if the laptop has a port, or attach a USB adapter. If wired works and wireless does not, the router and the internet are fine and the fault sits at the wireless adapter or its driver.
Source: Microsoft Learn — Transport Layer Security (TLS) registry settings · See also Microsoft Learn — netsh winsock · Read next: Set Up a Home Wi-Fi Network
Download image
Step 5: Read the adapter's driver date
Open Settings → Network & internet → Wi-Fi → Hardware properties and note the driver date and version. A 2019 driver on a 2024 router is a common mismatch, and Windows Update rarely offers the correct newer one.
Download image
Step 6: List the adapters in the way
Open ncpa.cpl and count the entries. VMware, VirtualBox, Hyper-V, and VPN clients each add one, and each can claim the default route. A machine with six adapters and one connection is a machine that fights itself.
Method 2 of 3: Renew the Lease and Reset the Stack
Download image
Step 7: Release and renew the lease
In an administrator Command Prompt, run ipconfig /release, then ipconfig /renew. Renew can take 30 seconds and prints a new address when it works. Another 169.254 result means the server never answered you.
Download image
Step 8: Reset the Winsock catalog
Run netsh winsock reset, then reboot. This rebuilds the socket layer that VPN clients and old filter drivers damage. It is the single most effective command for post-sleep failures, and it costs exactly one restart.
Download image
Step 9: Reset TCP/IP to defaults
Run netsh int ip reset and reboot. It rewrites the IP stack settings to a clean state. If both resets run and the address is still 169.254, the problem is outside Windows and the router is next.
Download image
Step 10: Flush and re-register DNS
Run ipconfig /flushdns, then ipconfig /registerdns. This does not fix a missing address on its own, but it clears the stale cache that makes a half-recovered connection behave like a dead one for the next hour.
Source: Microsoft Learn — netsh winsock · See also Microsoft Learn — Transport Layer Security (TLS) registry settings · Read next: Set Up a Home Wi-Fi Network
Download image
Step 11: Disable the adapters you do not use
In ncpa.cpl, right-click each VMware, VirtualBox, or TAP adapter → Disable and leave Wi-Fi alone. Reboot and watch whether the address sticks. If it holds, re-enable the adapters one at a time to find the culprit.
Download image
Step 12: Set a static address as a test
Open the Wi-Fi adapter → Properties → Internet Protocol Version 4 and enter an address outside the router's pool, such as 192.168.1.240. If the connection works, DHCP is the broken part rather than the radio. Revert right after.
Method 3 of 3: Fix the Adapter That Keeps Dying
Download image
Step 13: Stop the adapter from sleeping
Open Device Manager → Network adapters, right-click the wireless card → Properties → Power Management, and clear Allow the computer to turn off this device to save power. This is the top cause of failures right after a resume.
Download image
Step 14: Check the router's DHCP pool
Sign in to the router and open its LAN or DHCP page. Note the pool size and the lease time. A pool of 50 addresses with a 24-hour lease fills fast in a house full of phones, and the symptom is exactly this message.
Download image
Step 15: Update the driver from the vendor
Get the wireless driver from the laptop maker's support page, not from Windows Update. Install it, reboot, then test sleep and wake twice. If the message returns, the driver was not the fix and you saved yourself a reinstall.
Download image
Step 16: Forget and rejoin the network
Open Settings → Network & internet → Wi-Fi → Manage known networks, remove your network, and reconnect with the password. This clears a saved profile with the wrong security type, which fails silently after a router firmware update.
Source: Microsoft Learn — Transport Layer Security (TLS) registry settings · See also Microsoft Learn — netsh winsock · Read next: Set Up a Home Wi-Fi Network
Download image
Step 17: Raise the adapter power setting
Open Control Panel → Power Options → Change plan settings → Change advanced power settings and set Wireless Adapter Settings to Maximum Performance. It costs battery life and often ends the drops after waking. If the entry is greyed out, a vendor plan owns it.
Download image
Step 18: Stop when the router is the common factor
If two laptops, a phone, and a tablet all lose addressing on the same router, stop working on the PC. Replace the router or its power supply. Nothing you change in Windows survives a DHCP server that stops answering.
Tips
- 169.254.x.x is not an error value. It is the address Windows gives itself when nobody answers, and it always means the same thing.
- If a cold boot is clean and a resume is not, stop looking at the router. The driver is not renegotiating.
- Six virtual adapters from VMware, Hyper-V, and a VPN can each claim the default route. Disable what you do not use.
- netsh winsock reset fixes more post-sleep failures than any driver update, and it costs one restart to try.
Warnings
- netsh winsock reset removes third-party layered service providers. Reinstall any VPN client afterward or it will not connect.
- A static address left in place will collide with DHCP later. Revert to automatic as soon as the test is done.
- Do not disable the wireless adapter's power saving on a laptop you use on battery all day unless you accept the runtime hit.
- Resetting TCP/IP drops custom routes and DNS servers. Write the old values down before you run it.
Frequently asked questions
Why does it only happen after sleep?
The adapter resumes faster than the driver renegotiates its link. Windows reports no address before the handshake completes, and the warning sticks.
Is 169.254.x.x a virus?
No. It is the APIPA range Windows assigns itself when DHCP does not answer. Its presence is a symptom, not an infection.
Will a driver update always fix this?
Often, not always. If the router's DHCP pool is exhausted, a new driver changes nothing and you will have wasted the evening.
Should I just set a static IP?
As a test, yes. As a permanent fix on a home network, no. It hides the fault and breaks when the router changes its subnet.
References
- Microsoft Learn — Network drivers documentation. https://learn.microsoft.com/en-us/windows-hardware/drivers/network/
- Microsoft Learn — PowerShell documentation. https://learn.microsoft.com/en-us/powershell/
- Microsoft Support — Windows help and learning. https://support.microsoft.com/en-us/windows
Every guide is reviewed against its sources. See our editorial policy.
Reader comments
0 so farFinished this guide? Tell other readers what worked, what didn't, and what you would change.