You may have come across a constant and annoying “Failed to obtain IP address or Obtaining IP Address” message when trying to connect to a network. And you may have also tried to fix it by downloading certain apps that claim to “fix” this error. I don’t recommend you to download such app as it could sometime cause more problems than it can solve. You can fix this error yourself in just a few steps.
Before diving into the solution, let’s see what caused the Android device fail to connect to the Wi-Fi network. Whenever you turn on your Wi-Fi, you device tries to the nearest connection. It scans and finds a network and tries to obtain IP address from it but it disconnects and start to scan for network again. This is what this error is all about. This is due to the Wi-Fi router that couldn’t assign an IP address for your device.
Stuck at “Obtaining IP address” while connecting to WiFi network? Here’s what you can do to fix this error for android version specific.
For Android version 2.x to 4.0
- Go to Settings and select Wireless and Networks. Turn on Wi-Fi and enter Wi-Fi settings.
- Press Menu and select Advance.
- Check Use Static IP and assign the values according to the screenshot.
- You can use IP address of your choice.
For Android version 4.1 and higher
- Go to Settings and tap on Wi-Fi.
- Turn on the Wi-Fi and connect to a network.
- Long press on the connected network and select Modify Network.
- Check Show Advance Options.
- On IP Settings drop down menu, select Static.
- Assign IP of your choice but leave other variable untouched.
This should solve the obtaining IP address error or Failed to obtain IP address. Make sure you select a unique IP address so that it won’t conflict with other connected devices.
Note: For those who are having problem connecting to the internet after selecting Static, follow this. It is suggested by our reader Aiyzik on comment below. Tell us if this works for you.
Aiyzik says “For those who can’t use the internet but gets connected to the wifi here is what you should do.
after changing to IP address static wait till it gets connected then go back to wifi settings while it is still connected and change back to DHCP it would remain connected and you can access the internet.
Remember do not disconnect before changing back to DHCP”
Usually, the main cause of this issue may be a typo while entering the password. Yes, that’s right. You might have mixed up the upper and lower cases. However, some of the common causes that creates this issues are:
- IP Configuration Failure: Your router may be failing to assign a proper IP address. Usually, this issue can be solved by simply restarting the router.
- You might be in a poor network coverage area: Shift your device to the area where the network signal is good
Some more common causes that creates the issue failing to obtain IP address are enlisted as:
#1. Reconnect to Wi-Fi network
Usually, the problem goes away when you reconnect to the network. This is because when you reconnect to a network, the router kills the previous attempt to gain the IP address and simply starts a new process. Also, one of the common mistakes we tend to do is turn the Wi-Fi off and on. Sometimes, this may solve the issue but it would be beneficial if you:
- Go to Settings >> WiFi/WLAN
- Select your WiFi SSID
- Go to it’s Menu >> Forget Network and reconnect to the WIFI
#2. Modify some Settings
Don’t panic if the above network didn’t work for you. Here’s another fix, that worked with me. Since, your mobile device has dynamic IP address, one way to solve the issue is to assign static IP address to your device. For this:
- Go to Settings >> WiFi/WLAN >> Turn WiFi on
- Long press your WiFi name or go to your WiFi’s option menu
- Scroll to find IP Settings (For some devices, it may be hidden under Modify Settings)
- Switch from DHCP to Static
- Assign IP address. Note that you need to assign a unique IP address. Also, leave others unchanged
Now, save the changes. Also, you might want to close all the running apps and restart your WiFi connection. Simply, turn your WiFi off and on again.
As per a rare glitch found in some HTC devices, you might want to try renaming your device.
- Go to Wi-Fi Direct settings
- Rename your device. Change your device name to a simpler word in English, for example “HTC M8”.
So, were you able to solve the issue? Which method came in handy for you? Also, if you might have other suggestions, please mention it in the comment section below.