[Xperia S] WiFi loosing default route since ICS upgrade - Sony Xperia P, U, Sola, Go

Sorry to bother you with this, but I could not find anything remotely similar discussed anywhere.
My Sony Xperia S sometimes loses the default route for internet access.
The symptoms are:
- I can access all the local computers on the network just fine
- external web sites do not work
What I see when checking on the command line via "ip route" is
Code:
192.168.0.1 dev wlan0 scope link
Luckily my phone is rooted so I can just "su" and then
Code:
ip route add default via 192.168.0.1 dev wlan0
Afterwards, the internet access is working again for some time.
WiFI settings are set to a static IP address 192.168.0.11 with the default gateway configured to 192.168.0.1.
Why is the device losing the default route?
How can I prevent this?
Is there a file somewhere that needs to be changed for the route to persist?
I did not have this problem with Gingerbread. It started after upgrading to ICS.
Laptops work fine on the same WiFi network and do not lose internet access.
<Princess Leia voice>Please, XDAdevelopers, you are my last hope.</Princess Leia voice>

I'm having the same issue with my S after rooting/updating to ICE WIFI is still connected and LAN works ok, but no internet access turning WIFI on and off is the only way i can get it working
hope the is a fix

Sounds similar to an issue I was having as well. Actually, I was having it prior to the ICS update as well, i.e. with GB.
The only way I found to reliably get internet access on my SXS was to reconfigure my router to use DHCP, which was somewhat annoying. Had to reconfigure all my network nodes as well, of course, which were using static IPs.
Static IP had never been an issue with my old HTC Desire running GB (and earlier versions) or my ASUS Transformer with Honeycomb and ICS. Definitely seems to be SXS-specific.

I do not want to work through the hassle of changing the settings in my more than 20 devices on the network just to get this one working reliably.
Is there no other way than to switch on DHCP?

I tried DHCP and it didn't work for me.
and just because use run DHCP doesn't mean you would have to change all you devices, you can leave then as static.

I've been having the same issue on mine - did it occasionally on Gingerbread but has been noticeably worse on ICS - turning WiFi off then on again cures it 60% of the time, three off/on combos sorts it's 95% of the time
I noticed this week while visiting my parents that it worked first time every time, of course this is a DHCP setup!
I'll be setting my home router to give a fixed IP to my phone tonight - but that doesn't help at work where I need to override the DNS settings (don't care if the IP is dynamic or not - just need to use different DNS servers*!).
* And yup I have permission to do so - Facebook and a few others are crudely blocked using DNS, but authorised people are allowed access (basically so we can delete nasty posts) and this is over-ridden using static IP - gets annoying that Facebook trashes my authorisation when it falls in this blackhole.

Related

[Q] Problem with hone wireless network connection

A couple of days ago my wireless connection quit working at home. The wireless network icon turned white all the time, and never switched to green. I hard wire the modem/router (ATT Uversre 2Wire 3800HGV-B) into a 5 port switch and plug my computer, network storage drive, and media streaming box into the switch. I've had all of this set up for a few months in it's current configuration and there was never an issue before. This just seemingly happened out of the blue...funny how computers do that sometimes, right? I have an HTC Aria, I was running CM7 RC1 when the problem happened, I just updated to RC2 hoping maybe it would change and it didn't.
After reading posts and checking settings here's what I've found:
My wireless router is set to act as the DHCP server. I set all of the IP addresses manually. I've had it set this way for some time, haven't made any changes recently. The attached network storage (D-Link DNS 323 also has DHCP server capability, but that is disabled)
I found that while my phone was set in the router's setting to connect to 192.168.1.67 for whatever reason it was connecting to 192.168.0.200 (which is out of range, my DHCP is set to address to 192.168.1.64 - 192.168.1.253)
Any idea what would cause this?
I have a temporary fix right now, I've set the phone for static IP and entered all the values. It now connects to my home network on the correct IP and appears to work. This will be a hassle though because there will likely be conflicts when I try to connect to public wifi or at my office. I could just go in and set it back to automatic IP when I leave home....but that is a hassle, and obviously, something isn't working quite right.
Anybody have a clue what would be making this happen?
thanks!
theWilly said:
A couple of days ago my wireless connection quit working at home. The wireless network icon turned white all the time, and never switched to green. I hard wire the modem/router (ATT Uversre 2Wire 3800HGV-B) into a 5 port switch and plug my computer, network storage drive, and media streaming box into the switch. I've had all of this set up for a few months in it's current configuration and there was never an issue before. This just seemingly happened out of the blue...funny how computers do that sometimes, right? I have an HTC Aria, I was running CM7 RC1 when the problem happened, I just updated to RC2 hoping maybe it would change and it didn't.
After reading posts and checking settings here's what I've found:
My wireless router is set to act as the DHCP server. I set all of the IP addresses manually. I've had it set this way for some time, haven't made any changes recently. The attached network storage (D-Link DNS 323 also has DHCP server capability, but that is disabled)
I found that while my phone was set in the router's setting to connect to 192.168.1.67 for whatever reason it was connecting to 192.168.0.200 (which is out of range, my DHCP is set to address to 192.168.1.64 - 192.168.1.253)
Any idea what would cause this?
I have a temporary fix right now, I've set the phone for static IP and entered all the values. It now connects to my home network on the correct IP and appears to work. This will be a hassle though because there will likely be conflicts when I try to connect to public wifi or at my office. I could just go in and set it back to automatic IP when I leave home....but that is a hassle, and obviously, something isn't working quite right.
Anybody have a clue what would be making this happen?
thanks!
Click to expand...
Click to collapse
I don't understand when you say your router is your DHCP server but you set all the addresses manually...I can understand setting your network storage and media streaming to static IP's but you may want to reconsider for everything else, if your router allows for that to happen.
Have you tried rebooting your router and switch? May be worth doing that. I would not recommend a RESET because you'll have to reconfigure everything and I know how much of a hassle that is.
So, when you say you set the phone for static IP, do you mean through the phone gui or through the router?
Another thing to check is the number of available IP addresses. You could be out. I doubt this is the case in a home network, but never hurts to check.
"Do you mind if I turn up the AC?"
I have somewhat of a similar situation... I just installed CM7 RC2 and I can connect to my home's wifi and browse the internet etc... but some apps like Facebook won't update. With Facebook, I can retrieve messages sent to me but the news feed never updates and I can't view profiles. And for some reason everything works when I use my university's wifi...
corber22 said:
I have somewhat of a similar situation... I just installed CM7 RC2 and I can connect to my home's wifi and browse the internet etc... but some apps like Facebook won't update. With Facebook, I can retrieve messages sent to me but the news feed never updates and I can't view profiles. And for some reason everything works when I use my university's wifi...
Click to expand...
Click to collapse
Have you checked (turned on) your Background Data and Auto-sync?
Menu > Settings > Accounts & Sync ......
Have you checked (turned on) your Background Data and Auto-sync?
Menu > Settings > Accounts & Sync ......
Click to expand...
Click to collapse
Yeah, it's on. Still doesn't work. One other thing I noticed is that even though I'm with At&t the Amazon App Store works when I'm using my university's WiFi but no where else...
corber22 said:
Yeah, it's on. Still doesn't work. One other thing I noticed is that even though I'm with At&t the Amazon App Store works when I'm using my university's WiFi but no where else...
Click to expand...
Click to collapse
Go here and download the latest Nightly cm_liberty_full-30.zip
WiFi performance has been dramatically improved since RC2, and if nothing else, it's a better place to continue trouble shooting from.
Go here and download the latest Nightly cm_liberty_full-30.zip
WiFi performance has been dramatically improved since RC2, and if nothing else, it's a better place to continue trouble shooting from.
Click to expand...
Click to collapse
Didn't help I don't get what's happening. I can use the browser fine but certain applications always time out and won't update.
I have the same problem. I've found the following apps to not work correctly when I connect my Sprint HTC Evo 4G (CM 7.0.3.1) to my home wireless network (Apple Airport Extreme Base Station):
Facebook (news feed won't update)
Amazon MP3 (Only the cloud player doesn't work)
Netflix (won't let me log in)
Speedtest (downloads fine but shows 0.00Mbps for uploads)
Again, all features works great on 3G or on the wifi at work (a university network running WPA2 Enterprise with LEAP authentication), which leads me to suspect there's something wrong with my home wifi setup. I have updated the Airport Extreme to the latest firmware and reset it several times yet the problem persists. Any ideas?

See PC IP address on my phone

Is anyone aware of an app that I can install on my Nexus One, that when used in conjunction with a server app on a pc, will allow me to see the IP address's of my PC's on my phone. I realize this will most likely only work when my phone is on the same network.
The reason I ask is that I have an old laptop running Boxee hooked up to an old CRT TV(can't afford a newer LCD TV). This works fine for watching video's, but the image quality is such that trying to do anything else such as web browsing(Hulu) or system updates is damn near impossible. So if I have to do anything other than Boxee, I'm just going to VNC into the system. The problem is that the router does not allow for setting up static IP's, and it's not my router so I can't install DD-WRT on it, and it also has a habit of changing the client's IP address in the middle of a session. So if I could install a small server app on the PC that would broadcast it's current IP address, I could then easily pull it up on my phone.
Network Mapper by Ian Hawkins does what u want. And it doesnt need a server app.
Another option is to define a static IP without even involving the router. Just set the IP, gateway, netmask, and DNS servers on your boxee laptop manually, and it will continue to work even without the routers consent! The router isn't likely to be smart enough to actually map the addresses it handed out to the traffic it is routing, so it will just blindly pass the traffic.
Chances are, the router is set up to hand out addresses within a certain region - 192.168.1.100 to 192.168.1.150, or something like that. Most of the time, they will just forward all traffic that is in the entire 192.168.1.x range (or at least some reasonable subnet) What you can do is pick an address that won't be handed out by DHCP (192.168.1.2 or 192.168.1.250 or something), and set that manually on boxee. You'll be able to tell pretty quickly if it works! On the off-chance that the router DOES care, you can also try picking an address that is within the range of addresses being handed out, but on the upper end. Realistically, those almost never get used!
Static IP support on the router is nice because you don't have to do any configuration on the client, but if you're willing to put that configuration in (one time), you can get the same results. Worth trying out! That's what we all used to do before routers got fancy (and hacked) to include those cool features.
dyndns updater keeps it in sync and you can always log in online and see your ip address if your router has randomized it
Pc monitor gives you pretty much everything about the pc, including current external ip
Sent from my HTC Glacier using Tapatalk
Se7enLC said:
Another option is to define a static IP without even involving the router. Just set the IP, gateway, netmask, and DNS servers on your boxee laptop manually, and it will continue to work even without the routers consent! The router isn't likely to be smart enough to actually map the addresses it handed out to the traffic it is routing, so it will just blindly pass the traffic.
Chances are, the router is set up to hand out addresses within a certain region - 192.168.1.100 to 192.168.1.150, or something like that. Most of the time, they will just forward all traffic that is in the entire 192.168.1.x range (or at least some reasonable subnet) What you can do is pick an address that won't be handed out by DHCP (192.168.1.2 or 192.168.1.250 or something), and set that manually on boxee. You'll be able to tell pretty quickly if it works! On the off-chance that the router DOES care, you can also try picking an address that is within the range of addresses being handed out, but on the upper end. Realistically, those almost never get used!
Static IP support on the router is nice because you don't have to do any configuration on the client, but if you're willing to put that configuration in (one time), you can get the same results. Worth trying out! That's what we all used to do before routers got fancy (and hacked) to include those cool features.
Click to expand...
Click to collapse
Tried all that recently and it never worked properly.
zachary.hilliker said:
Pc monitor gives you pretty much everything about the pc, including current external ip
Sent from my HTC Glacier using Tapatalk
Click to expand...
Click to collapse
This is perfect, thanks.
I only skimmed through the topic but try fing. It might help.
Sent from my MB860 using xda premium

[Q] Samsung Galaxy S2 not resolving particular host names to IP

Hi, guys, here's my problem.
My Galaxy S2 using my own WiFi is unable to retrieve some content from web. This content is:
apps icons in Android Market,
Picasa images,
Accuweather forecasts
and some others.
Other devices using the same WiFi has no problems with it. S2 switched to other ISP than my WiFI also has no problems with it.
While trying to narrow possible causes I've picked an example image, which is problematic to my S2+WiFI combination:
https://lh3.ggpht.com/NpoJbnyQbI1kEIlrWhP_t7lj9lN519RkPB3mxQS2z6pTFjh01R3ISeyYnj4AccBSsQ=w788 (an icon of an app from Adroid Maret, remove space from url).
It won't open on my phone using WiFi, so I checked host availability. I've run on my phone following command:
Code:
[email protected]:/ $ ping lh3.ggpht.com
ping: unknown host lh3.ggpht.com
But on my PC using the very same WiFi:
Code:
C:\Users\Grzegorz>ping lh3.ggpht.com
Badanie photos-ugc.l.google.com [173.194.70.132] z 32 bajtami danych:
Odpowiedź z 173.194.70.132: bajtów=32 czas=27ms TTL=47
Odpowiedź z 173.194.70.132: bajtów=32 czas=25ms TTL=47
I'm stuck, what should I do now?
Have you any ad blockers or DNS stuff running ???
jje
Nope, it's clean Android 4.0.3.
Echo request for lh3.ggpht.com on your phone does not work. On your PC you get a response from 173.194.70.132. Just to make sure your problem is related to DNS (and not to some lower service): did you try to ping the IP address 173.194.70.132 from your phone? Do you get a response?
Yes, the host is reachable from phone using IP dot address, only name resolving does not work.
Ok, looks definitely like some DNS problem. As you already confirmed that your hosts file is fine the only thing I can imagine is your phone using some 'wrong' DNS server for address lookup.
To make (almost) sure you use a set of different DNS servers you could disconnect your phone from the wifi and enable a 3G data connection. Make absolutely sure you are not connected to your wifi. Now again run 'ping lh3.ggpht.com'; do you get a response?
Yes, that is the case.
Another weird thing is that phone on 3G resolves lh3.ggpht.com as 173.194.35.139, while PC on WiFi as 209.85.148.132. My 'hosts' file contains only localhost reference.
When I switch to WiFi while pinging that host, pings keep successful, unless I restart terminal session — after that I get 'unknown host' message.
Is there DNS configuration in Android somewhere?
OK, it seems I fixed it.
My WiFi works in a bigger subnet and hides all connected WiFi devices as as single computer.
I've installed on my Phone app called Set DNS from former Android Market, which allowed me to change both primary and secondary DNS. Initally both addresses were pointing to WiFi router itself which seems to work fine for my PC. I've changed it to DNSes of that bigger subnet I'm connected to. And it did the trick. Hopefully it won't mess settings for other WiFis I use to connect.
Thanks for showing me right direction!

[Q] Wifi No Longer Turns On

Rooted Thunderbolt - Connect to wifi quit working
I recently purchased a used rooted Thunderbolt. So far I've only used it on wifi networks and had no issues. Yesterday, when I try to turn the wifi on it never turns on and at some point it ultimately says error. I did some looking around and found that turning the wireless router off and then back on can often take care of this. I did this and it resolved the problem.
I'm having the same issue today only this time turning the router on and off doesn't solve the problem.
Here is some info about my phone:
Android Version
4.0.4
HTC Sense Verion
3.6
Software Number
NusenseROM_ReBorN_5.2_040813
Kernel Version
3.0.16-g65bd5ca
[email protected] #1
PREEMPT
Baseband Version
2.03.00.0201r.0.02.02-1211r
PRI Version
1.41_002.1.64_002
PRL Version
00000
ERI Version
5
I once had the same issue with a Droid Incredible, however, after a few days it started working again without me doing anything (intentionally) to resolve the problem.h
Does anyone have any suggestions?
The receiver might be going out but you could try flashing a different kernel or rom. Someone else just posted that their receiver went out.
Sent from my ADR6400L using Tapatalk 2
That's not real encouraging.
I think I'll install OSMonitor tomorrow and see if it gives any clues what is going on.
I found some suggestions at techrepublic.com blog titled "smartphones/troubleshoot-wi-fi-connections-on-your-android-phone/" [I'm new to this forum so I can't post a link or Figure B]"
There are a couple suggestions about changes in the wireless/advance settings. One is to select Proxy and make sure the phone is not set up for a proxy. The post is a few years old and I don't see this option on my phone. The other is to set a static IP Address which again I don't see as an option:
"6. Tap Advanced (Figure B).
7. Tap the Proxy setting and make sure your Android device is not set up for a Proxy. (Unless the Wi-Fi network you are on requires a Proxy, this setting will get in the way of your device's access to the Internet.) If you tap on Proxy and see an IP address or domain, delete it.
Figure B
Most likely the Proxy and Port settings will not be set, but it's always good to check if you're having frequent issues with Wi-Fi.
Static IP address
Another troubleshooting approach is to give your Android device a static IP address. This could reveal if the router you are trying to connect to is having issues with handing out DHCP addresses, or if your device is getting a bad address. To configure a static IP, tap Use Static IP and then fill in the settings (IP Address, Gateway, Netmask, DNS).
The only issue with setting up a static IP is that address will apply to all wireless networks, so only use this for troubleshooting if you just connect to one Wi-Fi network."
Any idea how (or if) I can do this?
wifi won't start - more info
I hope somebody is still tuned to this thread.
I have a rooted HTC Thunderbolt. It is running NuSenseROM_ReBorN_5.2_040813. I am having the same problem with the wifi not turning on.
I've run: logcat > /sdcard/logcat.txt and I've attached the log file.
If I run: ifconfig wlan0, I get:
wlan0: No such device
Anyone have any suggestions?

Question Bypassing hotspot/tethering throttle speed on n200 5g

Got a free n200 through tmobile to use as a hotspot device for my pc. I was previously getting the job done by using a galaxy note 3 and setting my pc's ttl to 65 but apparently that doesn't work with the newer phones.
I did some searching online and haven't been able to get a definitive solution to bypassing the hotspot throttle, as people seem to have varying results.
Had a lot of issues with PDAnet+, so it's definitely not a long-term solution for me.
Just sent an unlock request to OnePlus, hopefully by next week I'll get the unlock file and I'll root the phone. I'm assuming that rooting the phone will expand my options for what I want to do. Anyone have a solution that worked for them?
Yo, it's like dns hijacking, in fact, this is what you have to do to bypass this.
I'll paint a scenario, see what you make of it...
I plug my sim into a wifi router, in the control panel of this router, I set the wifi to use the 2nd ip, (yes, all isp's actually give you 2 ip's, one that is public, one the isp use's to spy on you, and the one you see in your ethernet card, usually 192.168.1.1.
Your wifi router runs adb, so it is on a different network, being 192.168.0.1, if you set your connecting device to your public ip shown by the router, and nxbogus domain your isp's private number seen in the router, (usually 100.whatever) and their dns, then set your prefered dns in the connecting device, you will bypass the throttling, but you will notice something else...
They throttle you by lowering your phones coverage lol...
Notice in your wifi setup pages your signal will drop from say 75% to 25%, and if you check the config logs, you'll see your limited 90% by the isp..
Yup, I'm isp level in this department..
didn't understand half of what you said. can you break it down a lil bit more?
l0csta said:
Got a free n200 through tmobile to use as a hotspot device for my pc. I was previously getting the job done by using a galaxy note 3 and setting my pc's ttl to 65 but apparently that doesn't work with the newer phones.
I did some searching online and haven't been able to get a definitive solution to bypassing the hotspot throttle, as people seem to have varying results.
Had a lot of issues with PDAnet+, so it's definitely not a long-term solution for me.
Just sent an unlock request to OnePlus, hopefully by next week I'll get the unlock file and I'll root the phone. I'm assuming that rooting the phone will expand my options for what I want to do. Anyone have a solution that worked for them?
Click to expand...
Click to collapse
you could always use this classic app been around for yrs its called pdanet/Foxfi........ http://foxfi.com/
PopCaps1996 said:
you could always use this classic app been around for yrs its called pdanet/Foxfi........ http://foxfi.com/
Click to expand...
Click to collapse
yea i'm using easytether rn, very similar to foxfi and pdanet+... not a permanent solution however, as it tends to randomly disconnect and i often get kicked out of games due to "network lag". Speeds are exponentially faster than the throttled hotspot, however, so i wont complain.
still, would be nice if there was a solution to this for the native hotspot/tether features... tried everything with apns and changing the ttl on the phone but it didn't work.
looks like someone found a solution for the moto g 5g here, maybe i'll try to implement this for the n200, could be a possible workaround.
l0csta said:
yea i'm using easytether rn, very similar to foxfi and pdanet+... not a permanent solution however, as it tends to randomly disconnect and i often get kicked out of games due to "network lag". Speeds are exponentially faster than the throttled hotspot, however, so i wont complain.
still, would be nice if there was a solution to this for the native hotspot/tether features... tried everything with apns and changing the ttl on the phone but it didn't work.
looks like someone found a solution for the moto g 5g here, maybe i'll try to implement this for the n200, could be a possible workaround.
Click to expand...
Click to collapse
moto g solution you posted requires a special kernel. usb tethering through PDAnet+ paid version works fine, the key is you dont enable it thru the native tethering, instead enable USB tethering through the PDAnet app and leave the phone on charging mode so it can make a ADB connection. Make sure ADB is working and you can establish a working adb connection from PC to phone first prior to attempting to tether since it will use ADB. i get full speeds tethering using the paid version.
AiM2LeaRn said:
moto g solution you posted requires a special kernel. usb tethering through PDAnet+ paid version works fine, the key is you dont enable it thru the native tethering, instead enable USB tethering through the PDAnet app and leave the phone on charging mode so it can make a ADB connection. Make sure ADB is working and you can establish a working adb connection from PC to phone first prior to attempting to tether since it will use ADB. i get full speeds tethering using the paid version.
Click to expand...
Click to collapse
yeah i've been doing this via easy tether, gets the job done for the most part
For me, PDAnet has low throughput while EasyTether runs full speed and can be used with OpenWRT. They both disconnect randomly though.
No reason to deal with that if you have root. AdGuard+VPNHotspot+noprovisioning is easy to setup and works fine for most networks.
l0csta said:
didn't understand half of what you said. can you break it down a lil bit more?
Click to expand...
Click to collapse
Only connection is WAN to WAN!
Ok, first, I use an lte wifi router, enter gui, goto lan, change router login ip to any ip not 192.168.1.1 or 192.168.0.1, the latter is hidden in router, but when trying to connect 2nd router, using this ip, problems appear, because the 1st router has adb enabled due to the lte section of 1st router being android 6, and uses's it.
So in effect, I set 1st routers address to 192.168.1.5, 255.255.254.0, 192.168.1.3 ie, this is 1st router login address. In the 2nd router I set mac address of 1st router to use 192.168.1.3, having been set in the 1st.
I do this because if I set 2nd router to match 1st routers address, the 2nd router auto changes address, when plugged in to first, and the 1st router changes too.
So now that you can goto 192.168.1.1 in 2nd router with 1st plugged in, try 192.168.1.3.
First part over, now the tricky part...
Disconnect 2nd router (this Will become your MAIN router)
Start 1st router with sim in, only to obtain public ip, because you need to set this ip in WAN of 2nd router. If your ip changes every reboot, you need to check public ip from first router match's what you set the wan ip to in 2nd router.
Now when you are in 1st router's network/lan settings, look for option to use 2nd ip. enable it, in the ip box put your public ip, ie your internet ip, and remove all access to anything else, including disabling wifi, both 2.5 and 5g.
So now plug in 2nd router WAN to first routers WAN.
Go into 2nd router, and block the PRIVATE ip seen in 1st router, the ip the isp shows you, and NX=bogusdomain your isp's private dns
In your WAN page of 2nd router, set preferred dns.
Voila.
70-80% increase in response.
The hardware method to block dns hijacking
Ps any reboot of the first router will change its ip due to being lte, so remember to check 2nd router match's after any power outage...

Categories

Resources