Internet connectivity problems - Nexus 5 Q&A, Help & Troubleshooting

Hey guys,
I have a problem with my nexus, I've noticed that my internet on my phone is acting quite...strange to say. I have a dual band router(d-link 880l) and on my phone I only use the 5GHz one. it's the only device in my home that has problems.
The problem is that when searching something using the google bar it takes ages until I get the desired result, on youtube app sometimes when I open it ,it won't load anything,the second I close it and open it again it works,some videos just refuse to start until i restart the whole application, sometimes whatsapp doesn't connect to their server I have to restart the app to get messages, or to see las act of people,on facebook messenger is the same story,when i send a message it won't send ,it acts like I have no internet connection,until I restart the app. Ironically I get CONSTANT 81mb/s download and 91mb/s upload in speedtest.net app.
I really don't know what to do ,i've forgotten my network,tried connecting on 2.4GHz,put my wif i mode only in 2.4GHz,enterd recovery cleard cache partition,unninstaled whatsapp,youtube,fb messenger,google app,deleted all google play services data,restarted phone,neither of those fixed it...
Can you help me...?

Are you running the latest stock ROM or some other ROM/kernel combination?

audit13 said:
Are you running the latest stock ROM or some other ROM/kernel combination?
Click to expand...
Click to collapse
I'm running rastapop 5.1.1 LMY48I with elementalx 4.04 since august 2015 with no fancy kernel settings or mods, just adblock and xposed over the top.I started to have this problem since november.
I did a factory reset on the router and I still have the problem.

To rule out software being the problem, I recommend flashing back to stock to see if the issue goes away.

I own a D-link DIR-850 (dual band AC router as well) and I am experiencing kind of the same problems. I have a Nexus 5 with latest firmware (MMB29S) but have had these issues for a while already. My girlfriends HTC One mini suffers from these problems as well. Most annoying is the seemingly random disconnects from whatsapp, I guess caused by Google Play Services being unreachable as at that same time also the Play store and other services relying on it are unreachable. Not sure whether this is an Android bug or caused by a bug in the Dlink router, which off course has been reset to factory defaults and checked for updates several times
Strange thing is that at the times that the Play Services are unreachable, other (plain internet based) services such as browsing with Chrome are working just fine.

I did some research on this compatibility issue between an android phone and a d-link router after I discoverd I'm not the only one.
The problem turned out to be some bug that is present in a way or another in android since lollipop , I think that lollipop(my case) is getting stuck when trying to do a DNS lookup ,but the problem is that it only happens on my home network, I don't have any problems at my friends wi fi or a public one. So my router isn't playing well with lollipop or the other way around.
The only solution I found to this problem is to disable ipv6 on your router or on the phone. So I did ,made a script that changes a value in a file, here it is : "echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6". With this I disabled ipv6 protocols on my phone(i've verified "disable_ipv6" file just to be sure that the value is "1") . Everyone bragged about it that it sloved their problem. Well guess I'm not that lucky,the problem still persists on my phone...
I've tried everything in the book...guess that this brand new 150 dollar router is not that impressive as they say...
I don't really want to factory restore my phone,I want to be my last option...the guy above me said that it did the factory reset thing and it didn't work so guess that it isn't an option after all...
If someone can help me(us), i will be very pleased...

At my workplace we have an Asus RT66NU providing the wifi, where I have never had any problem with this.
As you are suspecting it has something to do with the ipv6 stuff, I'll be experimenting with this a bit to see if something changes. First test is putting the autoconfiguration setting to SLAAC+stateless DHCP.
Next step will be disabling ipv6 at all.

renearts said:
First test is putting the autoconfiguration setting to SLAAC+stateless DHCP.
Click to expand...
Click to collapse
I tried with PPPoE( my internet connection ) on ipv6 that is shared with my ipv4 session with SLAAC + stateless DHCP and stateful DHCPv6 . At first it was promising but in the end it didn't really solve my problem. Just for the record ,I had my ipv6 settings before on local connectivity only .

Related

[Q] Strangely isolated WiFi issue

Hi all,
Captivate with Cognition 2.2B9.1.1
Android 2.2
Belkin router (it is at home so I can't get the model number right now)
The simple problem is that my captivate will connect to all of the other wifi networks that I use but it stopped connecting to the one at home. All other phones and computers in the house connect just fine. The interesting thing is that when you watch the connection status on the phone, it connects and then immediately disconnects and starts the handshake over again. I have watched this happen over and over again. Weird.
I first thought it was my router so I modified the settings by using different channels and security methods. No dice. I then reset my router to factory specs and still nothing. I want to blame the router but I am stuck thinking that it might be the phone. Is there a way to purge the WiFi and IP information? I would rather not dump my phone and restart if I can avoid it. Can this be done through a terminal app like other platforms?
Any ideas or similar experiences?
Thanks ahead of time.
999
more info
So I dropped an updated Cognition Rom 2.3.b6 and solved the issue. Last night I cleared my RAM (level 1 and level 2) and when I got home the problem occurred again. Bizarre. Could I be clearing a cache that refuses to refresh? Ideas?

WiFi *profile* keeps getting disabled?

I've noticed that the profile for my home wifi network keeps getting disabled. Usually, I'll leave for a bit, then come back and about half the time it never reconnects. When I go into the wifi list, it's marked as disabled. I enable it and it works fine from that point unless I leave again. It's my understanding a profile will get disabled when it cannot connect to a network for some reason, but clearly it can. My G2 and SGS never have this problem. Is this a setting somewhere? Thanks...
I am having this same issue. I dont know how to fix it
This is more serious than I realized! I just got disconnected randomly even while staying in perfect coverage. Not only does it disconnect, but it DISABLES the connection and won't reconnect again unless I manually tell it to. I rely 100% on WiFi calling while home and now I'm missing all kinds of calls and texts because WiFi is disconnected...
I'm hoping this is just is a software issue that can be resolved pretty quickly, officially or unofficially...
This phone has like 10 legit problems already. Tmobile needs to hurry up with the updates or the refunds will kill them.
It might help if you talk about the router you're using. I have a Netgear N600 and haven't had any Wi-Fi issues either connecting, staying connected, or automatically reconnecting. Bluetooth on the other hand...
BarryH_GEG said:
It might help if you talk about the router you're using. I have a Netgear N600 and haven't had any Wi-Fi issues either connecting, staying connected, or automatically reconnecting. Bluetooth on the other hand...
Click to expand...
Click to collapse
It's a Linksys WRT610N. Very modern and very stable router. There's no reason this phone should have any problem with it. I literally have a G2 and SGS sitting side-by-side with the G2x and only the G2x has this problem. The SGS is Froyo and the G2 is Gingerbread. I also have a slew of other wireless (on both 2.4ghz and 5.8ghz bands) and wired clients connected that all have zero issues. I don't know why it would work on one router and not the next...
Are you using WPA2-AES encryption or something else?
zaventh said:
Are you using WPA2-AES encryption
Click to expand...
Click to collapse
Yes. And you're right, the phone is very temperamental across a number of areas.
Did you set up your wifi to never go to sleep? Cause if you havent - it disconnects every time you turn off the screen.
In order to do that, go to Settings=>Wireless & Networks=>Wi-Fi Settings=> click on the "menu" button on your phone=> Advanced=> Wi-Fi sleep policy=> and choose Never.
I did that, and my wifi calling is flawless ... and I rely on it pretty much all the time that I am at home (thanks for that stupid t-mobile signal)
I have the same issue and the setting I have by default to Never go to sleep... Also, has nothing to do with router as any of my other phones have this issue including Nexus One.
Did by any chance any of you with this issue restore some Titanium Back-ups? Because when I restored mine from a back-up of my 1st G2x (exchanged) I also restored the previous wi-fi settings and after that the wi-fi wouldn't work correctly. I did a factory reset and it fixed the problem.
Edit: If all else fails, then try a factory reset. I know it sucks, but it could fix everything.
Sent from my LG-P999 using XDA App
I'm having issues with this as well. Wifi set to never sleep, I haven't restored any apps. I constantly lose connection. I've tried the factory reset thing etc. and it doesn't help.
I can connect to my wireless g Linksys access point but not my airport extreme ... my Linksys is open my ape is not(I realize I wrote ape LOL)
Sent from my LG-P999 using Tapatalk
WiFi seems to be losing dns services
I have the same WiFi problems and while a factory reset clears the problem
temporarily and changing the WiFi sleep setting to never is an immense help
once it's gone off-line I can't get it to come back.
I have noticed that if it has a cached dns lookup to an ip address that that
ip address is still accessible. So if you can get OTA data live, look up google.
Switch to wifi, google is still accessible and you can do queries but you can't
click through on the links because the dns lookup fails.
I've fiddled with killing myaccount, suggested elsewhere, without success.
Unless there is some robust configuration change that pops up soon I suppose
I'll have to return it...
boylan said:
I have the same WiFi problems and while a factory reset clears the problem
temporarily and changing the WiFi sleep setting to never is an immense help
once it's gone off-line I can't get it to come back.
I have noticed that if it has a cached dns lookup to an ip address that that
ip address is still accessible. So if you can get OTA data live, look up google.
Switch to wifi, google is still accessible and you can do queries but you can't
click through on the links because the dns lookup fails.
I've fiddled with killing myaccount, suggested elsewhere, without success.
Unless there is some robust configuration change that pops up soon I suppose
I'll have to return it...
Click to expand...
Click to collapse
Did you also uninstall market updates and freeze the market updater?
It got mine working again without any problems. Sucks that this has to be done to get wifi to work properly.
I've frozen MyAccount and WiFi calling and it's working at the moment.
Truely I was a little tired and forgot about the market updates until I got
back here.
Insane that one has to do something like this for such a basic feature.
I mean who is going to use the OTA networking when wifi is available?
Let alone the cost issues. I went from 880kbps to 10100kbps going from
OTA to wifi.
This device must have rushed out the door.
Useless at any speed
So I've uninstalled the updates to and FROZEN:
My Account
Market Updater
WiFi Calling
AppPack
and the phone is still trippy. I've discovered also (via the engineering menu)
that the networking ping test fails - "network unreachable". The wifi
data looks good but it doesn't show the current gateway or dns configuration
information.
I'm at a loss for what to try next. Anyone got any suggestions?
Is there something like a netstat android app?
I am having the SAME issue as well as the OP..... =/
wifi recovery
Too soon to say that this is a consistent work-around but I'm
having some short term luck with
rebooting the phone (remove battery) in Airplane mode
enabling wifi
turning airplane mode off
Not sure if the battery pop is necessary. I suspect it's not.
I also suspect that freezing/deinstalling the various updates
is pointless.
Probably the whole work-around is to change the
Wi-Fi sleep policy to never:
settings->wireless & network settings->Wi-Fi settings->advanced
and use the airplane/wifi enable reboot sequence.
If someone has a permanent work-around based on precise setup
sequence and freezing applications I'd like to hear it - I think I've
followed the several posts on this topic and that path is unreliable but
it never hurts to be wrong.
dj75728 said:
Did by any chance any of you with this issue restore some Titanium Back-ups? Because when I restored mine from a back-up of my 1st G2x (exchanged) I also restored the previous wi-fi settings and after that the wi-fi wouldn't work correctly. I did a factory reset and it fixed the problem.
Edit: If all else fails, then try a factory reset. I know it sucks, but it could fix everything.
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Mine does this and I never restored any system data. I only restored apps.
Strange.
I use WiFi calling at work with no problems. It is a Netgear router. I haven't had problems at home with my Linksys router either.

ViperS 5.1.0 causing arp poisoning on wlan

Hello everybody, this is my first post here but I have been reading the ViperS threads in the development forum since version 2. Awesome rom, I really like it.
However, I have encountered an issue with ViperS 5.1.0 . I would like someone else confirm if this is happening on his sensation too (with ViperS 5.1.0), because its a very annoying bug, and a potential security flaw.
A few days ago I installed ViperS 5.1.0 (from full wipe and no restoring of backups, clean install), and shortly afterwards I noticed that my home computers in my LAN (ethernet and wifi), where having some kind of little micro-cuts in communication with the internet, especially noticeable with google and youtube autocomplete feature and things like that. The communication completely stops for a few seconds, then resumes and works perfectly until a couple of minutes (sometimes less), and it happens again.
I checked my network with a packet sniffer, and found the culprit to be the Sensation. This is what happens:
I have wifi set to always active on the phone and, when the phone is left suspended with screen off, after a little while it begins to send bogus ARP protocol broadcast packets announcing that it has a random (and incorrect) IP associated to his wlan mac. It repeats it again with several other random IPs over time, and sometimes it also says via ARP that it has the same IP as my home router. In that case, it causes all computers and devices on the network, to try to access the internet via the Sensation's wlan card mac, which obviously fails, causing the micro-cuts. After a few seconds, the router sends the correct ARP information and the computers can access the internet again. This is very similar to an ARP spoof attack, but I can't see why the phone is doing it.
It's only happening with ViperS 5.1.0. I have tried disabling ad away and also tried to connect with a fixed IP instead of DHCP, but it keeps happening.
I have attached a screenshot to show the problem.
PD: On other subject, the wifi is buggy when changing access points in the same WLAN (I have 2 APs at home), it turns off, activates mobile data, and then turns wifi on again, taking a long while to do it. In ViperS 3, it just went from one access point to the other without disconnecting. This is a secondary thing, I can live with it, but I thought I should say it just in case it's a easy thing to solve for the devs.
Thanks for your time! I really appreciate your work. :good:
I have been trying to do a packet capture in the phone, and tried to find something in the logs, but I can't see anything. Could this be related to the wifi drivers? Since ARP protocol is in link layer, I can't think of anything else.
Also the other day I connected to a wifi network in other place, and it completely crashed the router, no one else could connect.
@ivicask , I would really appreciate it if you can have a look at this. Because of it, at the moment I'm using mobile data only even at home, and I'm going to use it up pretty quickly
Thanks in advance :good:
raulov said:
I have been trying to do a packet capture in the phone, and tried to find something in the logs, but I can't see anything. Could this be related to the wifi drivers? Since ARP protocol is in link layer, I can't think of anything else.
Also the other day I connected to a wifi network in other place, and it completely crashed the router, no one else could connect.
@ivicask , I would really appreciate it if you can have a look at this. Because of it, at the moment I'm using mobile data only even at home, and I'm going to use it up pretty quickly
Thanks in advance :good:
Click to expand...
Click to collapse
I have been using ViperS for a while, and I it certainly isn't ARP poisoning the network.
Try setting a static IP (set it to that alloted by your DHCP) and see if the issue persists.
Happy to help.
Far_SighT said:
I have been using ViperS for a while, and I it certainly isn't ARP poisoning the network.
Try setting a static IP (set it to that alloted by your DHCP) and see if the issue persists.
Happy to help.
Click to expand...
Click to collapse
That's the first thing I tried, it didn't help.
I have googled it and seems there are some problems with the ARP offload feature in the wifi chip drivers, and several phones have suffered it, the nexus 4 and some HTC devices. A lot of people have reported it in the google code forums.
The thing is that it didn't happen to me in previous ViperS 5.0.0, so something must have been changed in the rom that it's causing it. Do you know where I could look? Maybe it's just something wrong in a config file and can be easily solved.
raulov said:
That's the first thing I tried, it didn't help.
I have googled it and seems there are some problems with the ARP offload feature in the wifi chip drivers, and several phones have suffered it, the nexus 4 and some HTC devices. A lot of people have reported it in the google code forums.
The thing is that it didn't happen to me in previous ViperS 5.0.0, so something must have been changed in the rom that it's causing it. Do you know where I could look? Maybe it's just something wrong in a config file and can be easily solved.
Click to expand...
Click to collapse
While I may not know I shall still try to help once I am home I will quote your post into the correct ROM thread to see if the devs/power users of this ROM can help out
Sent from my HTC Sensation using Tapatalk
ok im posting it now, can you get a logcat to supply to the devs please?
Yes i saw this, but as only person with this problem, i didint investigate. There can be many reasons this is happening to you, but most likely its problem in your own network/routers. My suggestion is first try updating your routers firmware, if there isnt new firmware, just try resting them to factory default and re configure them. I have actual experience with this, my DIR-655 couldn't connect in wifi N mode until i reseted it.
Also HTC ONE users had problems with Dir -655 where it would reboot if HTC one would connect to it (Firmware issue).
Also from your pics i see "duplicate use of 192.168.1.1", are you running 2 routers on same network with same ip address??Than this is the reason of your problems, you cant have 2 devices with same IP in same network, even worse will happen if those 2 devices are actual routers, or even worse if both of them are running DHCP.So re-check your network, make sure only 1 DHCP is running, and there are no devices with same fixed IP address.
Also here are to 2 tests for phone with different wifi supplicant versions, try them ONLY after you make sure your network is fine.
View attachment Test1.zip
View attachment Test2.zip
EDIT:About wifi switching, same thing happens on my ONEX+ ...
ivicask said:
Also from your pics i see "duplicate use of 192.168.1.1", are you running 2 routers on same network with same ip address??Than this is the reason of your problems, you cant have 2 devices with same IP in same network, even worse will happen if those 2 devices are actual routers, or even worse if both of them are running DHCP.So re-check your network, make sure only 1 DHCP is running, and there are no devices with same fixed IP address.
Click to expand...
Click to collapse
Thanks for your answer. The "duplicate use of 192.168.1.1" is exactly the problem, I know that (I am a telecomms tech, I know how this works )
The matter is that the device that is claiming to have the same IP as the router... is the Sensation! See the "source" column in the pic.
I have only one router. Everything is properly configured in the network, the issue only appears when the sensation is connected to wifi AND with screen off. Then it starts sending the false random ARP packets.
Apart from the "router impostor" packets, there is also the problem that over time the other random packets will fill up the ARP tables in the router memory, causing it to hang, although this hasnĀ“t yet happened to me.
In the threads I saw in the google code forums, people reported the same thing for the nexus 4 and several newer HTC devices with the same broadcom chip, (which also caused notification delays) and said that it disappears when disabling "wifi optimization" (with the rise in battery drain that it implies) , which looks like a bug somewhere in the wifi drivers. Unfortunately, disabling that option does not change anything for me.
This has started happening in 5.1.0. Never had such a problem before.
Thanks for the files, I will try them and report results.
Except for this and a weird bug with h/w accelerated videos screen corruption when free memory less than ~90 mb, the ROM is absolutely awesome :good: . It feels much faster and lighter than previous versions. You devs are doing a very good job :good:. HTC should hire you!
OK, problem solved. The test2 file solved it.
With test 1, it stopped sending random IPs in the ARP packets, but instead claimed to have 0.0.0.0 always, and not the correct IP. Also, it couldn't see channel 13 which I'm using on one of my access points (probably region was set to USA in this file).
With test 2, the ARP packets report the correct assigned IP (via DHCP and fixed), it can see all the wifi channels, and everything works perfect. It also appears to be changing from one AP to the other without disconnecting the wifi. This is the correct way it should work.
Still don't know the need to send the ARP info each 15 seconds , but at least now it's correct and there are no problems.
Thank you very much for your help @ivicask , I have seen that the wpa supplicant in the files you posted has an older date, is it just an older version or have you changed something in them also?
Will you include this fix in the next version of ViperS?
Thanks again :good:
Same for me. Killed my router. Especially if downloading at high speed. My router went upp and down. Now I have on other phone and my senny runs stock. No problems att all.
Flashed Viper to check 3min then router died. (it reboots)
Thanks
I couldnt neither write in the original post. By the way, i have the same problem with my wifi conection.
Now i solved it with Test2.zip. I have european wifi too and my router see fine now.
Thanks a lot for this rom and the help.
I didn't notice any particular issues with my WiFi, but I was having the disconnecting behaviour when switching between APs.
The Test2.zip solved this.
More, I tested the received power with Netgear Wifi Analyzer in an already tested place in my home. After applying the Test2.zip it looks like I gained ~10dBm. Maybe it's just something casual, but I wanted to report.
Last. The wpasupplicant file in the Test2.zip has the same modification time as the one in ViperSC2_3.1.4, so I think it has been taken from there
Good job anyway :good:

WiFi slow, Facebook, YouTube, Playstore images

Googled links acknowledging WiFi issues but nothing here? I can't be the only one. Best solution I've found until LG fixes in an update is to run DNSet from the play store. It changes DNS servers for phone to Google's.
Summit1 said:
Googled links acknowledging WiFi issues but nothing here? I can't be the only one. Best solution I've found until LG fixes in an update is to run DNSet from the play store. It changes DNS servers for phone to Google's.
Click to expand...
Click to collapse
Honestly, I've had no issues whatsoever with my WiFi
Long live doodoo
I've had wifi drop pretty frequently to the point i have to turn off data in my home.
I changed my home router to use OpenDNS rather than my ISP's DNS servers, which seemed to fix the issue, but after a while the problems have returned. I've tried booting to recovery and clearing the cache. Right now running DNSet app is a workaround that's working.
I have a Nexus 7 2013 tablet running same 6.0.1 Android and have no issues with it, which leads me to believe the problem is not my router but the LG G5 device.
The saga continues . . . my wife's Samsung Galaxy S6 has worse problems than my LG G5. Hers won't even download or update apps on Play Store. Sometimes Facebook just "spins" trying to update. Meanwhile my Nexus 7 never has had the slightest problem, and all three devices are running Android 6.0.1.
I reset my Belkin AC1200FE Dual-Band Wireless Router to factory settings and reconfigured the 2.4 and 5Ghz access points. I then went on both our phones to "Backup & Reset / Network settings reset" and did that. So far, so good.
My WiFi is slow as well. I went from 171mbs to 30 mbs. I can't figure our what would cause this. What's the difference between my old M9 and the G5
I'm thinking it's Android 6.0.1 affecting certain devices. My wife's Galaxy S6 had zero issues before updating to Marshmallow.
BR7fan said:
My WiFi is slow as well. I went from 171mbs to 30 mbs. I can't figure our what would cause this. What's the difference between my old M9 and the G5
Click to expand...
Click to collapse
I was having the same painfully slow wifi issue on my home network. It was "Return of the Slowskis". Turned out to be using Duel Band Router. What I did to resolve my issue was make my router 2.4GHz: g, n.... 5GHz I set to AC only. Each has with different names as well. Then I reset the phone's network settingsbto make sure cache was dumped. Restarted the phone.... Set the phone to 2.4GHz and off to the races I go.

Wifi problem - on-off and no wifi hotspot, phone restarting - Please HELP

Hello everyone,
me and my wife enjoy our htc U11, but few days ago mine start playing up - wifi have difficulties to connect its doing like on-off-on-off, and after while connect to router, doing same thing at work and home too, and I really can't use any longer wifi hotspot, and phone restart at least once a day, not very happy, but today my wife experienced same problems as I have few days, must say both phones bought in UK from two different companies and different times, both are on stock rom, completely standard phones, I am only using modified camera apk, can anyone give me advice what it could be?, I do not have even Facebook or Twitter account, so can't be related to these apks. Was going to do hard reset tonight, but after my wife told me she got same problems and she use her phone very little, I am not sure if hard reset will resolve problems. I will welcome any help...
Forgot to say we are on 2.33.401.10
Many thanks..
Settings>more>data usage>network restrictions>check to see if the network has been restricted.
Settings>more>three dots (overflow menu) and hit "reset network settings"
Have you reset the router, checked the network settings are correct (if you use dhcp just reset your router).
If the ssid has spaces or characters/symbols then this can cause issues.
I have personally known routers that use signal binding to run at speeds incompatible with some devices. Especially those with 1gb interfaces. *cough netgear*.. Falling back to a basic setup helps significantly.
A factory reset will probably solve it but you'll lose your data. That is the last ditch effort.
Hi, what is latest update for this rom?, as we can get no ota update, if you point me right direction, will be great, and I will update at least one phone, and see difference. I already reset home router, I reset network setup on phones, wipe cache on both phones, still problems, and even when I am not at home, wifi playing, as I can setup wifi hotspot and I am away from any wifi. Many thanks..
Sorry that was my bad, I forgot I was looking at my m9, not my U11. You are up to date.
My post has been edited. Follow that.
To have the same problem on both phones is very strange indeed. It must be network settings causing the problem unless you have an app running that monitors WiFi in some way..
I, too, have been having WiFi problems all of a sudden. I am not stock, I'm on viper with EAS kernel, but was running it all just fine for a while then without changing anything, I have the same problem.
Still looking for fix, but no luck so far, tonight I reset router just to be sure, but problem is still there, I am sure sooner or later I will find out what is behind this problem.
Hi i encounter rhis problem on stock htc ron and i flash latest slim build and everything worked form me
SlimOS link
slashray said:
Hi i encounter rhis problem on stock htc ron and i flash latest slim build and everything worked form me
Click to expand...
Click to collapse
can you give me link of working SlimOS ? and its safe ?

Categories

Resources