Skip to content
TECHNOARTH IT for offices and small businesses.
Networking

“Wi-Fi doesn’t have a valid IP configuration”: fix it

Windows diagnostics says “Wi-Fi doesn't have a valid IP configuration” and the computer loses internet, the printer and network folders. Find out whether the PC or the router is at fault and which fix to apply in each case.

“Wi-Fi doesn’t have a valid IP configuration”: fix it

This message appears in Windows Network Diagnostics when the computer joins the Wi-Fi network but can’t get an IP address from the router. Without that address, the PC can’t browse, can’t find the shared printer and can’t open folders on the server or a colleague’s computer.

Windows Network Diagnostics showing: WiFi doesn't have a valid IP configuration, not fixed
The message (1) means the PC didn’t get an address from the router (DHCP). Follow the steps below, from simplest to most thorough.

The wired version, “Ethernet doesn’t have a valid IP configuration“, has the same causes and fixes. Before changing anything, work out where the fault is: it saves you reinstalling a driver on a PC that’s perfectly fine.

In this article
  1. First: is it one PC or the whole office?
    1. Confirm the PC has no IP address
  2. 1. Restart the router the right way
  3. 2. Forget the network and reconnect
  4. 3. Release the address and request a new one
  5. 4. Make sure the IP is set to automatic
  6. 5. Turn off random MAC addresses for the office network
  7. 6. Reset the network and reinstall the driver
  8. 7. When the router is the problem
    1. Which fix to choose
  9. Frequently asked questions

First: is it one PC or the whole office?

Check the other devices on the same wireless network: another laptop, a phone, the Wi-Fi printer.

What you seeWhere the problem isStart with
No newly connecting device can get on the Wi-FiThe router (DHCP off, frozen or out of free addresses)Steps 1 and 7
Only one computer fails, the others browseThat PC’s own configurationSteps 2 to 6
It fails only in one room, near a range extenderExtender or second router set up wronglyStep 7
Works on cable and fails on Wi-Fi (or the reverse)That specific adapter, or a static IP only on that connectionSteps 4 and 6

Confirm the PC has no IP address

In Windows PowerShell, this command lists the address of each adapter:

Command
Get-NetIPAddress -AddressFamily IPv4 | Format-Table InterfaceAlias, IPAddress
PowerShell with the Get-NetIPAddress command showing the Wi-Fi adapter with the address 169.254.87.12 highlighted
An address starting with 169.254 on Wi-Fi (1) means the router didn't answer the IP request: Windows made up a temporary address that reaches neither the internet nor the other PCs.

If Wi-Fi shows an address starting with 169.254, the computer asked for an IP and nobody answered, so Windows assigned itself a temporary address that’s only good for talking to itself. Microsoft mentions this sign on its page Fix Wi-Fi connection issues in Windows as a reason to check that DHCP is enabled on the router. A normal address (such as 192.168.x.x) with no internet is a different case: see the FAQ.

1. Restart the router the right way

Unplug the router (and the provider’s modem, if they’re separate boxes) for about 30 seconds. Plug the modem in first, wait for its lights to settle, then the router. Only then restart the computer.

Warn the team first: Teams calls will drop, and anyone saving a file to a network folder could lose their changes.

2. Forget the network and reconnect

  1. Go to Settings > Network & internet > Wi-Fi > Manage known networks.
  2. Select the office network and then Forget.
  3. Reconnect from the network icon on the taskbar, entering the password.

This throws away old settings for that network, which helps when the password or the router has changed.

3. Release the address and request a new one

Right-click Start (or press Windows + X) and open Terminal (Admin). Run these one at a time:

Command
ipconfig /release
ipconfig /renew
ipconfig /flushdns
Command Prompt with ipconfig /release and ipconfig /renew highlighted
Release the IP (1) and request a new one from the router (2).

If /renew hangs and ends with a timeout error, the request isn’t reaching the router or the router isn’t answering. In that case, in the same window, run the two network stack reset commands Microsoft recommends and restart the PC:

Command
netsh winsock reset
netsh int ip reset

4. Make sure the IP is set to automatic

Many office PCs were given a static IP years ago and nobody remembers. When the router is replaced and the address range changes, that IP stops working.

  1. Go to Settings > Network & internet > Wi-Fi > Manage known networks and choose the office network.
  2. Next to IP assignment, see whether it says Manual.
  3. If so, select Edit, choose Automatic (DHCP) and select Save.
Wi-Fi network properties in Windows 11 Settings with IP assignment set to Manual and the Edit button highlighted
IP assignment set to Manual (1) means someone typed a fixed IP for this network. If it doesn't match the current router's range, Wi-Fi connects but has no valid configuration: click Edit and choose Automatic (DHCP).

These field names come from Microsoft’s official page Essential Network Settings and Tasks in Windows. Write down the old address first: if the static IP was deliberate, adjust it to the new range rather than deleting it. Two devices with the same number cause a different fault, an IP address conflict.

5. Turn off random MAC addresses for the office network

Windows 11 can present itself to the router with a randomly generated physical (MAC) address instead of the card’s real one. That protects privacy on public networks, but it gets in the way of networks that recognize devices by MAC address, such as those using MAC filtering or DHCP reservations.

Windows 11 Settings Wi-Fi page with the Random hardware addresses option turned on and highlighted
With Random hardware addresses on (1), the laptop shows the router a MAC different from the registered one. On a network with MAC filtering or IP reservation, turn it off just for the office network, under Manage known networks.

On the Wi-Fi page in Settings, the Random hardware addresses toggle applies to every network. To keep the protection outside the office, it’s better to turn it off only for the company network: Wi-Fi > Manage known networks, pick the network and turn off Random hardware addresses there. The path is described in Connect to a Wi-Fi network in Windows. The option only appears if your Wi-Fi hardware supports it.

Phones do the same. On an iPhone (iOS 18 or later): Settings > Wi-Fi, tap More Info next to the network > Private Wi-Fi Address > Off or Fixed (with Fixed, the iPhone uses a private address that doesn’t change on that network, and that’s the one to register on the router), as explained on Apple’s page about private Wi-Fi addresses. On Android, a randomized MAC has been the default since Android 10 and can be changed network by network in the saved network’s details; the option’s name varies by manufacturer.

6. Reset the network and reinstall the driver

If only that PC fails, the problem is the adapter or the Windows network configuration.

  1. Settings > Network & internet > Advanced network settings > Network reset.
  2. Select Reset now and confirm with Yes. The PC restarts.
Windows 11 Network reset page with the Reset now button highlighted
Network reset reinstalls your adapters. The computer restarts afterward.

Still no IP? Open Device Manager, expand Network adapters, right-click the Wi-Fi card and choose Uninstall device. Check Attempt to remove the driver for this device, confirm with Uninstall and restart: Windows reinstalls the driver. If it doesn’t come back or keeps failing, download the network driver from the laptop maker’s support site, using another computer or a cable connection.

If the error shows up every time the laptop wakes from sleep, clear Allow the computer to turn off this device to save power on the adapter’s Power Management tab.

Also test with the VPN and any third-party firewall paused for a few minutes. If the IP arrives that way, adjust the rule in that program instead of leaving it off.

7. When the router is the problem

If several devices can’t get an IP, sign in to the router’s admin page (the address is usually on the label underneath) and check:

  • DHCP server enabled. It sometimes gets switched off when a second router is installed and never comes back on.
  • Address pool exhausted. Every staff and visitor phone holds an address for the lease time. With many people coming and going, the pool runs out and the last to arrive get no IP. Enlarge the range, shorten the lease time or move visitors to a guest Wi-Fi network.
  • Two DHCP servers on the same network. The provider’s modem and the office router both handing out addresses cause intermittent failures. Leave DHCP on in just one and turn it off in the other (or put the modem in bridge mode, with the provider’s help).
  • MAC filtering. A new laptop, a replaced card or a random MAC (step 5) stays locked out until someone registers the address.
  • Extender or mesh. If the error only happens near an extender, restart it; if it’s set up as a router with its own DHCP, the conflict is the same as the previous item.

Names vary by router brand. Before changing anything, take a photo of the current settings so you can undo it.

Which fix to choose

  • Error on a single PC that worked yesterday: steps 2, 3 and 4, in that order.
  • New or freshly reinstalled laptop, in an office that controls devices: step 5 and registration on the router.
  • Error after replacing the router or switching provider: step 4 on every PC with a manual IP.
  • Nobody gets an IP: steps 1 and 7. Resetting the computers won’t help.

Frequently asked questions

Wi-Fi connects and the address looks normal, but websites won’t open.

Then the IP is fine and the fault is usually DNS. See DNS server not responding.

The office network doesn’t even appear in the laptop’s list.

That’s a different problem, related to the adapter or Wi-Fi being turned off in Windows. See Wi-Fi not showing up in Windows 11.

Can I give the PC a static IP so the printer always finds it?

You can, but the tidier option is a DHCP reservation on the router: the device stays on automatic and always gets the same number. If you prefer a static IP, use an address outside the range DHCP hands out.

Share

About the author

TECHNOARTH Editorial Team

The TECHNOARTH newsroom: technology tutorials, guides, comparisons and news produced with AI assistance and checked against manufacturers’ official sources.

Reviewed by Arth Moraes — Arth Moraes is the editorial pen name of the person responsible for TECHNOARTH, who sets the agenda, reviews and approves every tutorial before publication and is accountable for corrections.