Back to Blog
dhcpwifi troubleshootingip addressnetworking

How to Fix WiFi DHCP Errors: “Failed to Obtain IP Address” and Related Issues

Seeing a “Failed to obtain IP address” or “DHCP is not enabled for WiFi” error? Here are the most effective fixes for Android, iPhone, Windows, and the router itself.

How to Fix WiFi DHCP Errors: “Failed to Obtain IP Address” and Related Issues
7 min read

You tap on your WiFi network, it connects for a second, and then you see it: “Failed to obtain IP address.” Or maybe Windows is showing “DHCP is not enabled for WiFi” in your network diagnostics. Either way, your device is stuck — connected to the network but unable to get an IP address, which means no internet.

DHCP (Dynamic Host Configuration Protocol) is the system your router uses to hand out IP addresses to every device that joins your network. When it breaks down, devices can’t communicate. The fix depends on whether the problem is on your device, your router, or both.

What Causes DHCP Errors?

Before diving into fixes, it helps to understand the most common culprits:

  • IP pool exhaustion: Your router has a limited pool of IP addresses to hand out (typically 50–254). If every slot is taken by connected devices, new devices get rejected.
  • MAC address randomization: Android 10+ and iOS 14+ randomize your device’s MAC address by default. If your router uses MAC filtering, the random address may be blocked.
  • Corrupted network profile: A stale or corrupted saved network can cause the DHCP handshake to fail even when the router is working fine.
  • Router firmware bug: Some firmware versions have known DHCP bugs that cause intermittent IP assignment failures.
  • Windows TCP/IP stack corruption: A corrupted Winsock or TCP/IP stack on Windows can prevent the DHCP client service from functioning correctly.
  • Weak WiFi signal: A signal just barely strong enough to associate with the router may not be reliable enough to complete the multi-step DHCP exchange.

Step 1: Restart Your Router and Device

This resolves the majority of DHCP errors caused by transient glitches. Power-cycle your router and modem by unplugging both, waiting 30 seconds, then plugging the modem in first. Wait for it to fully sync before powering on the router. Once the router is back online, restart your device and try reconnecting.

If the error only appears on one device but other devices connect fine, the problem is almost certainly on the device side. If every device on your network is failing, the router’s DHCP server is the issue.

Step 2: Forget and Rejoin the Network

A corrupted saved network profile is a surprisingly common cause. Forgetting the network forces your device to go through a fresh DHCP discovery process from scratch.

  • Android: Go to Settings → Wi-Fi, long-press your network name, and tap Forget. Then reconnect by selecting the network and re-entering the password.
  • iPhone/iPad: Go to Settings → Wi-Fi, tap the (i) icon next to your network, and tap Forget This Network.
  • Windows: Go to Settings → Network & Internet → Wi-Fi → Manage known networks, select your network, and click Forget.

Step 3: Disable MAC Address Randomization

If your router uses MAC-based DHCP reservations or MAC filtering, the random MAC address generated by your phone or laptop will be treated as an unknown device — and potentially blocked. Disabling randomization for your home network is safe and resolves this issue immediately.

  • Android: Go to Settings → Wi-Fi, tap the gear icon next to your network, select Privacy, and change it to Use device MAC.
  • iPhone: Go to Settings → Wi-Fi, tap (i) next to your network, and toggle off Private Wi-Fi Address.
  • Windows 11: Go to Settings → Network & Internet → Wi-Fi, select your network, and set Random hardware addresses to Off.

For more detail on this issue, see our guide on fixing WiFi issues caused by MAC address randomization.

Step 4: Release and Renew Your IP Address (Windows)

On Windows, you can force a fresh DHCP request from the command line. Open Command Prompt as Administrator and run the following commands in order:

  1. ipconfig /release — releases the current IP lease
  2. ipconfig /flushdns — clears the DNS cache
  3. ipconfig /renew — requests a new IP from the DHCP server

If that doesn’t work, reset the TCP/IP stack entirely with these two commands:

  1. netsh winsock reset
  2. netsh int ip reset

Restart your computer after running these commands. This resolves the vast majority of Windows-specific DHCP failures.

Also Check: DHCP Client Service

Press Win + R, type services.msc, and scroll to DHCP Client. Make sure its status is Running and the startup type is Automatic. If it’s stopped, right-click and select Start.

Step 5: Check the Router’s DHCP Pool

If multiple devices are failing, your router’s DHCP address pool may be exhausted. Log into your router admin panel (typically 192.168.1.1 or 192.168.0.1) and navigate to the DHCP settings.

Check two things:

  • DHCP lease time: If it’s set very high (e.g., 7 days), old leases from devices that are no longer connected may still be occupying slots. Lowering the lease time to 4–8 hours helps recycle addresses faster.
  • Address pool range: Expand the pool. For example, if it’s currently 192.168.1.100–192.168.1.149 (50 addresses), widen it to 192.168.1.100–192.168.1.200 (100 addresses).

Homes with 30+ smart home devices are especially prone to IP pool exhaustion. See our guide on how smart home devices affect your WiFi for more context.

Step 6: Assign a Static IP Address

If DHCP keeps failing for a specific device, bypassing DHCP entirely with a static IP is a reliable workaround. You can do this either on the device itself or via a DHCP reservation on the router (which reserves a specific IP for a specific MAC address).

To set a static IP on Android, go to your WiFi network settings, switch IP settings from DHCP to Static, and enter an IP address outside the router’s DHCP range (e.g., 192.168.1.200), the subnet mask (255.255.255.0), and your router’s IP as the gateway and DNS server.

Step 7: Update Router Firmware

Several router firmware versions have shipped with known DHCP bugs. Updating to the latest firmware often fixes intermittent IP assignment failures without any other changes. Log into your router admin panel, go to the firmware or update section, and check for available updates. Our guide on how to update router firmware covers the process for all major brands.

Quick Diagnosis Guide

SymptomMost Likely CauseFirst Fix
All devices failing DHCPRouter DHCP pool exhaustedExpand DHCP pool; restart router
One device only (Android/iPhone)MAC randomization blockedDisable private/random MAC address
One Windows PC onlyCorrupted TCP/IP stackRun netsh winsock reset
Intermittent failuresFirmware bug or weak signalUpdate firmware; improve signal
After factory reset or new deviceMAC filtering activeAdd device MAC to allowed list

DHCP errors are almost always fixable without replacing any hardware. Start with a router restart and “forget network,” disable MAC randomization if you’re on Android or iPhone, and use the Windows command-line tools if you’re on a PC. If problems persist, check the router’s DHCP pool size — a growing smart home is the most common hidden culprit in households with many connected devices.

Related Articles