You boot up your laptop, connect to your home Wi-Fi network, and instead of the internet, you get a yellow warning triangle. You run the built-in Windows troubleshooter, and it spits back: “Wi-Fi doesn’t have a valid IP configuration.”
This error simply means your router failed to assign a working IP address to your computer. Here are the three steps I use to force Windows to grab a fresh, working IP address.
Step 1: Release and Renew Your IP via Command Prompt
This is the IT professional’s go-to fix. We need to clear out the old network data and demand a new IP from the router.
- Click the Start button, type cmd.
- Right-click Command Prompt and select Run as administrator.
- Type this command and press Enter:
ipconfig /release - Wait a few seconds for it to process. Then type:
ipconfig /flushdnsand hit Enter. - Finally, type:
ipconfig /renewand hit Enter.
Look at your Wi-Fi icon in the bottom right corner. If the yellow triangle disappears, you’re good to go. If not, move to Step 2.
Step 2: Reset the TCP/IP Stack (Winsock Reset)
If resetting the IP didn’t work, the underlying network protocols in Windows might be corrupted.
- Open Command Prompt as an administrator again (like we did in Step 1).
- Type this command:
netsh winsock resetand press Enter. - Then type:
netsh int ip resetand press Enter. - Crucial step: You must restart your computer for these changes to take effect.
Step 3: Manually Assign a Google DNS
Sometimes your router’s default DNS server is struggling to translate web addresses.
- Press Win + R, type ncpa.cpl, and hit Enter. This opens Network Connections.
- Right-click your Wi-Fi adapter and select Properties.
- Double-click on Internet Protocol Version 4 (TCP/IPv4).
- Select the bubble for Use the following DNS server addresses.
- For Preferred DNS server, type: 8.8.8.8
- For Alternate DNS server, type: 8.8.4.4
- Click OK, then OK again.
FAQ
I tried all this and it still won’t connect. What now?
If all software fixes fail, unplug the power cable from your Wi-Fi router, wait exactly 60 seconds, and plug it back in. A hardware reboot forces the router to clear its DHCP lease table, which often resolves stubborn IP assignment bugs.
Faizan Ahmed is a senior IT specialist and the lead editor at TechWiredWorld. With over a decade of experience repairing PCs and mobile devices, his mission is to provide clear, actionable tech troubleshooting guides.