How to Fix Stuck Obtaining IP Address in WiFi on Android (Obtaining IP Address Loop)

Wi-Fi issue: Android device gets stuck on Obtaining IP Address while connecting to Wi-Fi Network

Stuck Obtaining IP address is a rather spread 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. 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 WiFi 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 is 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 wifi issue on Android 2.3.6, Android Jelly Bean 4.4.2, Android 4.4.2 KitKat as well as on Android 5. Sometimes people on the Internet report the issue even on Android 6 Marshmallow. The issue 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 while connecting to Wi-Fi on Android

stuck obtaining ip address loop wifi android

Android device gets stuck on Obtaining IP Address while connecting to Wi-Fi Network

Causes of Stuck Obtaining IP address issue

There are many different reasons for endless Obtaining IP address loop issue on Android. Here are some of them:

  • Weak signal.
  • The wireless security settings were changed on the router.
  • Glitch of a router.
  • Glitch of your Android smartphone (tablet).
  • Black-list / whitelist settings in MAC address settings on a router.
  • Wireless interference.

How to fix stuck Obtaining IP address on Android

Below you will find ALL possible solutions to fix the wi-fi 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 WiFi network

First of all you should try these easy actions:

  • Forget wifi network:
    forget network android 5
  • Tap on it again, enter password and reconnect.

Solution 2. Reboot your 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

Attention! If you believe that something is wrong with your wireless router or access point reset it to default settings and set up from the scratch:

router reset

Solution 3. Rename your device

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

Solution 4. Set up WPA2-PSK on your router

  • Go to the router’s webinterface. If you don’t know the IP address of your router, read our article about how to find the router’s ip address on Android.
  • Find the Wireless security page or something similar.
  • Select WPA2-PSK as your security mode.
  • Select AES as the Encryption type.
  • Click Save settings or Save.wpa2 psk aes
  • Forget wifi network on Android: forget network android 5
  • Reconnect to it:
    connect to wireless network android 5 connect to wifi enter password android 5

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

Solution 5. Turn off the MAC filter on your router

The router may be rejecting your Android device by MAC address. If the MAC filter is on and your device’s MAC address is not in the white list (or is present in the black list) you will have stuck “obtaining IP address” on Android. 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 6. 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 georgaphically in the middle of your house or apartments. Also take into account that walls and floors can weaken the wireless signal more than you can think. In 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 7. Change the wireless channel

Possible reason: wireless interference. In very rare cases you will have “IP obtaining” if some neighbour network causes interference to your router’s WiFi. Use WiFi Analyzer app to select the best wireless channel for your router.

Solution 8. 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 9. Turn off Network notification

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

network notification android 5

Solution 10. 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 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 → Enter WiFi → Turn on WiFi.
  • 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 192.168.0.150 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 containg the IP address of your router.

Solution 11. Reset your Android device to default settings

In some cases the Obtaining IP address issue 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

 

23 comments

  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. Thanks – a simple reboot of the router (the first part of Solution 2) did the trick for me.

  6. 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

    1. 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.

  7. 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 (10.10.41.1) 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 (10.10.41.30) 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 (10.10.41.1), and it worked, probably the old mobile mac-address and IP-Address association got released.

  8. 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

Leave a Reply

Your email address will not be published.