WiFi doesn't have a valid IP configuration

Fix 'WiFi doesn't have a valid IP configuration' in 2 minutes

Your WiFi adapter lost its IP lease. The quick fix? Reset the network stack. Don't waste time on drivers or hardware swaps.

This error is maddening — but I've got you.

You're sitting there, WiFi shows connected, but no internet. The troubleshooter throws up that cryptic line: "WiFi doesn't have a valid IP configuration." I've seen this hundreds of times in enterprise environments. The fix is dead simple 90% of the time.

The quick fix: Reset the network stack

Don't bother reinstalling drivers or checking hardware. The culprit here is almost always a corrupted TCP/IP stack or a bad DHCP lease. Here's what you do — takes about 60 seconds:

Step-by-step

  1. Open Command Prompt as Administrator (right-click Start > Command Prompt (Admin) or Windows Terminal (Admin)).
  2. Run these commands in order. Hit Enter after each:
    netsh winsock reset
    netsh int ip reset
    ipconfig /release
    ipconfig /renew
    ipconfig /flushdns
  3. Close the window and restart your PC. Not just disconnect/reconnect — a full reboot.
  4. After reboot, forget your WiFi network in settings, then re-enter the password.

Why this works

That error means your wireless adapter got an IP address that's either invalid (like 169.254.x.x) or conflicting. That APIPA address (starts with 169.254) is Windows' fallback when DHCP fails. The netsh winsock reset command rebuilds the Winsock catalog — it's the metadata that maps network services to the TCP/IP stack. When that gets corrupted, DHCP requests can't get through. The ipconfig /release and /renew force your adapter to drop its broken lease and ask the router for a fresh one. Flushing DNS clears any cached bad routes that might trip things up.

A reboot is non-negotiable here. It forces the system to reinitialize all network services with the fresh stack. Skipping it means you're still running on the old corrupted state.

When that doesn't work: the less common causes

If the stack reset didn't fix it, here's what else I've seen cause this error — in order of likelihood:

1. Static IP conflict

Someone set a static IP on your adapter that conflicts with another device. Go to Network Settings > Change adapter options > Right-click your WiFi > Properties > Internet Protocol Version 4 (TCP/IPv4) > Properties. Make sure both Obtain an IP address automatically and Obtain DNS server address automatically are selected. If they already are, manually set a static IP like 192.168.1.100 with subnet 255.255.255.0 and default gateway 192.168.1.1 (adjust for your router's range), then switch back to automatic. This forces Windows to renew the DHCP lease cleanly.

2. Third-party antivirus or VPN interference

Some security suites (especially Norton, McAfee, and older versions of AVG) hijack the network stack. Same goes for VPN clients — I've seen SonicWall and Cisco AnyConnect leave ghost adapters that block DHCP. Temporarily disable the security software or uninstall the VPN client, reboot, and test. If it works, you found the problem.

3. Faulty wireless adapter driver — but not what you think

I said don't bother with drivers earlier, but there's one exception: if the driver version was updated recently by Windows Update. Roll it back. Go to Device Manager > Network adapters > Right-click your WiFi adapter > Properties > Driver > Roll Back Driver. If that's grayed out, download the driver from the laptop manufacturer's site (not Intel or Realtek's generic page) and install manually.

4. Router DHCP pool is full

This happens more than you'd think — especially in offices or dorms where dozens of devices connect. Log into your router's admin page (usually 192.168.1.1 or 192.168.0.1), check the DHCP client list. If it's full, reduce the lease time (say from 24 hours to 1 hour) or increase the pool size. Reboot the router after making changes.

Preventing it from coming back

I've seen this error recur weekly for some users. Here's how to lock it down:

  • Update your WiFi driver once from the manufacturer's site — not Windows Update. Set it to never update automatically via Windows Update (use the Group Policy Editor or the Show or hide updates troubleshooter from Microsoft).
  • Disable IPv6 on your adapter if you don't use it. Right-click your WiFi adapter properties, uncheck Internet Protocol Version 6 (TCP/IPv6). IPv6 can cause DHCP conflicts in some home networks.
  • Set a static lease for your PC in the router — assign a specific IP to your laptop's MAC address in the router's DHCP reservation table. This guarantees you always get the same IP and avoids conflicts.
  • Keep a batch file handy — save the four commands from the fix above in a .bat file on your desktop. Run it as admin whenever the error pops up again. Saves minutes.

This error is annoying, but it's almost never a hardware failure. 9 out of 10 times, it's a software glitch that the stack reset fixes. If you're still stuck after all this, it's worth trying a different WiFi adapter — but I'd only go there after trying a bootable Linux USB to rule out a Windows-only issue.

Related Errors in Network & Connectivity
0X00002649 DNS STATUS CONTINUE NEEDED (0x00002649) Fix Guide Fix DHCP Not Enabled for WiFi on Windows DNS_PROBE_FINISHED_NO_INTERNET or DNS server not responding Fix 'DNS Server Not Responding' in 5 Minutes 0X0000232B DNS name not found (0x0000232B) – quick fix that works

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.