Fixes / Windows · Checked

Wi-Fi doesn't have a valid IP configuration: Windows fix

Short answer

Your PC reached the Wi-Fi network but never got a working IP address from the router, which hands them out through DHCP. Without one it has no internet. Windows usually falls back to a 169.254.x.x address, or has no address at all. The most likely fix is to restart the router and the PC, then run ipconfig /release and ipconfig /renew in an administrator Command Prompt.

What this message means

Every device on a network needs an IP address, a subnet mask and a default gateway. Normally the router hands these out automatically through DHCP (Dynamic Host Configuration Protocol). This message comes from the Windows Network and Internet troubleshooter. It means the Wi-Fi adapter is joined to the network but the IP settings it ended up with are unusable. Most often DHCP never answered, so Windows gave itself an automatic private address (APIPA) in the 169.254.x.x range. Less often, a wrong static IP was typed in by hand. Either way the PC can't reach the router, so you see 'No internet' even though the Wi-Fi icon looks connected.

Common causes

CauseHow to tell
The router's DHCP service is stuck or has run out of addressesOther devices also can't join, or new devices fail while ones that were already connected still work. Restarting the router fixes it for a while.
Windows is holding a stale or failed IP leaseRun ipconfig in Command Prompt. Under 'Wireless LAN adapter Wi-Fi', the IPv4 Address starts with 169.254 and the Default Gateway is blank.
A manual (static) IP address is set on the Wi-Fi adapterIn the Wi-Fi network's properties, IP assignment shows 'Manual' instead of 'Automatic (DHCP)'. This often happens after you move the laptop to a different network.
Corrupted TCP/IP or Winsock settings, often after a VPN, antivirus or network software was installed or removedThe problem started after installing or uninstalling a VPN, firewall or security suite, and it happens on every Wi-Fi network, not just one.
Faulty or outdated Wi-Fi adapter driverIn Device Manager, the adapter under Network adapters shows a yellow warning icon. Or the problem began right after a Windows or driver update.
The router is blocking this device through MAC filtering or access controlOnly this PC fails, and only on this network. The router's admin page has a MAC filter or allow list enabled. This can start when Windows 'Random hardware addresses' gives the PC a new MAC address.

How to fix it

1. Restart the router and the PC

  1. Unplug the power from the modem and the router (or the single combined box).
  2. Wait at least 30 seconds.
  3. Plug the modem back in first and wait until its lights are steady, then plug in the router.
  4. Restart the PC (Start > Power > Restart) and reconnect to the Wi-Fi.

2. Release and renew the IP address

  1. Select Start, type cmd, right-click Command Prompt and choose Run as administrator.
  2. Type ipconfig /release and press Enter.
  3. Type ipconfig /flushdns and press Enter.
  4. Type ipconfig /renew and press Enter. Wait for it to finish, which can take up to a minute.
  5. Type ipconfig and check that the Wi-Fi IPv4 Address no longer starts with 169.254 and a Default Gateway is listed.

3. Forget the network and reconnect

  1. Open Settings > Network & internet > Wi-Fi > Manage known networks.
  2. Select your network and choose Forget.
  3. Open the network icon on the taskbar, pick your network again and enter the Wi-Fi password.
  4. If your router broadcasts both 2.4 GHz and 5 GHz networks, try the other band.

4. Set IP assignment back to Automatic (DHCP)

Windows 11: Settings > Network & internet > Wi-Fi > [network] properties. Windows 10: Settings > Network & Internet > Wi-Fi > Manage known networks > [network] > Properties.

  1. Open the properties page for the Wi-Fi network you are connected to (path in 'Applies to' above).
  2. Next to IP assignment, select Edit.
  3. Choose Automatic (DHCP) and select Save.
  4. If DNS server assignment also shows Manual, select Edit next to it and set it to Automatic (DHCP) too.
  5. Disconnect from the Wi-Fi and reconnect.

5. Reset TCP/IP and Winsock, then reinstall the Wi-Fi driver

  1. Open Command Prompt as administrator.
  2. Run netsh winsock reset and press Enter, then run netsh int ip reset and press Enter.
  3. Restart the PC and test the Wi-Fi.
  4. If it still fails, press Windows + X and choose Device Manager. Expand Network adapters, right-click your Wi-Fi adapter and choose Update driver > Search automatically for drivers.
  5. If that finds nothing, right-click the adapter, choose Uninstall device, then restart. Windows reinstalls the driver on startup. You can also install the latest driver from the PC maker's support site.

6. Use Network reset

Windows 11: Settings > Network & internet > Advanced network settings > Network reset. Windows 10: Settings > Network & Internet > Status > Network reset.

  1. Open Network reset (path in 'Applies to' above).
  2. Select Reset now and confirm with Yes.
  3. Let the PC restart. This removes and reinstalls all network adapters and sets networking back to default.
  4. Reconnect to Wi-Fi with your password. Reinstall or reconfigure any VPN client or virtual switch software you use.

Next time, skip the search

Crade is an AI assistant for Mac and Windows that sees your screen. When a message like this pops up, ask “what does this mean?” and it explains the exact error in front of you, step by step.

Download Crade

Still not fixed?

Plug the PC into the router with an Ethernet cable, or connect to a phone hotspot. If those work, the problem is this PC's Wi-Fi adapter or its relationship with the router. Log in to the router's admin page and check that its DHCP server is on, that the address pool isn't full, and that MAC filtering isn't blocking the PC. If other devices also can't get an address, contact your internet provider or the router maker. On a work or school network, ask IT, because the DHCP server or network access control is run centrally. Also check that the DHCP Client service is running in services.msc (its status should be Running).

Questions people ask

What does a 169.254 IP address mean?

It is an automatic private (APIPA) address that Windows gives itself when no DHCP server answers. It confirms the PC never got an address from the router, so it can't reach the internet.

Why do my phone and other devices work but not my laptop?

The router is working, so the fault is on the laptop: a stale IP lease, a manual IP setting, a bad driver or corrupted network settings. The router can also be blocking the laptop through MAC filtering. Start with ipconfig /release and /renew, then check that IP assignment is set to Automatic (DHCP).

Will netsh winsock reset or Network reset delete my files?

No. They only reset network settings. Network reset removes saved Wi-Fi passwords and reinstalls network adapters, so you may need to set up VPN software again.

Can antivirus or a VPN cause this error?

Yes. Security suites and VPN clients install network filter drivers that can block DHCP or corrupt the Winsock catalog. Temporarily disconnect the VPN or turn off the third-party firewall to test. If that was the cause, run netsh winsock reset and restart.

Does this error mean my Wi-Fi card is broken?

Rarely. The adapter already connected to the network, so the hardware is basically working. Hardware is only the likely cause if the error continues on every network after a driver reinstall and a Network reset.

Sources