Console9

ipconfig: Unable to contact your DHCP server

Fix the ipconfig 'Unable to contact your DHCP server' error that prevents IP address renewal on Windows by releasing and renewing the DHCP lease.

ipconfig produces the "Unable to contact your DHCP server. Request has timed out" message when the network adapter cannot reach the Dynamic Host Configuration Protocol (DHCP) server to obtain a new IP address lease.

When ipconfig Produces This Error

ipconfig displays the "Unable to contact your DHCP server" error when running ipconfig /renew and the DHCP server does not respond within the timeout period. This occurs when the router (which runs the DHCP server) is unreachable due to a network cable disconnection, Wi-Fi signal loss, or router failure.

ipconfig also produces this error when the DHCP server's address pool is exhausted. The DHCP server cannot assign a new IP address when all available addresses in its configured range are already leased to other devices on the network.

What Causes "Unable to Contact Your DHCP Server" in ipconfig

ipconfig sends a DHCPDISCOVER broadcast message when running /renew. The DHCP server must receive this broadcast and respond with a DHCPOFFER message containing a new IP address. When the DHCP server does not respond, ipconfig times out and displays the error. The timeout occurs because the network path between the computer and the DHCP server is broken.

ipconfig cannot renew the IP address when the network adapter is disabled or disconnected. Windows disables the adapter when the physical cable is unplugged (for wired Ethernet connections) or when the Wi-Fi signal drops below the minimum threshold. A disabled adapter cannot send DHCP broadcast messages to the network.

How to Fix "Unable to Contact Your DHCP Server" in ipconfig

  1. Verify the physical network connection. Check that the Ethernet cable is plugged in securely at both ends (computer and router or switch). For Wi-Fi connections, verify that the wireless adapter is enabled and connected to the correct network.

  2. Open Windows Command Prompt. Type cmd in the Windows search bar and select the Command Prompt app.

    ipconfig open command prompt app

  3. Run ipconfig /release to release any existing DHCP lease. This command sends a DHCPRELEASE message to the DHCP server and clears the current IP address assignment.

    ipconfig release command results

  4. Run ipconfig /renew to request a new IP address lease from the DHCP server. This command sends a DHCPDISCOVER broadcast message and waits for the DHCP server to respond with a new address.

    ipconfig renew command results

  5. Restart the router if ipconfig /renew still fails. Power off the router, wait 30 seconds, and power it back on. The DHCP server on the router reinitializes its address pool during the restart.

How to Verify the Fix

Run ipconfig after the renewal completes. Look for the IPv4 Addressfield in the output. A valid IP address in the expected range (such as 192.168.x.x or 10.x.x.x) confirms that the DHCP server assigned a new lease. An address starting with 169.254.x.x indicates Windows used Automatic Private IP Addressing (APIPA) because the DHCP server was still unreachable.

Edge Cases and Variations

ipconfig may fail to renew when a third-party firewall or antivirus application blocks DHCP traffic on UDP ports 67 and 68. Temporarily disable the firewall to test whether it blocks the DHCP handshake between the network adapter and the router.

ipconfig cannot renew an IP address on adapters configured with a static IP assignment. Verify the adapter uses automatic DHCP assignment by opening Windows Network Adapter Properties and checking that "Obtain an IP address automatically" is selected.