Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
miffy4
Old
(Last edited by miffy4; 14th January 2012 at 05:41 AM.)
#1  
Junior Member - OP
Thanks Meter 15
Posts: 25
Join Date: Sep 2009
Location: TP.HCM
Red face [Q] Droid X2 stuck on Obtaining Ip Address WIFI issue [SOLVED]

This has been plaguing me for a few days now and I just want to share the solution I found for you guys. Have you ever had this issue? Your selected wireless network has been working great for days and suddenly one day it refuses to connect anymore. I would hit connect and the phone would be stuck in a "Obtaining IP address from WIFINETWORK" "Disconnected" "Scanning" cycle and so forth. You can wait forever and the phone will never connect to wifi.

The first time this happened to me I did a hard reset. Worked like a charm, I was able to use the network again for a few days until it began happening again. I decided a reset was not the solution so I looked for an answer. I happened upon sites like this:

http://anxiousnut.wordpress.com/2011...ue-workaround/

Where certain solutions were posted but none seemed to work for me. I decided that it definitely wasn't my router (although some said resetting your wireless router may also work sometimes).

I finally stumbled upon the answer. The solution is to use a static ip by going into to Settings>Wireless & Networks>Wi-Fi settings>Menu Click to Advanced and then check Use static IP. You must figure out these values: IP Address, Gateway, Netmask, DNS 1, DNS 2.... Luckily, it is pretty easy.

IP ADDRESS
To find this, go back and select your wifi network. Hit "Modify" and see the IP address listed. Copy that down, this is your IP Address.

GATEWAY
This is your router's IP address. You will need a computer that is connected to the network already. For Windows, run a command prompt and type ipconfig to show you the default gateway address. For Mac, go to the network preference pane in system preferences. Click advanced and go to TCP/IP tab.

NETMASK
You will find this in the previous step. Often it is 255.255.255.0.

DNS 1
Put in the same IP you found for the gateway box.

DNS 2
Same as above.

In the end it will look something like this:

IP Address: 192.168.1.107
Gateway: 192.168.1.1
Netmask: 255.255.255.0
DNS 1: 192.168.1.1
DNS 2: 192.168.1.1

Connect again and it works. No need to factory reset. Enjoy!

Update: After a few days, something in the phone's wifi settings seem to "correct" itself and your wifi will not work with this method anymore. Simply go back and disable static IP and your phone will be back to its old self again. If the symptoms appear again, you can follow these steps again.
The Following 3 Users Say Thank You to miffy4 For This Useful Post: [ Click to Expand ]
 
tshelby73
Old
#2  
Senior Member
Thanks Meter 22
Posts: 279
Join Date: Dec 2011
I wonder if this will help with eclipse 2.0.3 disconnecting issues

Sent from X2 Eclipsed using xda app
 
maggard5
Old
#3  
maggard5's Avatar
Senior Member
Thanks Meter 72
Posts: 237
Join Date: Dec 2011
I was having this problem with CM7 and this fixed it. Thanks!
 
Wiistarman
Old
#4  
Junior Member
Thanks Meter 0
Posts: 9
Join Date: Apr 2012
thanks solved my problem i m so very grateful
 
DigitalMD
Old
(Last edited by DigitalMD; 29th May 2012 at 01:43 PM.)
#5  
DigitalMD's Avatar
Senior Member
Thanks Meter 422
Posts: 2,301
Join Date: Mar 2010
Location: Washington DC
Careful, this "fix" could be very temporary... If you set a static IP and do not configure your router to use static IPs you will at some point run into conflicting IPs if you have other devices on the network. The router is dynamically allocating IP addresses if you use a standard DHCP setup and can give your chosen IP for your phone to any device on the network, creating a situation when you cannot connect or you can connect but it does not work. If you want to use static ips on your phone with the router, you have to configure the router to understand this by disabling DHCP and setting up static IPs for all devices or by allocating fixed IP for certain MAC addresses. SO either setup both your phone and router to use a static IP or change the DHCP lease time to something other than "infinity" .
Days of free media are almost over as the biggies look for more revenue streaming from your wallet... ...Don't believe me? Take a look at all the flagship models now being sold WITHOUT microSD card slots.
 
RyanThaDude
Old
#6  
RyanThaDude's Avatar
Senior Member
Thanks Meter 34
Posts: 192
Join Date: Jul 2011
Most routers strart DHCP allocation at .100. Check with your particular routers manual. If you assign the IP less than .100 you should be fine as long as you don't assign another device with the same IP.

Sent from my MB870 using Tapatalk 2
The Following User Says Thank You to RyanThaDude For This Useful Post: [ Click to Expand ]
 
idarwin
Old
#7  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: May 2012
Default A workaround != A fix.

Quote:
Originally Posted by DigitalMD View Post
Careful, this "fix" could be very temporary... If you set a static IP and do not configure your router to use static IPs you will at some point run into conflicting IPs if you have other devices on the network.
I'm with DigitalMD - this is a very kludgy "fix" that will lead to trouble in the future. I am coming to believe there is a consistent interoperability issue between Android and some other systems (OS X and some routers??) that leads to issues - both my GN with 4.0.4 and my JetStream with 3.1 will routinely fail to connect both to my Mac (10.7) and the routers, primarily in a couple of particular offices - maybe it's just a high-noise area (one is an older building). The devices both connect fine to my home wifi (WRT54G) and most internet cafes.
 
sauron82
Old
#8  
sauron82's Avatar
Senior Member
Thanks Meter 31
Posts: 197
Join Date: Jun 2012
Location: Toronto
Default Not a good fix

This isn't really a fix for the problem. I connect to multiple wireless networks, between work and home and friend's houses, and they all have different routers. Setting a static IP is impractical, because I have to turn it on with certain networks and off with other networks, or change the static IP from one router to another.

Why does this happen? It works fine for a while, then one day it just doesn't want to take an IP address from the router. For me, it works fine at home and at my parents, but at work, it doesn't want to connect anymore. It's been connecting fine for months, then yesterday it got stuck with obtaining IP.

Setting a static IP isn't a solution; it's a cop-out. Does anybody know why this happens? Does anybody know how to fix it?
Sent from my Galaxy Ace
Click thanks if I helped you.
 
katylawrence
Old
#9  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Oct 2012
I was experiencing this from past couple of days than I just put static IP works really great for me it was a biggest headache, now past.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more

More Tips to Help Promote Your Android App

With over 700,000 apps in the Google Play store and more than 48 billion app installs, it’s … more