[Completed] [Q] Seems to be problem with DNS lookup in Android - XDA Assist

I have purchased a Alcatel Onetouch Idol X+ very recently and I am facing this problem of slow DNS lookup when connected to WiFi. When I am using WiFi and trying to browse any website it always taking 20-40 seconds to start show up any content. Later I realized that problem is not there when I am using directly IP address of an website instead on domain name. So, this must be an issue with slow DNS lookup. I have tried setting google DNS servers (8.8.8.8 and 8.8.4.4) in WiFi connection setting, but it is of no help.
To crosscheck this I used 'terminal emulator' to ping any website, what is see is that, always for resolving the domain dame it take 15-20 second time, then ping continues normal, similarly when I use any website IP to pinged there is no such issue.
Interestingly I found that sometimes when I connect to wifi then restart the phone, after that all browsing works fine and fast, but as soon as I change WiFi to another connection or turn wifi off-on, then again problem start to appear.
I have checked with few other phone connected to same WiFi connection, those are not at all having any such issue.
Can any one please tell any solution to this??
Android version is 4.2.2,
WiFi connection (which I am using) speed is more than 10mbps.

There is a thread here for your phone, though it is a ROM/Root thread. You could see if any other user with that phone has the same problem and has fixed it: http://forum.xda-developers.com/showthread.php?t=2451831
You could also ask in the Android Q&A which may be more effective than here: http://forum.xda-developers.com/android/help

Related

[Urgent] WiFi problem

I can connect the the network, I can browse the internet for a few mins, but then I start getting DNS errors.
The WiFi is still connected, but NO webpage will open. I can still open my modem's page (192.168.1.1), but anything that involved DNS won't work.
Please help me solve this. I'm on an Elfin running WM6.5.3 (Onyx ROM). No one else using that rom is having this problem.
Thanks.
tried various wifi routers? i.e., go to friends houses and try there..?
can other wifi devices use dns when yours stops working?
Yeah, my laptop works fine. I've tried this at many places, same problem.
I flashed to a previous ROM version, another ROM, hard resetted, nothing solves this.
Partial wifi solution
cyanide911 said:
I flashed to a previous ROM version, another ROM, hard resetted, nothing solves this.
Click to expand...
Click to collapse
I have the same issue on [08.02.2010][ROM][PLK][WM 6.5 BULID 21891] eXperience V 10 FINALES. After soft reset / swiching off/on wifi doesnt work. It shows up gree field as connected but now opening web pages, nor getting emails etc. No program can use internet.
I found that there is no wifi connection "mini tower" on the top bar. The problem is "solved" when I open wifi card settings, and temporary write static Ip. After ok, and after coming back to properties and changing to dynamic (dhcp) again it starts to move.
I also noticed strange IP being in the static Ip field it says something like f1::f1f3...etc. So dummy IP adres with hexadecimal code.
lozrog said:
I have the same issue on [08.02.2010][ROM][PLK][WM 6.5 BULID 21891] eXperience V 10 FINALES. After soft reset / swiching off/on wifi doesnt work. It shows up gree field as connected but now opening web pages, nor getting emails etc. No program can use internet.
I found that there is no wifi connection "mini tower" on the top bar. The problem is "solved" when I open wifi card settings, and temporary write static Ip. After ok, and after coming back to properties and changing to dynamic (dhcp) again it starts to move.
I also noticed strange IP being in the static Ip field it says something like f1::f1f3...etc. So dummy IP adres with hexadecimal code.
Click to expand...
Click to collapse
its called ipv6

[Q] Xoom connectivity issue

Ever since I bought my Xoom I've had a connectivity issue with it when used on my home Wifi network ts fine when used on my works one). What happens is that my internet preiodically disconnects and I have to disconnect and reconnect wifi to get it working again. I've tried changing my router channels but to no avail.
I've recently installed a few programmes to analyse whats going on. I've found that when I received an email on my hotmail account my internet usually drops, delving deeper it seems the network speed drops from 54mbps to sometimes half this (can't remember the exact number).
I've checked my email settings and I can't seem to find anything that would cause me to disconnect once it checks my emails. And anyhow the disconnection or slow down is usally caused as it is trying to retieve the email and then once I manually disconnect and reconnect my wifi the email comes through.
Has anyone got any ideas on how to solve this problem?
Thanks.

[Q] Some problem with wifi connections on Desire S

Hi, I'm a new user, and therefore can not write in the subject line of the developer. Solution is not found so I ask here.
When you connect to WiFi can not connect. Access point settings on display to automatically issue ip. Phone wrote: get ip address. nothing else happens
I tried to configure a static ip address: I find the network enter the password, there is a Connection of 2-3 seconds and then the phone WiFi off and then turn on and so is repeated until you delete the network.
sometimes connected.
What's happend?
HTC Desire S
Rom: IceColdSandwich 5.0
This problem was on:IceColdSandwich 4.2,4.3b
DenisVasilenko said:
Hi, I'm a new user, and therefore can not write in the subject line of the developer. Solution is not found so I ask here.
When you connect to WiFi can not connect. Access point settings on display to automatically issue ip. Phone wrote: get ip address. nothing else happens
I tried to configure a static ip address: I find the network enter the password, there is a Connection of 2-3 seconds and then the phone WiFi off and then turn on and so is repeated until you delete the network.
sometimes connected.
What's happend?
HTC Desire S
Rom: IceColdSandwich 5.0
This problem was on:IceColdSandwich 4.2,4.3b
Click to expand...
Click to collapse
Hey I'm using the same ROM like you. Try to restart your wifi hotspot or router. I think this will solve your problem. Also you could try to clean install the ROM (wipe etc..) And use the latest 5.1.
Your wifi should work then
Sent by my fingers to your head.
Hi all!
I'm having some problems with Wifi on my DS.
I have installed a wifi fix zip which I shouldn't have (unfortunately I didn't read the whole post...) Here's the post: http://forum.xda-developers.com/showthread.php?t=1051674
After installing I have stucked at the HTC logo, after a few retries and backups it has succesfully booted. But now I couldn't see my wifi at home but it still works at other places (like at work). I tried to add the home network manually by typing the SSID and password but nothing...
Any suggestions? Can i uninstall the zip or overwrite it somehow? As it works at other places I think it has just screwed up some settings.
Thank you in advance...
(BTW I have Reaper v3.0)
You should just reflash the reaper ROM.. Will sort you out.. I can understand why you would want that fix... The desire s wifi chip is crap... I've got a 100mb connection when wired in to my pc... If I walk 20 yards away into the kitchen my wifi loses the hub... HTC should put better wifi chips on their phones
Sent from my Reaper 3.0 Desire S using xda premium

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:

Internet connectivity problems

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 .

Categories

Resources