[NEED TESTERS] A Possible fix for AOSP Wifi - AT&T, Rogers HTC One X, Telstra One XL

Alright I think the problem is AOSP has trouble setting an IP address for itself. That's why it takes a while to connect but when connected its solid (at least for me).
All this is done by getting on a PC connected to your WiFi and typing in your gateway IP address in the address bar (most likely 192.168.1.254).
Head to "Home Network" then "Advanced Settings". In "Device List" on the bottom should be a button saying "Edit Address Allocation" Click it.
Find your device (mine said android-a14242f6c57da641 but if you have more than one device then just find the IP of your phone and link it with the one in the list.) In the drop down menu "Address Assignment" set your phone as "Private Fixed: xxx.xxx.x.xxx" (You can pick a random one just make sure another device doesn't have the same IP).
Remember that IP address and click save at the bottom.
Now head to your phone and open up WiFi. Hold down on your Wifi's address and click "Modify network".
Set "IP settings" from "DHCP" to "Static". Scroll down and in "IP address" type in the IP you set for it on the PC.
Also make sure "Gateway" is set to your default gateway address (probably 192.168.1.254)
Click Save and turn WiFi on and off to test how fast you connect.
Whatever happens report back here. This is only a theory.
-Sugardaddy Duncan

Will test now.
EDIT: I have two routers (one for each side of the house; there is no good central location). I set one to static and the other to DHCP, and the one set with a static IP definitely connects faster than the other.

Desertman123 said:
Will test now.
EDIT: I have two routers (one for each side of the house; there is no good central location). I set one to static and the other to DHCP, and the one set with a static IP definitely connects faster than the other.
Click to expand...
Click to collapse
Thanks for the report
-Sugardaddy Duncan

I have been having this wifi problem using cm 10.1 on my AT&T HTC One X. I just tried what you described, and so far simply changing the IP on my phone to static fixes the problem.:victory: Then again, this is just right now. I will report back in time an let you know if it continues to work (I hope it does). Thanks for the fix, I really needed it and I couldn't find anything else.

pacman314 said:
I have been having this wifi problem using cm 10.1 on my AT&T HTC One X. I just tried what you described, and so far simply changing the IP on my phone to static fixes the problem.:victory: Then again, this is just right now. I will report back in time an let you know if it continues to work (I hope it does). Thanks for the fix, I really needed it and I couldn't find anything else.
Click to expand...
Click to collapse
I've noticed switching wifi off then on when I get home really helps.
-Sugardaddy Duncan

Arrow44 said:
I've noticed switching wifi off then on when I get home really helps.
-Sugardaddy Duncan
Click to expand...
Click to collapse
Thanks sugardaddy

Mister J said:
Thanks sugardaddy
Click to expand...
Click to collapse
You talk when Sugardaddy says for you to talk.
-Sugardaddy Duncan

Arrow44 said:
You talk when Sugardaddy says for you to talk.
-Sugardaddy Duncan
Click to expand...
Click to collapse
Lol
Sent from my One X using xda app-developers app

Arrow44 said:
Alright I think the problem is AOSP has trouble setting an IP address for itself. That's why it takes a while to connect but when connected its solid (at least for me).
All this is done by getting on a PC connected to your WiFi and typing in your gateway IP address in the address bar (most likely 192.168.1.254).
Head to "Home Network" then "Advanced Settings". In "Device List" on the bottom should be a button saying "Edit Address Allocation" Click it.
Find your device (mine said android-a14242f6c57da641 but if you have more than one device then just find the IP of your phone and link it with the one in the list.) In the drop down menu "Address Assignment" set your phone as "Private Fixed: xxx.xxx.x.xxx" (You can pick a random one just make sure another device doesn't have the same IP).
Remember that IP address and click save at the bottom.
Now head to your phone and open up WiFi. Hold down on your Wifi's address and click "Modify network".
Set "IP settings" from "DHCP" to "Static". Scroll down and in "IP address" type in the IP you set for it on the PC.
Also make sure "Gateway" is set to your default gateway address (probably 192.168.1.254)
Click Save and turn WiFi on and off to test how fast you connect.
Whatever happens report back here. This is only a theory.
-Sugardaddy Duncan
Click to expand...
Click to collapse
I did this with my 2wire and it was a success. Connected right away. I'm running Viper XL 4.0.0 JB 4.2.2 with Beastmode Reloaded 3.5 which is AOSP based. I will monitor the performance and let you know.
http://forum.xda-developers.com/showthread.php?p=45389858#post45389858

RC196 said:
I did this with my 2wire and it was a success. Connected right away. I'm running Viper XL 4.0.0 JB 4.2.2 with Beastmode Reloaded 3.5 which is AOSP based. I will monitor the performance and let you know.
http://forum.xda-developers.com/showthread.php?p=45389858#post45389858
Click to expand...
Click to collapse
I did all the steps and work but takes a lot to connect.

Related

Can't connect to internet even though connected to router

hi i am in need of a lot of help here. on sunday i decided to search something on the internet and i kept getting web page not available on every page i went on... the thing is according to my phone it was connected to my router and was displaying a wifi signal bars and everything.. all my other devices are working as usual but on my phone it will connect the internet will work for a minute or two then i wont be able to connect again till i reboot my phone.
any info would be appreciated.
Zachary
sounds more like a router problem to me than a phone problem,try connecting it to a diff network.does the same happen?
What router are you using? Sounds like a router issue to me.
First thing to try is always a router power cycle. They can occasionally go nuts. Unplug for 30 seconds.
Second thing to try, log onto your router, and see what wifi protocols are set to. If it's set to B/G/N combined, try setting to G/N. (assuming you are not using B anymore!) If not using B or N, set it to G.
Third thing to try, disable Wireless Multimedia Extensions (WMM). Not sure where it'll be in you're router.
Sent from my HTC Desire S using xda premium
Have another thing to try...
You might not picking up gateway information from the router. The solution could be to configure a static IP address instead of using DHCP.
To do this do the following:
Go into Settings, then ‘Wireless & networks’ then ‘Wi-Fi settings’ then press 'menu' and select 'advanced', scroll down and select the 'static ip' box.
In the ‘IP address’ box enter the same IP address which is shown higher up the same form.
In the ‘Gateway’ box you will need to put the IP address of your router. To find this out I opened a command prompt window on a PC on the same network and typed ipconfig. This will give you a Default gateway address which is what you need.
In the the ‘Network prefix length’ box put 24 (this assumes the subnet mask from ipconfig is 255.255.255.0)
Finally in the DNS 1 box put the same IP you put in the Gateway box.
Now click Save, disconnect and reconnect from the network and when you are reconnected you should have internet access.
Sent from my HTC Desire S using xda premium
Erm, guys - you jumped in at the deep end, surely a restart is the first thing that should be tried.
A) Restart router
B) If not fixed, restart phone
C) Do what the above say
i have already done a power cycle on my phone and router..
i tried to set up astatic ip but now whenever i try to connect it says disconnected after trying to obtain ip address
help please....excuse my ignorance if i missed anyhting
EDIT: managed to get DNS to work will test and see and update you
anonymous_1997 said:
i have already done a power cycle on my phone and router..
i tried to set up astatic ip but now whenever i try to connect it says disconnected after trying to obtain ip address
help please....excuse my ignorance if i missed anyhting
EDIT: managed to get DNS to work will test and see and update you
Click to expand...
Click to collapse
Cool. Keep us posted.
Sent from my HTC Desire S using xda premium
wnp_79 said:
Cool. Keep us posted.
Sent from my HTC Desire S using xda premium
Click to expand...
Click to collapse
Yep confirming that I am now able to use WiFi ... Thanx wnp_79 for my solution and of course everyone who chipped in
Sent from my HTC Desire S using XDA App

[Q] HTC Desire HD WiFi not connecting at house but does everywhere else

Hello. My phone connects when I go to other people's houses or at school, but not at my house. My router is set up with a WiFi access list so that you need to enter the MAC address before being allowed to even see the network. I have triple checked that the WiFi MAC address from my phone is entered correctly as I did everything else. Does anyone have some advice?
I appreciate everyone's time!
Make sure the channel is set to one which your device supports.
I downloaded an app called wifi analyzer; will that help me find which channel to set it to? How do I know which are supported.
Chris097 said:
I downloaded an app called wifi analyzer; will that help me find which channel to set it to? How do I know which are supported.
Click to expand...
Click to collapse
Go to the wifi settings (on your device) and see what channel it is set to (usually under regulatory domain).
maybe you should set the maximum number of channels, otherwise some routers might be excluded.
controls which channel is your router and then try to configure the connection manually.
Sorry for the late reply; I have been pretty busy.
I tried a variety of different channels but none of them seem to work. I had seen that the phone does not work on Channel 13 but that did not seem to be the problem. I have also tried changing the security password type on my router but that did not work either. Are there any other suggestions? Thank you again.
your router is wireless network is to advanced for phone allow you network to be seen and just have to enter a password to work it will work been there
ps when it works hit thanks please
lg g2x
rooted
cyanogenmod-eaglesbloodv2.5
trinity uv/ov 1.5 kernal
retired
mytouch 3g slide
rooted
cyanogenmod 7.1
s-off
custom kernal
android_29: your response looks like gibberish.
Chris: Does your router have a WPS button on it? if so, i'd use that. makes things easy.
ridethisbike said:
Chris: Does your router have a WPS button on it? if so, i'd use that. makes things easy.
Click to expand...
Click to collapse
I tried using this as well and my phone still doesn't pick up the network lol. I'm stuck!
Chris097 said:
I tried using this as well and my phone still doesn't pick up the network lol. I'm stuck!
Click to expand...
Click to collapse
I'm assuming you did... but just in case, you did hit the "Wifi Protected Setup" on the phone right?
I swear i'm not trying to make you sound like an idiot, but we all have our "oh damn i forgot about that" moments, know what i mean? lol
Lol no problem. But yes I did do that
i'm also assuming then that you took ALL security off your network, leaving it open with no password, and that didnt work either.
past that, I don't know what to tell you. some routers are better than others.... maybe yours just hates you?

HTC One X Stuck on "Obtaining IP address"

My phone keeps cycling obtaining IP address without ever getting one on my home network. It has previously worked fine on my home network for a little over a month now and the problem suddenly started yesterday. No other devices on my WiFi network has the problem. Phone and router were rebooted, problem continues.
Any ideas?
bTrizzy said:
My phone keeps cycling obtaining IP address without ever getting one on my home network. It has previously worked fine on my home network for a little over a month now and the problem suddenly started yesterday. No other devices on my WiFi network has the problem. Phone and router were rebooted, problem continues.
Any ideas?
Click to expand...
Click to collapse
try forgetting the network on the phone and rescanning
gunnyman said:
try forgetting the network on the phone and rescanning
Click to expand...
Click to collapse
That didn't work either. I just put in a static IP and now I can fully connect. Hopefully a better solution comes out later.
bTrizzy said:
That didn't work either. I just put in a static IP and now I can fully connect. Hopefully a better solution comes out later.
Click to expand...
Click to collapse
weird. glad it's working at least.
bTrizzy said:
That didn't work either. I just put in a static IP and now I can fully connect. Hopefully a better solution comes out later.
Click to expand...
Click to collapse
How do you put in a static ip?
Sent from my HTC One X using XDA
Is your home router set up for for dynamic ip?
Sent from my HTC One X using xda premium
That used to happen to me all the time on my Kindle Fire, particularly after flashing a new rom. The fix was setting the date and time to automatic, but that may not apply here.
18th.abn said:
Is your home router set up for for dynamic ip?
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
I don't know. It's time warner. Just setup how they did it.
Sent from my HTC One X using XDA
I've found this happens too intermittently. It's a real pain. happened on a number of different custom ROMs.
other times it will say the network isn't in range, even though I know it is.
SkizzMcNizz said:
How do you put in a static ip?
Sent from my HTC One X using XDA
Click to expand...
Click to collapse
Setting
Wifi
Long press the network your on and select modify
Scroll down and check advanced options
Select static ip
Enter data
Grnfinger said:
Setting
Wifi
Long press the network your on and select modify
Scroll down and check advanced options
Select static ip
Enter data
Click to expand...
Click to collapse
What do I enter?
Sent from my HTC One X using XDA
I had a problem like this also but I could not even get on the internet even on mobile network so I had to take it back to at&t and I just switched my phone
Sent from my HTC One X using Tapatalk
SkizzMcNizz said:
What do I enter?
Sent from my HTC One X using XDA
Click to expand...
Click to collapse
Depends on your network
DNS you get from your ISP, check router for it.
Prefix should be 24
IP whatever you set in the router ie 192.168.1.125
Gateway is whatever your router is ie 192.168.1.1
Google setting up static ip network it will help explain it and over at ddwrt they have pictures to help... very easy stuff. PM if you want/need help
Grnfinger said:
Depends on your network
DNS you get from your ISP, check router for it.
Prefix should be 24
IP whatever you set in the router ie 192.168.1.125
Gateway is whatever your router is ie 192.168.1.1
Google setting up static ip network it will help explain it and over at ddwrt they have pictures to help... very easy stuff. PM if you want/need help
Click to expand...
Click to collapse
I'll send you a pm tomorrow. I really wanna get this WiFi stiff figured out. WiFi on this phone really sucks.
Sent from my HTC One X using XDA
You can try to turn off auto-DLNA..
It may causing device to configured itself under private ip range..
Same problem. Using stock rom. Tried static ip but not works.
This problem is a software problem? Or hardware?
This doesn't apply to my device now but on my previous HTC this would happen quite frequently I think it's more of a software bug then firmware it would seem that the drivers for the antenna are hit or miss
Sent from my SGH-I777 using Tapatalk 2
I had this issue and my phone wouldn't connect to any router "obtaining ip address" forever. Mind you my phone was 5days old, so took it right back to Rogers for a new exchange. My HOX is now perfect and connects to all wifi without issues.
Did you possibly enter the wrong spa password, then re enter it correctly and now you are having this problem?
If so, try this ... works on most Androids.
Click where it says obtaining IP address, the press "Forget"
Turn off Wifi.
Go Into Hone Settings > Power and disable Fast Boot.
Now power off the phone ...not restart.
Leave the phone off six minutes and not a moment less.
Then power up and try again.
Be careful to enter your wpa password correctly on the first try.
If still same problem try rebooting router.
Also consider installing SmartSync Disabler which can be found here on xda and at the google play store.
That app should solve the remaking wifi annoyance affecting these one x phones
the employer blocked the WIFI from employees (obtaining the ip address issue)
we cant access the WIFI in the hotel at where we work and although there are a password you put at the hotel's WIFI website but they did something lately to all of us and it is when any of the staff open the WIFI on his mobile it just keep showing obtaining IP address and no result so if you guys could help me in this and do i have to get a new phone or to try hiding my IP i tried a lot of apps but no way plz help

WiFi?

Hi,
Why am I getting this notification for the 1st time in approx 2 months that have got a OPO, despite that am connected to WiFi?
Hoping to hear from you experts.
Thanks.
This sort of thing normally pops up when the WiFi network wants you to go to some sort of page, this is usually for a login to free WiFi hotspots, I assume this Dlink is your WiFi? Perhaps it wants you to open this page to change a configuration or login. This doesn't seem to be Android related at all but more to do with your router, could you try tapping on the notification and screenshot the page it opens, if any.
He's right. This looks like a router setting that you might have turned on like guest mode.
oscarandjo said:
This sort of thing normally pops up when the WiFi network wants you to go to some sort of page, this is usually for a login to free WiFi hotspots, I assume this Dlink is your WiFi? Perhaps it wants you to open this page to change a configuration or login. This doesn't seem to be Android related at all but more to do with your router, could you try tapping on the notification and screenshot the page it opens, if any.
Click to expand...
Click to collapse
Thanks for replying, appreciate your expert views.
DLink is my WiFi and not a hotspot WiFi, never occurred earlier.
When I tap on it, G chrome takes me to 173.194.35.96/generate _204
Google results of this IP......173.194.35.96 which is Spy-IP.com
and Google has different results for this 173.194.35.96/generate _204
It never happened earlier in the past 2 months.
Been using the same OPO and same WiFi.
Any solutions to resolve it?
Thanks again and Best regards!
kokocabana said:
He's right. This looks like a router setting that you might have turned on like guest mode.
Click to expand...
Click to collapse
Like WPS or WiFi ON/OFF on the router?
Micheal1122 said:
Thanks for replying, appreciate your expert views.
DLink is my WiFi and not a hotspot WiFi, never occurred earlier.
When I tap on it, G chrome takes me to 173.194.35.96/generate _204
Google results of this IP......173.194.35.96 which is Spy-IP.com
and Google has different results for this 173.194.35.96/generate _204
It never happened earlier in the past 2 months.
Been using the same OPO and same WiFi.
Any solutions to resolve it?
Thanks again and Best regards!
Click to expand...
Click to collapse
This is a router setting then, that page is some sort of login. Perhaps guest mode has been enabled on your router? Try this:
Settings>Wi-Fi>Modify Network>Show advanced options> Change DHCP to Static. Here, find the box that says Gateway and note the IP here. Now change Static back to DHCP and close this menu.
Go into the browser on your OPO and put in this Gateway IP, this will take you to the router config. The login for this is usually on the bottom of the router, otherwise the default can be found by searching the router model number, try finding a guest mode setting and turning it off - I really don't know... You can also change your WiFi name and password here if you like
I can't really help you any more than that.
oscarandjo said:
This is a router setting then, that page is some sort of login. Perhaps guest mode has been enabled on your router? Try this:
Settings>Wi-Fi>Modify Network>Show advanced options> Change DHCP to Static. Here, find the box that says Gateway and note the IP here. Now change Static back to DHCP and close this menu.
Go into the browser on your OPO and put in this Gateway IP, this will take you to the router config. The login for this is usually on the bottom of the router, otherwise the default can be found by searching the router model number, try finding a guest mode setting and turning it off - I really don't know... You can also change your WiFi name and password here if you like
I can't really help you any more than that.
Click to expand...
Click to collapse
Thanks for all your expert assistance, now you have given me options shall resolve it.
and keep you updated.
Best regards!
Btw factory reset reflash could help too?
Another strange thing all internet/WiFi related apps work fine including G Chrome and Mail in it but no GMail..........
Micheal1122 said:
Thanks for all your expert assistance, now you have given me options shall resolve it.
and keep you updated.
Best regards!
Btw factory reset reflash could help too?
Click to expand...
Click to collapse
Glad to hear, I am strongly advising against the factory restore. This is a feature of Android, although it is strange for it to be happening in this circumstance there is nothing it will achieve.
oscarandjo said:
Glad to hear, I am strongly advising against the factory restore. This is a feature of Android, although it is strange for it to be happening in this circumstance there is nothing it will achieve.
Click to expand...
Click to collapse
1. Changed router's password.
2. Guests mode is Off.
3. All apps working with WiFi except GMail and GPS.
4. Still see the notification.
5. Should WPS be Enabled, it is disabled at the moment?
6. You don't recommend a factory reset what about a re flash of 30 OR?
Thanks.
Your phone is working fine, it seems you have triggered some sort of bug in Android's WIFI login detection.
The system works by accessing DNS and check if the resulting IP is owned by google.com or some network-internal redirection/replacement by a login page.
Now, the IP 173.194.35.96 is owned by Google, so the DNS lookup obviously worked perfectly but for some reason the phone gets an unexpected answer from that server. Which makes me guess to one of the 2 following options:
a) one of the computers in your network is infected and Google keeps showing the "Prove you're human" captcha window on requests.
b) your provider is replacing failed DNS lookups with it's own "helper" page which for some reason is making Android trip. If possible, change the DNS servers in your router to either OpenDNS or Google DNS.
Micheal1122 said:
5. Should WPS be Enabled, it is disabled at the moment?
Click to expand...
Click to collapse
That's entirely your choice. However I would only recommend enabling it if it's the "Push to WPS" method and not constantly on - WPS is broken and depending on your router it takes between 1 to 10'000 attempts (1 second to ~ 2 hours) to break into your WIFI. Not good!
d4fseeker said:
Your phone is working fine, it seems you have triggered some sort of bug in Android's WIFI login detection.
The system works by accessing DNS and check if the resulting IP is owned by google.com or some network-internal redirection/replacement by a login page.
Now, the IP 173.194.35.96 is owned by Google, so the DNS lookup obviously worked perfectly but for some reason the phone gets an unexpected answer from that server. Which makes me guess to one of the 2 following options:
a) one of the computers in your network is infected and Google keeps showing the "Prove you're human" captcha window on requests.
b) your provider is replacing failed DNS lookups with it's own "helper" page which for some reason is making Android trip. If possible, change the DNS servers in your router to either OpenDNS or Google DNS.
That's entirely your choice. However I would only recommend enabling it if it's the "Push to WPS" method and not constantly on - WPS is broken and depending on your router it takes between 1 to 10'000 attempts (1 second to ~ 2 hours) to break into your WIFI. Not good!
Click to expand...
Click to collapse
Thanks issue resolved.
Thanks issues resolved.
Thanks issue resolved.
oscarandjo said:
Go into the browser on your OPO and put in this Gateway IP, this will take you to the router config.
Click to expand...
Click to collapse
This resolved the issue.
Thanks again.

How to change DNS IP

I replied in another thread, but I think I'll give it it's post because many people are asking.
Took some crummy pics:
Home -> WIFI connection:
image (1).jpg
Device Network -> Wi-Fi Connected
image (2).jpg
Network Wi-Fi -> {select your active connection} In my case it is Leafs RULE!!_5G
image (3).jpg
Select Advanced options
image (4).jpg
Then select IP settings. In your case it'll say IP settings DNS. In my pic it says IP settings Static.
image (5).jpg
IP settings -> STATIC
image (6).jpg
Go through the IP settings and enter in a static IP, gateway, and DNS settings. Press save and then hope it saves.
You know it saved properly when "IP settings DNS" changes to "IP settings Static". In my case, it didn't pick up the new settings till the next day. Maybe after you save your settings, power cycle NP; go back into settings and see if it changed over to static. As with other things with the NP, try a couple of times.
I didn't change or add anything to my router. My router is still using my ISP DNS IPs.
hth
Good Find - Info will be helpful to many International Users....
It keeps saying my settings are incorrect
OathYvne said:
It keeps saying my settings are incorrect
Click to expand...
Click to collapse
Go through again slowly and double check. I had the same issue at first. I saw settings were saved in the wrong sections. I think there are bugs in this section when saving.
I kept having problem saving the dns 2. I key in a different ip address, but it kept reverting to the ip address of dns 1.
I've noticed this also, but this has not caused any issues.
Do you know if there's any Apps for easy switching DNS on the NP without Root?
I would love being able to switch between European and American Netflix, but going through all those steps to change DNS every time is a bit of a hassle :-/
Mardin said:
Do you know if there's any Apps for easy switching DNS on the NP without Root?
I would love being able to switch between European and American Netflix, but going through all those steps to change DNS every time is a bit of a hassle :-/
Click to expand...
Click to collapse
The only step you have to change is the DNS IP. Yes, an app would be nice.
habskilla said:
The only step you have to change is the DNS IP. Yes, an app would be nice.
Click to expand...
Click to collapse
Don't you have to type in all the other stuff too every time? (IP, Gateway, Router IP etc.)
Last time I tried it didn't save any of it.
Think there is a bug, I also did not manage to save dns2. Some said have to wait for 1 day before nexus player reflect the new dns. IMHO, Lolipop is not ready for nexus player.
Very nice. Another option is you can use static IP overrides in your router, if it has them. I'm able to assign a static IP based on Mac address via my router that overrides the DHCP server. This is handy for devices where static IP setup isn't easily available (or not available at all). Not all routers can do this though.
Mardin said:
Don't you have to type in all the other stuff too every time? (IP, Gateway, Router IP etc.)
Last time I tried it didn't save any of it.
Click to expand...
Click to collapse
No. You have to just put in the new DNS IPs for 1 and 2
Mardin said:
Do you know if there's any Apps for easy switching DNS on the NP without Root?
I would love being able to switch between European and American Netflix, but going through all those steps to change DNS every time is a bit of a hassle :-/
Click to expand...
Click to collapse
I made 2 Wifi networks. On one I have entered the new DNS. All I have to do is to change Wifi network to switch between Sweden and US.
Skickat från min D6603 via Tapatalk
it worked!
habskilla said:
No. You have to just put in the new DNS IPs for 1 and 2
Click to expand...
Click to collapse
Just put DNS1/2 and leave anything blank... at the end it worked for me !

Categories

Resources