How to Fix “Obtaining IP Address” and “Failed to Obtain IP Address” Wi-Fi Errors on Android

The problem we are going to talk about in this article is the following: an Android phone or tablet gets stuck on “Obtaining IP Address” while connecting to a Wi-Fi network or says “Failed to Obtain IP Address” in the end. 

Stuck Obtaining IP address is a very common Wi-Fi issue on Android devices. You can encounter it on all versions of Android OS.

The error appears when you try to connect either to already saved Wi-Fi network or after you typed a password for a new wireless network.

How Does It Look?

The problem looks like the following: you turn on Wi-Fi, try to connect to your router but your Android device does not connect to Wi-Fi network.

When you enter the wireless settings you can see: “Connecting…”, “Obtaining IP address” or “Obtaining IP address from” that goes on in an infinite loop. 

Sometimes it says “Failed to obtain IP address”. The result of all those error is the same: you cannot connect to the Internet and consequently you are unable to use most of your apps.

It should be said, that you may encounter the stuck “Obtaining IP address” Wi-Fi issue on any version of Android from ancient 2.3.6 to Android 11.

The problem can occur on Samsung Galaxy, HTC, OnePlus and other devices. Very often CyanogenMod users are suffering the same glitch.

So you can try the guide on any Android  smartphone or tablet. The steps are basically the same for all brands and models. So let us find out how to fix stuck “Obtaining IP address” and “Failed to Obtain IP Address” while connecting to Wi-Fi on Android

What are the Causes of These Wi-Fi Errors on Android?

There are various possible reasons for endless “Obtaining IP address” loop and “Failed to Obtain IP address” error on Android.

Here are some of them:

  • Weak signal.
  • Wi-Fi security settings were changed on the router.
  • Glitch of a router.
  • Glitch of your Android smartphone (tablet).
  • DNS-related problem.
  • Activated wireless MAC filtering feature on router.
  • Wireless interference.

15 Ways to fix stuck “Obtaining IP address” and “Failed to obtain IP address” Wi-Fi Errors on Android

Below you will find ALL possible solutions to fix this Wi-Fi-related issue: from simple to more complicated. Some of them may seem ridiculous to you but it would be better that you try all of them.

Solution 1. Reconnect to Wi-Fi Network

First of all you should try these easy actions:

  • Forget your Wi-Fi network:
    forget network android 5
  • Tap on it again, enter password and reconnect.

Solution 2. Reboot Both Wi-Fi Router and Android Device

Reboot all devices to exclude the casual glitch. For example, to reboot TP-Link router you need to sign in to the router’s web interrface, then go to System Tools – Reboot and click on Reboot button:

reboot router tplink
Reboot your wireless router

To reboot your Samsung Galaxy device you should press and hold the Power button and then tap on Restart:

reboot android
Reboot your Android smartphone or tablet

Warning! We advise you to perform a full reboot on your Android phone or tablet instead of turning Airplane mode on and off. You need to restart the operating system but not only wireless modules.

Solution 3. Rename Your Android Device

Possible reason: Rare glitch on HTC devices. Go to Wi-Fi Direct settings and rename your device. Here you should change the hostname which looks like ‘android_909892’ to any simple word in English, for example ‘HTC One’ or ‘John’.

Solution 4. Switch to WPA2-PSK with AES on the Router

It is not recommended to use TKIP encryption as well as WEP security mode.

Solution 5. Turn Off Private DNS on Android

Private DNS can surprisingly turn out to be the culprit of network failure. Several users on the forums reported that they faced “Failed to obtain IP address” error right until they tried to disable Private DNS while troubleshooting the problem. And it suddenly worked. Such an issue was spotted on Android 10 Q and Android 9 Pie.

Turn off Private DNS mode
Private DNS causing “Failed to obtain IP Address” error on Android 10

The reason why Private DNS provokes network conflict, which results in the error, is unclear by this time.

Solution 6. Turn Off the MAC Filtering on Your Router

The router may be rejecting your Android device by MAC address. If the MAC filter feature is enabled and your device’s MAC address is not in the white list (or is present in the black list) you will face endlessly stuck “obtaining IP address” on your Android.

To fix that, go to your router settings, find MAC filtering setting and ensure that the MAC address of your Android device is not in the black list (if Black list mode is activated) or is present in the White list (if White list mode is activated).

It would be better to temporarily turn off the MAC filter just to understand if it causes the issue of Obtaining IP Address loop when you connect to wi-fi:

mac filter on tplink

You will always be able to turn it back on and add your device to the white list (or remove from the blacklist).

Solution 7. Reduce the Distance Between the Router (or AP) and Your Android Device

Possible reason: the signal is weak.

Do not skip reading this paragraph! It is very important to understand that when the distance between your router and Android is too long you may encounter looping Obtaining IP address.

It happens because the router transmitter is more powerful than the one in an Android device. So the router’s signal reaches your smartphone or tablet but the response does not reach the router.

Thus it appears that your Android device sees the wi-fi network but cannot connect to it and successfully obtain an IP address.

Try to reduce distance between the router or AP and your Android device. If the router is yours try to place it geographically in the middle of your house or apartments.

Also take into account that walls and floors can weaken the Wi-Fi signal more than you can think. I

n some cases one wall can kill the signal so the client device cannot connect to the router even if the router is right behind that wall.

Solution 8. Change the Wireless Channel

Possible reason: wireless interference. In very rare cases you will have “Failed to obtain IP address” if some neighbor network causes interference to your router’s Wi-Fi. Use WiFi Analyzer app to select the best wireless channel for your router:

change wireless channel on Router

Solution 9. Download and Install a Wi-Fi Fix App

Many users report the WiFi Fix app solved the issue of infinite Obtaining IP address. You can also try such apps from the Google Play Store.

Solution 10. Turn Off Network Notification

Go to Settings → Connections → Wi-Fi → Advanced and switch off Network notification:

network notification android 5

Solution 11. Assign a Static IP Address to Your Android Device

This is not a full solution, just a wonky workaround. But if you cannot fix the Obtaining IP Address loop or Failed to obtain IP Address error on your Android, you may apply it as a temporary solution.

Follow this guide to manually assign a static IP to your smartphone or tablet.

  • Go to Settings → Connections → Wi-Fi → Turn on Wi-Fi.
  • Long press on your network name.
  • Select Modify network config:
    modify network config
  • Set the checkbox Show advanced options and scroll down:show advanced options
  • In IP Settings select Static.
  • In IP Address field change the last octet. Specify for instance instead of your current address.
  • Tap on Save.
    static ip address ob android

Note that you need to know the router’s IP address for using this solution. Here we wrote about how to find it from an Android device.

If you are unable to access the Internet after you assigned the static IP, go back to Static settings and fill in the Gateway address and DNS1. In most cases both of them should containing the IP address of your router.

Solution 12. Reset Network Settings on Android

All modern phones and tablets that run one of the latest versions of Android support resetting network settings without deleting apps and data.

So, you should try this option to try getting rid of Failed to obtain IP Address error before you opt to factory reset your device. 

  • Go to Settings – System – Reset Options,
  • select Reset Wi-Fi, mobile & Bluetooth,
  • tap Reset settings.
  • and confirm the action by entering your pattern or another security code.
Reset Network Settings Wi-Fi, Mobile Data and Bluetooth Android 10

Solution 13. Clear the Cache of Google Play Services

I faced cases when glitches in Google Play Services seemed to be the reason why “Failed to Obtain IP address” error occurred on certain Android phones.   

  • Go to Settings – Apps (Apps& notifications);
  • Tap on See all apps;
  • Tap on three dots and select Show system;
  • Find Google Play Services in the list and tap it;
  • Select Storage & Cache;
  • And finally tap Clear Cache: Google Play Services clear cache Android 10

Solution 14. Factory Reset Your Android Device

In some cases “Failed to obtain ip address” error emerges as a result of malware activity. A trojan or a virus can damage the system and cause unforeseen consequences.

1. Scan your Android device with Malwarebytes Anti-Malware app:

Malwarebytes Anti-Malware android app

2. Try to reset your Android if nothing helps you fix the issue with Wi-Fi. Do not forget to back up all your photos, videos and music. Then go to Settings → Accounts → Backup and reset → Factory data reset and tap on RESET DEVICE:

factory reset android 5

Solution 15: Reset Your Wireless Router

First, make sure you know all credentials to get authorized at your ISP – write down or save in a text document your type of connection (PPPoE, L2TP, Dynamic IP) as well as your login, password and even the currently used MAC Address of your WAN port (in case if your ISP rejects connections from unregistered MAC addresses).

Then, restore your router to its factory defaults using its web interface or the physical Reset button on the unit.

router reset

When done factory resetting, configure your wireless router from a scratch. 

Wrapping Up

As you understand, there are various reasons of the error and there are different methods to fix it respectively. We hope that our guide helped you get rid of the problem and you will never again see “Failed to obtain IP address” on your Android device.

That’s all solutions we know. You may suggest yours in the comments. Thank you and have a nice day!

The article was originally published on July 4, 2016 but is regularly updated.

42 thoughts on “How to Fix “Obtaining IP Address” and “Failed to Obtain IP Address” Wi-Fi Errors on Android”

  1. Thank You so much for the info. I have tried and it really worked very well. Once again thank you very much for the detailed info.

  2. I have directly tried “Solution 10”, assigning a static IP address and IT WORKED. I didn’t have to make any changes in the phone. All I had to do is to ‘assign a specific IP address to the MAC address’ in the router configuration.

    In order to prevent the same problem occurring on other devices, I have assigned static IP addresses to all other devices.

  3. Thanks so much for sharing this info. Solution TWO helped me way in the ‘sticks’ in Africa! No technicians to help for miles around! After days of research via a hotspot for info to get my newly acquired TP-Link to work! A million thanks! P.S. Please do not forward me any spam, data costs an arm and a leg!

  4. After 2 days, 8 hours, tons of stress and almost throwing my mobile phone on the wall, you Sir just fixed my problem.
    Solution 10 fixed my problem.
    Thanks a lot.

  5. Link to “how to find router IP address from an Android device” is really not useful here: to connect to the network I need to set the static address and to set the static address I need to connect to the network? lol

    • I meant that you might use another Android device that connects successfully. But if there is only one at hand… you are right, this link is unfortunately useless.

  6. I had a different problem but the same error “Failed to obtain IP address”.
    We have a Managed WiFi Solution from Aruba with Cyberoam Firewall.
    We have Mac-Binding in our setup.
    Our tech-support engineer had opened up Guest Access where unknown devices can get internet access.
    At this time the mobile phone got an IP Address in the range of 10.10.99…
    After setting up the mobile phone, he replaced the mac-address of the new mobile in place of the old mobile in the mac-binding table in Cyberoam.
    Here the problem begins.
    The IP-Address ( stayed connected to the old mobile phone’s mac-address in Cyberoam.
    And the Mac-Address of the new mobile stayed connected to the Guest IP-Address (10.10.99…) in Cyberoam.
    We had to assign a new IP-Address ( to the mac-address of the new mobile, then it connected.
    Later we changed the IP-Address of the new mobile to the IP-Address that was assigned to the old mobile (, and it worked, probably the old mobile mac-address and IP-Address association got released.

  7. This can also happen if too many devices are connected to same router. This often happens on public WiFi on bus station because they use regular home router which can support about 40 devices

  8. My mac mini still works perfect with wifi internet ( from senior citizens housing wifi hub + personal password). But others devices ( new Chromebook, two white MacBook and Android phone) can’t : “obtaining IP” again-and-again !!! Please help.

  9. Change number of channels router….mine was 5 i changed to 13 to be sure :))) after install and reinstall the android for 30 times.

  10. Thanks, a very comprehensive list of “fixits” and It did the job for me. Much appreciated

  11. Thank you so much! Dad always takes the modem at night but they think we still don’t know about mom’s ‘secret’ modem, haha I connected it easily to my temporal laptop still the tablet always said “failed to obtain IP address”, which really was annoying, and since after I returned the laptop to the team I was left with only my tablet at night, I decided to try fixing it and look the chrome on morning, I’m glad I found you 😀 I started from solution 11.

  12. I did get a result by changing the IP address, so thanks…….
    TIP 8 says
    Many users report the WiFi Fix app solved the issue of infinite Obtaining IP address. You can also try such apps from the Google Play Store.
    How do they manage that if they cannot get on the internet?

    • 1. You may have problem with Wi-Fi but still have normally working cellular data connection.
      2. If you have an Android tablet without SIM-card, you can download the apk-file from using another device as we explained here. Then send the apk-file via Bluetooth from another Android or via USB from your PC.

  13. Does anyone have any idea why setting a static IP address works? What is it about the DHCP process that fails. I bought a moto X4 and G6 and both could not connect to my Actiontex Q1000 router/wifi. I have had this router for seven years and never seen this problem. DHCP loops but static address works. I have a couple of wifi access points that connect to the Actiontex Q1000 and are set up so that the Actiontec issues DHCP. When I connect to either access point DHCP fails and static works just like when connecting to the actiontec directly.

  14. I did solution 10, it now says connected, no internet.. yet i know the internet is working because i’m typing this from my laptop. I’ve tried disconnecting and reconnecting, restarting my phone, and turning the internet on and off from the router. Help?!

  15. I have an interesting problem that needs explaining please, we have a Huawei HG658b Router in the house, with a DSL cable attached to my PC with windows 7 OS, the thing is once I turn my PC on, the wi-fi connection in my brother’s Samsung Galaxy J7 prime automatically disconnects & keeps trying to connect but it keeps on failing.. the second I turn off my PC , the J7 goes back to normal & connects to wi-fi.. it also connects normally to other wi-fi networks outside the house.
    please guys any explanation for this weird phenomena ?? any solutions?
    Thank you


Leave a Comment