ipconfig /release, ipconfig /renew, netsh winsock reset and netsh int ip reset as administrator and restart. Make sure the adapter is set to Obtain an IP address automatically.What's going on
Every device needs an IP address from the router’s DHCP server. When none arrives, Windows assigns itself a 169.254.x.x address and the Network troubleshooter reports “Wi-Fi doesn’t have a valid IP configuration”.
A router whose DHCP pool is full or frozen, a manually set IP, or a damaged TCP/IP stack on the PC are the common causes.
Symptoms
- Troubleshooter: “Wi-Fi doesn't have a valid IP configuration” (or Ethernet).
ipconfigshows an IPv4 address starting 169.254.- Wi-Fi shows connected but no internet.
Common causes
- Router DHCP not responding or out of addresses.
- Static IP/DNS set incorrectly on the adapter.
- Corrupted Winsock/TCP-IP settings.
- Outdated Wi-Fi driver or security software interference.
Try these fixes
- Restart the routerUnplug it for 30 seconds to reset DHCP.
- Renew and resetRun the commands below, then restart the PC.
- Set automatic addressing
ncpa.cpl→ right-click Wi-Fi → Properties → Internet Protocol Version 4 (TCP/IPv4) → Obtain an IP address automatically and Obtain DNS server address automatically. - Reinstall the adapterDevice Manager → Network adapters → uninstall your Wi-Fi adapter → restart.
- Check the routerIn the router admin page, check the DHCP range isn't exhausted and that MAC filtering isn't blocking the PC.
Command
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
Run in an elevated Command Prompt, then restart Windows.
Avoiding it in future
Restart old routers periodically and avoid manual IP settings unless you need them.
