Best daily deals
Best daily deals

Links on Android Authority may earn us a commission. Learn more.

How to fix "Failed to obtain IP address" error on Android

You're not alone, and there are plenty of fixes to try!
By
May 22, 2022

Those who have encountered the “Failed to obtain IP address” error on Android are not alone. It seems to bug users of all Android phones and software versions. We’ll tell you why you’re getting the annoying error and how to fix it.

Why am I getting the “Failed to obtain IP address” error?

The “Failed to obtain IP address” error usually shows up when accessing a Wi-Fi network, whether it is new or one you have saved on your device. This error message means the router has problems issuing an IP address to your device. As long as the issue persists, the user can’t access the internet using that Wi-Fi network.

Some users experience this error message differently. It can show up as “Obtaining IP address,” but the problem is the same, regardless.

Also read: Common Android problems and how to fix them

Editor’s note: All instructions in this guide were compiled using a Pixel 4a with 5G running Android 12. Remember, steps may differ depending on your hardware and software.

Forget network

Google Pixel 5 using phone from the back 2
David Imel / Android Authority

The first method you should try is to forget the network and sign into it again. The steps to take are simple, and sometimes this is all it takes to get rid of the “Failed to obtain IP address” discrepancy.

How to forget a network on Android:

  1. Open the Settings app.
  2. Select Network & internet.
  3. Select Internet.
  4. Long-press on the network you can’t connect to.
  5. Select Forget.
  6. Log into the Wi-Fi network again.

Restart the phone

This is always one of the first solutions in troubleshooting guides, and for good reason. While it may seem silly, restarting your phone seems to fix most problems magically. Give it a try!

How to turn off Android devices:

  1. Press and hold the Power button.
  2. Tap on Restart.

Restart the router

Ethernet vs Wi Fi stock photo 2 - Failed to obtain ip address error
Edgar Cervantes / Android Authority

The router could be the culprit if the phone is not the problem. Try restarting it and see if that fixes the issue. Most routers have a reset button. If yours doesn’t, you can disconnect it and plug it back in.

More: The best Wi-Fi routers

Rename your Android device

We are not sure why this would help, but many users claim it can solve the issue. The process is simple too, so it’s worth a shot.

How to rename your Android device:

  1. Open the Settings app.
  2. Select About phone.
  3. Tap on Device name.
  4. Change the name to anything you wish and select OK.
  5. Try and reconnect to the network.

Turn Airplane mode on and off

Huawei Mate X2 review notifications open on main internal screen - Failed to obtain ip address error
Kris Carlon / Android Authority

Doing this forces the router to reconfigure your connection. It may also fix any other bugs your phone may have. Try turning Airplane mode on for a little bit, then turn it back off.

How to turn on Airplane mode:

  1. Open the Settings app.
  2. Go into Network & internet.
  3. Toggle on the Airplane mode option.

You can almost always find the option in your notification area tiles or quick settings.

Use WPA2-PSK encryption

Some devices don’t work very well with certain types of encryption, including AES and TKIP. Go to your router settings and switch over to WPA2-PSK. Every router works differently, so we can’t give you step-by-step instructions, but you can refer to your user guide for specific instructions.

Related: What to do if your phone won’t connect to Wi-Fi

Is the MAC filter on?

Wi-Fi administrators often use MAC addresses to whitelist or blacklist devices on their network. If your device is not on the whitelist, or is on the blacklist, it won’t connect to the internet. The solution would be to either turn your router’s MAC filter off, remove your device from the blacklist, or add it to the whitelist. Again, instructions are different for every router, so look for steps in your user guide.

Assign a static IP address

Most devices don’t need a static IP address, but certain services require it. Especially those that need to remind your IP for security reasons. When your IP address changes, you may be running into some issues, so try a static IP address to see if that fixes your network issues.

How to assign a static IP address to your Android phone:

  1. Open the Settings app.
  2. Select Network & internet.
  3. Select Internet.
  4. Tap on the gear icon next to the network you can’t connect to.
  5. Hit the pencil icon near the top-right corner.
  6. Select Advanced options.
  7. Look for IP settings and tap on the drop-down menu.
  8. Select Static.
  9. In the IP address, change the last number to any number between one to 225.
  10. Try to connect again.

Clear Google Play Services cache

Google Play Services update 2
Joe Hindy / Android Authority

Clearing the cache seems to be involved in every troubleshooting guide, and it’s because it involves so many things around your phone. Give it a try and see if it helps.

How to clear the cache on an Android app:

  1. Open the Settings app.
  2. Select Apps.
  3. Go into See all apps.
  4. Find and tap on Google Play Services.
  5. Select Storage & cache.
  6. Select Clear cache.
  7. Try to connect to the same Wi-Fi again.

Next: Is your mobile data failing? Here’s how to fix it

Factory data reset

If all else fails, and the problem persists for an extended time, you might want to consider doing a factory data reset on your Android phone. This will delete everything in your phone and bring it back to its factory state (software-wise). Make sure to back up any important files before proceeding.

How to perform a factory data reset on Android:

  1. Open the Settings app.
  2. Select System.
  3. Tap on Reset options.
  4. Select Erase all data (factory reset).
  5. Tap on Erase all data.
  6. Enter your PIN.
  7. Confirm by tapping on Erase all data.
  8. Let the phone do its thing until it restarts.
  9. Set up your phone and try to connect to the network.

Are you still having issues with the dreaded “Failed to obtain IP address” error message? Maybe it’s time to dig deeper into your network and see if something more significant is causing the problem. We have a guide on common Wi-Fi problems and how to fix them. Please give it a read! You can also seek professional help from JustAnswer, an Android Authority partner.