Wi-Fi & Home Networking

How to Fix "Obtaining IP Address" Errors

Fix a phone or computer stuck obtaining an IP address by checking DHCP, the password, address pools, MAC filtering and static settings.

Key takeaways

  • The message means the device hasn't received a working address from the DHCP server, which is usually your router.
  • Test another device to learn whether the problem is the router or just this one gadget.
  • A full address pool, MAC filtering and a second DHCP server are common router-side causes.
  • An address beginning with 169.254 shows that a computer gave up and assigned one to itself.
  • A temporary manual address is a useful test but a poor permanent fix.

A device stuck on "Obtaining IP address" has found your Wi-Fi network but isn't completing the step where the router gives it an address. Start by turning Wi-Fi off and on, forgetting the network and rejoining with the password typed carefully, and restarting the router. If it still hangs, check whether the router's address pool is full, whether it's blocking the device, and whether the device has an odd static or private address setting.

The fixes below go from quickest to most involved.

What's supposed to happen

After your device authenticates to the Wi-Fi network, it needs an IP address, a subnet mask, a default gateway and a DNS server. DHCP (Dynamic Host Configuration Protocol) delivers all of them in a four-step exchange, covered fully in the DHCP message exchange.

If any step goes missing, the device waits, retries and eventually fails. On Windows and many other systems, it may then assign itself a link-local address in the 169.254.0.0/16 range (defined in RFC 3927). That address only works with neighbors on the same segment, so there's no internet.

Where the exchange can stall
Your device Router Join Wi-Fi and prove the password 1 A wrong key can look like an address problem DHCP Discover 2 DHCP Offer 3 Missing if pool is full or device blocked DHCP Request 4 DHCP Acknowledge 5 Address is now usable Your device Router Join Wi-Fi and prove the password 1 A wrong key can look like an address problem DHCP Discover 2 DHCP Offer 3 Missing if pool is full or device blocked DHCP Request 4 DHCP Acknowledge 5 Address is now usable

Quick fixes first

  1. Toggle Wi-Fi off and on, or switch airplane mode on and off.
  2. Move closer to the router. A weak signal can lose DHCP replies.
  3. Forget the network and join again, typing the password carefully. Some devices show this message when the key is wrong.
  4. Restart the device.
  5. Restart the router by unplugging it for about half a minute.

Then try a second device. If it also fails to join, go to the router sections. If it connects fine, concentrate on the problem device, though a router rule aimed at that one device is still possible.

Check the address you did get

# Windows
ipconfig /all
# Linux
ip addr show

# macOS, for the interface named en0
ifconfig en0

On phones, open the Wi-Fi network's details. Interpret what you see:

What you see Meaning
169.254.x.x No DHCP reply arrived
0.0.0.0 or blank Still waiting, or the interface failed
Private address with gateway DHCP worked; look elsewhere
Unexpected range Another DHCP server or a manual setting

Force a fresh request

# Windows
ipconfig /release
ipconfig /renew

On macOS, the network settings for the Wi-Fi connection include a button to renew the DHCP lease. On Linux with NetworkManager, you can cycle the radio:

nmcli radio wifi off
nmcli radio wifi on

If Windows reports that it can't contact the DHCP server, make sure the DHCP Client service is running and that configuration is set to obtain an address automatically.

Fix the device settings

Static settings. If someone once set a manual address on this network, it may now conflict or point nowhere. Set IP and DNS back to automatic (DHCP).

Private Wi-Fi address. Phones and computers often use a randomized MAC address. If your router filters by MAC or reserves by MAC, switch that network to the device's real address, or update the router's list.

VPN, firewall and security apps. Pause a VPN and test. Update security software that manages network traffic.

Drivers and system updates. Install them. On Windows you can also uninstall the wireless adapter in Device Manager and restart so it's detected again.

Network reset. As a later step, reset network settings. It erases saved networks, so follow the reset guide.

Fix the router side

Sign in to the router and check the following.

Is DHCP turned on?

Look in LAN settings. If it was disabled by accident, or because the router is in access point mode while nothing else provides DHCP, devices will hang.

Is the pool full?

The router hands out addresses from a range, say 192.168.1.100 to 192.168.1.149. That's 50 addresses. Add phones, TVs, plugs, cameras and guests, and it can fill. Widen the range, staying inside your subnet and clear of static addresses, or shorten the lease time so departed guests free their addresses sooner. A subnet host tool or CIDR calculator shows what your mask allows.

Is the device blocked?

Check MAC filtering, access control, parental pause features and device limits. MAC filtering offers little security and often causes this exact symptom.

Is there a second DHCP server?

An extra router connected LAN to LAN with DHCP still enabled will hand out competing answers. Disable it there. Running two routers shows the correct setup.

Are firmware and Wi-Fi mode current?

Update the router. If one older gadget alone fails, check whether it supports your security mode and band. Many small smart devices only use 2.4 GHz.

Stuck obtaining an address: where is the fault?
Do other devices also fail to get an address? YES Restart the router and check that DHCP is on and the pool has room. 1 NO Did the password or security mode change? YES Forget the network and rejoin with the right key. 2 NO Does the router filter or reserve by MAC address? YES Allow the device, or fix its private address setting. 3 NO Repair the device Return it to automatic addressing, update it, then reset network settings. Do other devices also fail to get an address? 1 IF YES Restart the router and check that DHCP is on and the pool has room. NO Did the password or security mode change? 2 IF YES Forget the network and rejoin with the right key. NO Does the router filter or reserve by MAC address? 3 IF YES Allow the device, or fix its private address setting. NO Repair the device Return it to automatic addressing, update it, then reset network settings.

Test with a manual address

To learn whether DHCP is the only broken part, temporarily configure an unused address. Say your router is 192.168.1.1:

  • IP address: 192.168.1.200 (pick one that's outside the pool and unused)
  • Subnet mask: 255.255.255.0
  • Gateway: 192.168.1.1
  • DNS: 192.168.1.1

If the device now reaches the internet, Wi-Fi works and DHCP is the problem. Switch back to automatic afterward. A permanent manual address invites conflicts; if you want a stable one, use a DHCP reservation once DHCP is working.

Don't try this on a work, school or public network. Pick-your-own addresses there can disrupt others and may breach the network's rules; tell the administrator instead.

Public and managed networks

On a hotel or cafe network, a full pool or a registration requirement is out of your hands. Move closer to an access point, rejoin, and ask staff. On a corporate network, your device may need a certificate or enrollment before it's given a working address, so contact IT.

Phone and gadget specifics

Android. Open the saved network and look at its IP setting. It should normally be DHCP. Also check the MAC privacy option, which may be labeled as a randomized or device MAC. Some versions have a developer option affecting how often the random address changes.

iPhone and iPad. In the network's details, set IP configuration to automatic, and use the renew lease control. If a private or rotating address setting is on and your router filters devices, set it to fixed or turn it off for that network.

Smart plugs, bulbs and cameras. Setup apps often report an address failure for any joining problem. Confirm that you're giving the device a 2.4 GHz network, that the password has no typing errors and that the router isn't refusing new clients. Smart devices that won't connect lists more causes.

Printers. Many print a network report from the control panel that shows the current address and whether DHCP is enabled.

Read the router's evidence

The router's client list and log can end the guessing. If your device appears in the list of wireless clients but never in the DHCP lease table, the radio link works and addressing fails. If it never appears at all, it isn't getting past authentication, so revisit the password and security mode. A log line showing an address being offered repeatedly without being accepted points toward a poor signal, an address conflict or a second server answering.

Count the leases against the size of your pool. Many entries for devices you no longer own, or a long list from past guests, suggest the lease time is longer than your household needs. If unfamiliar devices are filling the pool, change your Wi-Fi password and review your network's security.

When nothing works

If one device fails on every Wi-Fi network, its adapter or software is the likely fault; test a different network, such as a phone hotspot, to confirm. If every device fails on your router even after a restart, back up your notes, factory reset it and set it up again. If that doesn't help, the router's hardware or firmware is suspect. Where the router belongs to your provider, call them with your test results: which devices fail, what address they show and what you've already tried.

A worked example

Say new phones can't join on the evening you have guests, while devices already connected carry on normally. That pattern suggests the pool: existing devices hold leases, and newcomers find nothing free. The router's settings show a range of 192.168.1.100 to 192.168.1.119, only 20 addresses, with a lease time of several days.

Widening the range to 192.168.1.100 through 192.168.1.199, after confirming that no static device sits inside it, solves it. A guest network with its own pool and a shorter lease would keep visitors from filling the main one next time.

A different pattern, where every device fails right after you plugged in a second router, points straight at competing DHCP servers instead.

Preventing a repeat

  • Keep the DHCP pool comfortably larger than your device count.
  • Use reservations instead of manual addresses.
  • Keep a single DHCP server on the network.
  • Update router firmware.
  • Write down your network settings, so a reset isn't a puzzle.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Wi-Fi & Home Networking →

Latest news on this topic