Fix Unable to Contact Your DHCP Server on Windows 11
In this article
Yes, you can fix the "Unable to contact your DHCP server" error on Windows 11 by resetting the network stack, updating or reinstalling the network adapter driver, and verifying that the router’s DHCP service is running correctly.
What You'll Need
- Administrator access to the Windows 11 PC.
- Access to your router’s web‑based configuration page (username/password).
- An Ethernet cable (optional, but useful for testing a wired connection).
- Internet access for downloading driver updates or Windows updates.
Step‑By‑Step
- Restart the computer and the router. Power off the PC, unplug the router for 30 seconds, then plug it back in. Once the router lights are stable, turn the PC back on. A simple reboot clears temporary glitches that often cause DHCP failures.
- Run the built‑in network troubleshooter. Open Settings → System → Troubleshoot → Other troubleshooters, locate Network Adapter, click Run. Follow any prompts; Windows will automatically try to detect and fix common issues.
- Reset the TCP/IP stack. Open an elevated Command Prompt (right‑click the Start button, choose Windows Terminal (Admin)) and type:
netsh int ip reset
Press Enter. The command rewrites the registry entries that control TCP/IP configuration. - Release and renew the IP address. In the same elevated command window, run:
ipconfig /release
ipconfig /renew
These commands force the PC to request a new lease from the DHCP server. - Reset Winsock. Still in the admin console, type:
netsh winsock reset
Winsock manages Windows socket connections; resetting it can clear corrupted entries that block DHCP traffic. - Update the network adapter driver. Press Win + X and select Device Manager. Expand Network adapters, right‑click your adapter, choose Update driver → Search automatically for drivers. Windows will download the latest compatible driver from Microsoft’s catalog.
- Reinstall the driver if the update did not help. In Device Manager, right‑click the adapter and choose Uninstall device. Confirm the removal, then restart the PC. Windows will reinstall a generic driver on boot. If the problem persists, download the vendor’s driver from the manufacturer’s website and install it manually.
- Verify the adapter’s IP settings. Open Settings → Network & internet → Advanced network settings → More network adapter options. Right‑click the active adapter, choose Properties, double‑click Internet Protocol Version 4 (TCP/IPv4). Ensure both Obtain an IP address automatically and Obtain DNS server address automatically are selected.
- Check the router’s DHCP configuration. Using a web browser, log into the router (commonly 192.168.1.1 or 192.168.0.1). Locate the DHCP settings page—often under LAN or Network Settings. Confirm that DHCP is enabled, that the address pool is large enough, and that there are no MAC‑address filters blocking your PC.
- Temporarily disable third‑party firewalls or antivirus software. Some security suites intercept DHCP traffic. Turn them off for a few minutes, then retry the connection. If the error disappears, add an exception for DHCP (port 67/68 UDP) before re‑enabling protection.
- Test with a static IP address. In the IPv4 properties (see step 8), select Use the following IP address and enter an address within the router’s subnet (e.g., 192.168.1.50), a subnet mask of 255.255.255.0, and the router’s gateway address. If the PC can access the internet with a static IP, the issue is definitely DHCP‑related.
- Install any pending Windows updates. Go to Settings → Windows Update → Check for updates. Microsoft frequently releases patches that address networking bugs.
- Perform a network reset. If all else fails, open Settings → Network & internet → Advanced network settings → Network reset. Click Reset now. The PC will reboot and reinstall all network adapters with default settings.
- Use System Restore as a last resort. Search for "Create a restore point", click System Restore, and choose a restore point dated before the problem began. This rolls back driver and registry changes without affecting personal files.
Common Mistakes
- Skipping the router check and assuming the PC is at fault.
- Installing the wrong driver version (e.g., a Windows 10 driver on Windows 11).
- Leaving the static‑IP configuration enabled after testing, which prevents DHCP from working again.
- Disabling the network adapter in Device Manager instead of resetting it.
- Forgetting to reboot after making driver changes, which can leave the old driver still loaded.
Tips
- Keep a backup of your router’s configuration before changing DHCP settings.
- If you have both Wi‑Fi and Ethernet adapters, disable one while troubleshooting to avoid confusion.
- Use the
ping 8.8.8.8command after each step to verify basic connectivity. - Document the exact driver version before uninstalling; you can revert if the new driver introduces other issues.
- When using a static IP, choose an address outside the DHCP pool to avoid address conflicts.
Troubleshooting
If the error persists after completing the steps above, follow this escalation path:
- Test another device on the same network. If a smartphone or another PC obtains an IP address without issue, the router’s DHCP service is functional and the problem is isolated to the original Windows 11 machine.
- Swap network cables or change Wi‑Fi bands. A faulty Ethernet cable or a congested 2.4 GHz Wi‑Fi channel can prevent DHCP packets from reaching the client.
- Boot into Safe Mode with Networking. Restart, hold Shift while selecting Restart, then choose Troubleshoot → Advanced options → Startup Settings → Restart → press 5 for Safe Mode with Networking. If DHCP works in Safe Mode, a third‑party service or startup program is interfering.
- Check the event logs. Open Event Viewer → Windows Logs → System and look for entries from "Dhcp-Client" or "Tcpip" that indicate why the lease failed.
- Reset the router to factory defaults. This should be a final step because it erases all custom settings. After resetting, re‑configure the Wi‑Fi SSID and password, then enable DHCP again.
- Contact your ISP or router manufacturer. Some ISP‑provided routers have firmware bugs that affect DHCP on newer operating systems. A firmware upgrade or replacement may be required.
Frequently Asked Questions
Why does the error appear only on Wi‑Fi and not on Ethernet?
Wi‑Fi adapters often use separate driver modules and power‑management settings. A misconfigured wireless driver or a disabled DHCP client for the Wi‑Fi interface can cause the error while the wired adapter works correctly.
Can a VPN client block DHCP requests?
Yes. Some VPN software installs a virtual network adapter that routes all traffic, including DHCP, through the tunnel. Disabling or uninstalling the VPN temporarily can confirm if it’s the cause.
Does enabling "Random hardware addresses" in Windows 11 affect DHCP?
When the feature is on, Windows generates a new MAC address each time it connects to a network. If the router has MAC filtering or static DHCP reservations, the new address may be rejected, resulting in the error.
My laptop shows a valid IP address but still says "Unable to contact DHCP server". What gives?
This usually means the PC obtained an IP from a previous lease but cannot renew it because the DHCP server is unreachable. Running ipconfig /release followed by /renew forces a fresh request.
Is it safe to disable the Windows Firewall while troubleshooting?
Disabling the firewall for a short period is safe as long as you are on a trusted network. Remember to re‑enable it immediately after the test.
Will a Windows 11 feature update reset my network settings?
Feature updates can reinstall network adapters, which may revert custom driver versions or DNS settings. After an update, re‑run the steps above if the DHCP error reappears.