If you see “Unable to contact your DHCP server” on Windows, your computer cannot get an IP address from the router, so it falls back to a self-assigned address and loses network access. The fix is usually one of three things: restart the router and PC, run the built-in network troubleshooter, or manually renew the IP lease with the ipconfig commands below. This article explains why the error happens, walks through each fix in order, and answers common follow-up questions.
What DHCP Does and Why It Fails
DHCP (Dynamic Host Configuration Protocol) is how your device asks the router for an IP address, subnet mask, gateway, and DNS servers when it joins a network. The router runs a DHCP server that hands out these settings automatically. When your PC says it cannot contact that server, it means the request either never reached the router, the router rejected it, or the reply never came back.
Common causes include:
- A loose or faulty Ethernet cable or a Wi-Fi adapter that dropped the connection.
- The router’s DHCP service is disabled or the address pool is exhausted (too many devices).
- Outdated or corrupted network drivers on your PC.
- Leftover static IP settings from a previous network.
- Third-party VPN or firewall software blocking the DHCP traffic.
- ISP outage that makes the router unable to renew its own WAN lease, which can confuse the LAN side.
Quick Fixes to Try First
Start with the simplest actions because they resolve a large share of DHCP errors:
- Restart your router and PC. Unplug the router power for 30 seconds, plug it back in, wait for all lights to stabilize, then restart your computer. This clears temporary glitches and forces a fresh DHCP request.
- Check physical connections. If on Ethernet, reseat both ends of the cable. If on Wi-Fi, toggle the adapter off and on from the taskbar.
- Run Windows’ built-in troubleshooter. Go to Settings → System → Troubleshoot → Other troubleshooters → Network Adapter and run it. It often resets the adapter automatically.
- Disable and re-enable the adapter. Open Control Panel → Network and Sharing Center → Change adapter settings, right-click your adapter, choose Disable, wait a few seconds, then Enable.
Renew Your IP Lease with Command Prompt
If the quick fixes fail, manually forcing a new DHCP lease is the most direct solution. Open Command Prompt as administrator (search “cmd”, right-click, Run as administrator) and run these commands one at a time:
ipconfig /release— drops your current IP address.ipconfig /renew— asks the DHCP server for a fresh lease.
Watch the output. If you see an IP address that starts with 169.254., the renew failed again. That range is the Automatic Private IP Addressing (APIPA) fallback, which means your PC gave up and assigned itself an address that only works on a single isolated link. If you get a normal address like 192.168.1.x or 10.0.0.x, the problem is solved.
You can also flush the DNS cache with ipconfig /flushdns after renewing, though it is not strictly required for DHCP.
Check Adapter Settings for Static IP Conflicts
A common hidden cause is that your adapter is set to use a static IP address, either from a previous setup or by a VPN. To check:
- Open Control Panel → Network and Sharing Center → Change adapter settings.
- Right-click your active adapter and choose Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Make sure both “Obtain an IP address automatically” and “Obtain DNS server address automatically” are selected.
If they were set to manual values, switch them to automatic and click OK. Then repeat the ipconfig /release and ipconfig /renew steps.
Update or Reinstall Network Drivers
Outdated or corrupted drivers can prevent the adapter from sending or receiving DHCP packets. Open Device Manager (right-click the Start button), expand Network adapters, right-click your Wi-Fi or Ethernet adapter, and choose Update driver → Search automatically for drivers. If Windows finds nothing, visit your PC or adapter manufacturer’s support page and download the latest driver for your exact model and Windows version.
If updating does not help, right-click the adapter in Device Manager and choose Uninstall device. Do not check “Delete the driver software” unless you have the installer ready. Then restart your PC — Windows will reinstall the driver automatically, and the fresh install often clears the problem.
Router-Side Checks and Advanced Steps
If your PC still cannot get an address, the issue may be on the router side. Try these in order:
- Log into the router admin page (usually
192.168.1.1or192.168.0.1) and confirm DHCP is enabled. Look for a setting called “DHCP Server” under LAN or Network settings. - Check the DHCP address pool. If the range is full (e.g., 192.168.1.2 to 192.168.1.254 and every address is taken), reduce the lease time or remove unused devices.
- Reboot the router properly. Unplug it for 60 seconds — some routers need a full power drain to reset the DHCP service.
- Test with another device. If your phone also fails to get an IP, the router is the problem. If only your PC fails, it is the PC’s adapter or software.
- Temporarily disable VPN or firewall software. Some security suites intercept DHCP traffic. Disable them for a minute and try renewing.
- Reset the network stack. In an elevated Command Prompt, run
netsh winsock resetandnetsh int ip reset, then restart your PC. This restores the Windows networking components to defaults.
Frequently Asked Questions
Why does my PC show a 169.254 address?
That address is the APIPA fallback. When your PC sends DHCP requests and gets no reply, it assigns itself an address in the 169.254.x.x range so it can still communicate with directly connected devices. It is a symptom, not a cause — the real issue is that the DHCP server never responded.
Will restarting my router delete my settings?
A normal restart (unplug and plug back in) preserves your settings. A factory reset (holding the reset button for 10+ seconds) erases everything and restores defaults. Only do a factory reset if you are comfortable reconfiguring your Wi-Fi name, password, and any port forwarding rules.
Can a VPN cause this error?
Yes. Some VPN clients install virtual adapters that take over the network stack or set static routes. If the VPN is active during startup, it can block the DHCP request. Disconnect the VPN, renew the lease, and then reconnect — or configure the VPN to not start automatically.
Why does this happen only on one device?
If other devices connect fine, the problem is local to that device: its adapter, driver, or software. Try connecting that device with an Ethernet cable to rule out Wi-Fi hardware issues. If Ethernet works, the Wi-Fi adapter is the suspect.
Is it safe to use a static IP instead of DHCP?
Yes, if you know your network’s subnet, gateway, and DNS. But a wrong static IP can cause conflicts or no connectivity at all. For most home users, fixing DHCP is easier than maintaining a static IP, especially if the router assigns addresses dynamically.
How long does a DHCP lease last?
It depends on the router’s configuration. Many home routers use a 24-hour lease, but some use 12 hours or even 7 days. When the lease expires, your device must renew it. If the router is unreachable at that moment, you get this error.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Valheim Server Not Showing in Community List Fixes
- DisplayPort vs HDMI: Which Cable Should You Use?
- Soundbar vs 2.1 Speaker System: Which Is Better?
- Mouse Moving on Its Own? Causes & Fixes
- Slack Channels for Construction Projects: Setup Guide
- Surface Won’t Turn On: Quick Fixes1.8 h