When your Windows PC says “Wi-Fi doesn’t have a valid IP configuration,” it means the network adapter failed to obtain an IP address from the router, so your device can’t join the network. The fix usually involves renewing the IP lease, resetting the network stack, or restarting the router—try the steps below in order, and one of them will almost certainly restore your connection.
What This Error Actually Means
Every device on a Wi-Fi network needs a unique IP address to send and receive data. Your router normally hands these out automatically using a protocol called DHCP (Dynamic Host Configuration Protocol). When Windows reports “Wi-Fi doesn’t have a valid IP configuration,” it means your wireless adapter either received no IP address at all, received one that’s invalid (like 169.254.x.x), or the address is in the wrong subnet for your router.
The most common result is an APIPA address (Automatic Private IP Addressing), which starts with 169.254. Windows assigns this when it can’t reach a DHCP server. If you see that number in your connection details, your PC is essentially saying “I couldn’t get a real address, so I made one up.” That address only works with other 169.254 devices on the same physical network—not with your router or the internet.
Quick Fixes to Try First
Start with the simplest solutions, as they solve a large percentage of cases:
- Restart your router and PC. Unplug the router’s power for 30 seconds, plug it back in, and wait for it to fully boot (usually 1–2 minutes). Then restart your PC. This clears temporary glitches on both ends.
- Forget and reconnect to the network. In Windows, go to Settings > Network & Internet > Wi-Fi, click “Manage known networks,” select your network, and choose “Forget.” Then reconnect by clicking the network name and entering the password again.
- Run the built-in troubleshooter. In Settings, go to System > Troubleshoot > Other troubleshooters and run “Internet Connections” or “Network Adapter.” Windows will attempt to diagnose and fix the issue automatically.
Renew Your IP Address from Command Prompt
If the quick fixes don’t work, manually telling Windows to release and renew its IP lease often does the trick. This forces your PC to ask the router for a fresh IP address.
- Press Win + R, type
cmd, right-click “Command Prompt,” and select “Run as administrator.” - Type
ipconfig /releaseand press Enter. This drops your current IP address. - Type
ipconfig /renewand press Enter. This requests a new IP from the router. - Wait for the command to finish (it can take 10–30 seconds). If it succeeds, you’ll see a new IP address that typically starts with 192.168 or 10.
If the renew command times out with “Unable to contact your DHCP server,” the problem is likely between your PC and the router—either a bad Wi-Fi driver, a router glitch, or a physical issue with the wireless adapter.
Reset the Network Stack
If renewing doesn’t work, the network configuration on your PC may be corrupted. Resetting the network stack restores Windows’ TCP/IP settings to their default state. This is safe and doesn’t affect your files.
- Open Command Prompt as administrator (same as above).
- Run these commands one by one, pressing Enter after each:
netsh winsock reset— resets the Winsock catalog (how programs talk to the network)netsh int ip reset— resets the IP configurationipconfig /flushdns— clears the DNS cache
After running all three, restart your PC. When it boots, Windows will rebuild the network stack and attempt to get a valid IP again.
Update or Reinstall Your Wi-Fi Driver
A faulty or outdated wireless adapter driver can cause the “no valid IP” error even when the router is fine. Windows usually installs drivers automatically, but they can become corrupted or incompatible after updates.
- Right-click the Start button and select “Device Manager.”
- Expand “Network adapters.” Find your Wi-Fi adapter (it often has names like “Intel Wireless” or “Realtek RTL…”).
- Right-click it and choose “Update driver.” Select “Search automatically for drivers.”
- If Windows says the best driver is already installed, try “Uninstall device” (check “Delete the driver software for this device” if offered), then restart. Windows will reinstall the driver on boot.
If you have a laptop, you can also download the latest driver from the manufacturer’s website using another device and transfer it via USB.
Check Router and ISP Issues
Sometimes the problem isn’t your PC at all. If multiple devices show the same error, the router is likely the culprit. Try these steps:
- Power cycle the router (unplug for 30 seconds) to clear its DHCP table.
- Log into the router’s admin page (usually at 192.168.1.1 or 192.168.0.1) and check if DHCP is enabled. Look for a setting called “DHCP Server” and make sure it’s on.
- Check if the router’s IP address range is full. If you have many devices, the DHCP pool may be exhausted. Lower the lease time or increase the pool size in the router settings.
- Contact your ISP if the router’s WAN (internet) light is blinking or red—your internet connection may be down, and no device will get a valid IP.
Set a Static IP Address (Temporary Workaround)
If you need to get online immediately and DHCP is failing, you can manually assign a static IP address. This is a temporary fix, not a permanent solution, because you must know your router’s subnet.
- Find your router’s IP address (often printed on the router label or found on another working device). For example, 192.168.1.1.
- In Windows, go to Settings > Network & Internet > Wi-Fi > your network name > “Edit” next to IP assignment.
- Change it to “Manual,” enable IPv4, and enter:
- IP address: 192.168.1.50 (use the same first three numbers as your router, but a different last number)
- Subnet mask: 255.255.255.0 (standard for home networks)
- Gateway: your router’s IP (e.g., 192.168.1.1)
- Preferred DNS: 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare)
Save the changes and reconnect. If the static IP works, you can continue using it, but it’s better to fix DHCP so other devices can connect automatically.
Frequently Asked Questions
Why does my Wi-Fi say “No valid IP configuration” on my phone too?
If multiple devices show the same error, the issue is almost certainly with your router, not your phone. Restart the router, check if the DHCP server is enabled, and consider updating the router’s firmware. If the problem persists, contact your ISP.
What is a 169.254 IP address?
It’s an Automatic Private IP Address (APIPA) that Windows assigns when it can’t reach a DHCP server. It starts with 169.254 and only works with other devices on the same physical network that also have APIPA addresses. It won’t let you access the internet or your router’s admin page.
Will resetting my network stack delete my files?
No. The commands netsh winsock reset and netsh int ip reset only reset network settings (like TCP/IP protocol and Winsock catalog). They do not touch your personal files, documents, or installed programs. You may need to reconnect to Wi-Fi and re-enter your password after the reset.
How do I know if my router’s DHCP is broken?
Log into your router’s admin page and look for a DHCP or LAN settings section. Check that the DHCP server is enabled. You can also try connecting a device via Ethernet—if it gets an IP address but Wi-Fi doesn’t, the issue is likely with the wireless part of the router, not DHCP itself.
Can a VPN cause this error?
Yes, sometimes. VPN software can interfere with your network adapter’s IP configuration, especially if it uses virtual adapters. Try disabling the VPN temporarily and see if the error goes away. If it does, update the VPN software or reconfigure it.
Is it safe to set a static IP address?
It’s safe if you choose an IP address that’s outside the router’s DHCP range (to avoid conflicts). Using a high number like 192.168.1.50 usually works on home networks. Just make sure the subnet mask and gateway are correct, otherwise you’ll lose connectivity.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Factory Reset iPad If You Forgot Password
- Ubuntu in Windows Store: Which Editions Work?
- Secure Guest Account on Windows 11: Step-by-Step
- Stop Outlook From Changing Hyperlink Font
- Hiberfil.sys: What It Is & How to Delete It
- How to Make a Mask on Snapchat: Step-by-Step