[Help pls] Wifi disconnects then cant reconnect - Windows 11

Didn't think I'd ever be on XDA asking a question to have to do with windows or PCs, but im all out of options.
So my sony vaio laptop is around 8 years old, solid performer with an i7 3rd gen (QM), 12gb ram and a 500 gig ssd running windows 10, but lately ive been experiencing this random issue. The problem is weird. My wifi is connected to my home network, then while im using the laptop, ir at some point will randomly disconnect, then if i try to connect to any wifi it says "unable t oconnect to this network". I tried turning the wifi on and off from windows but that doesnt solve it. The only solution i know of which works is restarting the laptop, or putting it into sleep and powering it back up. Upon powering back up it will reconnect automatically.
I don't know why this is happening, and ive tried all the solutions and i can find (and everything from my own knowledge). The only thing i can think of it being now is a faulty wifi card, as its pretty old and has experienced its fair shar e of wear and tear (consdiering how hot these things get).
If anyone knows a solution to this, it'd be much appreciated. And no, I havent made any changes to my system, or installed any updates, it just started happening on its own around 4 days ago.

Maybe try reinstalling the drivers, It could be a faulty driver causing the issue.
The Wi-Fi card wires may be loose, this will require you to open up the laptop.
Then, find something that looks like this...
Then check if the wires are loose.

I know what the wifi card looks like, the wires are connected, and i even reseated it. Its a broadcom wifi + bt card.
also already tried reinstalling drivers.
still not fixed, any more help would be appreciated.

Here are a few websites:
Laptop Keeps Disconnecting from WiFi [FIXED] - Driver Easy
Your laptop keeps disconnecting or dropping out from your WiFi network? Explore the several methods to fix this annoying issue!
www.drivereasy.com
How To Fix “Laptop Keeps Disconnecting From Wifi”
If your laptop keeps disconnecting from wifi for no apparent reason, keep reading. These tried and tested fixes will take just a couple of minutes of yours.
www.technewstoday.com
Laptop Keeps Disconnecting from Wi-Fi? Fix the Issue Now!
If your laptop keeps disconnecting from Wi-Fi in Windows 10/8/7, how can you fix the connection issue? Some solutions are for you!
www.minitool.com
If it keeps persisting, please reply to let me know.

The only temporary solution for this is disable and re-enable it in device manager. If it's gone again, do it again.
This is a problem in later stages in Windows 10 and also in Win 11.

Windows 11 said:
Here are a few websites:
Laptop Keeps Disconnecting from WiFi [FIXED] - Driver Easy
Your laptop keeps disconnecting or dropping out from your WiFi network? Explore the several methods to fix this annoying issue!
www.drivereasy.com
How To Fix “Laptop Keeps Disconnecting From Wifi”
If your laptop keeps disconnecting from wifi for no apparent reason, keep reading. These tried and tested fixes will take just a couple of minutes of yours.
www.technewstoday.com
Laptop Keeps Disconnecting from Wi-Fi? Fix the Issue Now!
If your laptop keeps disconnecting from Wi-Fi in Windows 10/8/7, how can you fix the connection issue? Some solutions are for you!
www.minitool.com
If it keeps persisting, please reply to let me know.
Click to expand...
Click to collapse
already tried all of these, none of them work.
it also could just be the card, ive always had better experiences with intel wifi cards rather than broadcom.

Wouldn't it be easier to buy a cheap $20 dongle instead of fighting, trying to get software drivers for an old internal card? Just a thought, not trying to be an ass.

I actually do have a dongle, and an ethernet connection at my desk. I prefer not to have dongles sticking out, as smaller dongles dont perform to my standards (or are quite pricey), and im not always at my desk. also, since my laptop HAS builtin wifi, isnt it worth a shot to try and get it to work again? especially since it was working before, and i havent updated my laptop (auto updates are off), it just spontaneously stopped working. I even have spare wifi cards, but i dont want to open the laptop as the frame was cracked and i fixed it with expoxy, so opening it could risk breaking it again (not the kind of hassle i want).

Hi!
i dont know if this will help but try this:
Open cmd as administrator, copy and paste this code:
Code:
ipconfig /flushdns
@echo reset TCP ip config
netsh int ip reset
netsh int ip reset all
@echo reset winsock
netsh winsock reset
@echo Reset IPV4 interface
netsh interface ipv4 reset
@echo Reset IPV6 interface
netsh interface ipv6 reset
@echo Removes all user-configured settings and resets all TCP parameters in the interface to default values
netsh interface tcp reset
@echo Purge the NetBIOS name cache and reload the pre-tagged entries in the local Lmhosts file.
nbtstat /R
@echo Release the NetBIOS names registered with the WINS server and re-register them.
nbtstat /RR
@echo Restart Net Adapter, Restarts a network adapter by disabling and then re-enabling the network adapter
powershell.exe Restart-NetAdapter *
Tell if it helped you!

persona78 said:
Hi!
i dont know if this will help but try this:
Open cmd as administrator, copy and paste this code:
Code:
ipconfig /flushdns
@echo reset TCP ip config
netsh int ip reset
netsh int ip reset all
@echo reset winsock
netsh winsock reset
@echo Reset IPV4 interface
netsh interface ipv4 reset
@echo Reset IPV6 interface
netsh interface ipv6 reset
@echo Removes all user-configured settings and resets all TCP parameters in the interface to default values
netsh interface tcp reset
@echo Purge the NetBIOS name cache and reload the pre-tagged entries in the local Lmhosts file.
nbtstat /R
@echo Release the NetBIOS names registered with the WINS server and re-register them.
nbtstat /RR
@echo Restart Net Adapter, Restarts a network adapter by disabling and then re-enabling the network adapter
powershell.exe Restart-NetAdapter *
Tell if it helped you!
Click to expand...
Click to collapse
My batch file is still floating around??? 2008...and still kicking. Oops, I just checked my batch file, it isn't the same, just looks very similar (not like it was some work of art in the first place.) Good suggestion, though!!

jackmeat said:
My batch file is still floating around??? 2008...and still kicking. Oops, I just checked my batch file, it isn't the same, just looks very similar (not like it was some work of art in the first place.) Good suggestion, though!!
Click to expand...
Click to collapse
I dont know your batch, this is simple windows codes that you can get searching in Google, and I mounted together in batch!
Probably it was easy for me if I had known your batch in first place!
I had some Internet problems and had done some research and created this batch, for me it fix it.

persona78 said:
Hi!
i dont know if this will help but try this:
Open cmd as administrator, copy and paste this code:
Code:
ipconfig /flushdns
@echo reset TCP ip config
netsh int ip reset
netsh int ip reset all
@echo reset winsock
netsh winsock reset
@echo Reset IPV4 interface
netsh interface ipv4 reset
@echo Reset IPV6 interface
netsh interface ipv6 reset
@echo Removes all user-configured settings and resets all TCP parameters in the interface to default values
netsh interface tcp reset
@echo Purge the NetBIOS name cache and reload the pre-tagged entries in the local Lmhosts file.
nbtstat /R
@echo Release the NetBIOS names registered with the WINS server and re-register them.
nbtstat /RR
@echo Restart Net Adapter, Restarts a network adapter by disabling and then re-enabling the network adapter
powershell.exe Restart-NetAdapter *
Tell if it helped you!
Click to expand...
Click to collapse
You're a Gem. :>

persona78 said:
Hi!
i dont know if this will help but try this:
Open cmd as administrator, copy and paste this code:
Code:
ipconfig /flushdns
@echo reset TCP ip config
netsh int ip reset
netsh int ip reset all
@echo reset winsock
netsh winsock reset
@echo Reset IPV4 interface
netsh interface ipv4 reset
@echo Reset IPV6 interface
netsh interface ipv6 reset
@echo Removes all user-configured settings and resets all TCP parameters in the interface to default values
netsh interface tcp reset
@echo Purge the NetBIOS name cache and reload the pre-tagged entries in the local Lmhosts file.
nbtstat /R
@echo Release the NetBIOS names registered with the WINS server and re-register them.
nbtstat /RR
@echo Restart Net Adapter, Restarts a network adapter by disabling and then re-enabling the network adapter
powershell.exe Restart-NetAdapter *
Tell if it helped you!
Click to expand...
Click to collapse
could you please explain what each and every line does, so that i know what im actually running. thanks

PhotonIce said:
could you please explain what each and every line does, so that i know what im actually running. thanks
Click to expand...
Click to collapse
Hi!
Everything is explained in @ECHO lines, any deep explanation is better to use Google to do it.
Basically it will return the settings of each property to default/stock values.

The Wi-Fi card cables may be loose, this will bear you to open up the laptop. Also, find a commodity that looks like this. However, do it again, If it's gone again. This is a problem in the after stages in Windows 10 and also in Win 11.

persona78 said:
Hi!
Everything is explained in @ECHO lines, any deep explanation is better to use Google to do it.
Basically it will return the settings of each property to default/stock values.
Click to expand...
Click to collapse
well i ran it, guess we'll see if it happens again

persona78 said:
Hi!
i dont know if this will help but try this:
Open cmd as administrator, copy and paste this code:
Code:
ipconfig /flushdns
@echo reset TCP ip config
netsh int ip reset
netsh int ip reset all
@echo reset winsock
netsh winsock reset
@echo Reset IPV4 interface
netsh interface ipv4 reset
@echo Reset IPV6 interface
netsh interface ipv6 reset
@echo Removes all user-configured settings and resets all TCP parameters in the interface to default values
netsh interface tcp reset
@echo Purge the NetBIOS name cache and reload the pre-tagged entries in the local Lmhosts file.
nbtstat /R
@echo Release the NetBIOS names registered with the WINS server and re-register them.
nbtstat /RR
@echo Restart Net Adapter, Restarts a network adapter by disabling and then re-enabling the network adapter
powershell.exe Restart-NetAdapter *
Tell if it helped you!
Click to expand...
Click to collapse
didnt work

PhotonIce said:
didnt work
Click to expand...
Click to collapse
Hmm...
Check hardware, see if everything is plugged right.

I find the culprit in my end, it's my hdmi cable interfering the signal at my wifi at laptop. Try to buy a new HDMI if you are plug-in with your monitor.

this is probably the 4th time someone has said to check my connections, once again i will tell say that i have cchecked it multiple times, reseated the card and even swapped the antennas. i even tried using some spare antennas i had lying around from a broken laptop. all of this was to no avail.
persona78 said:
Hmm...
Check hardware, see if everything is plugged right.
Click to expand...
Click to collapse

Related

Possible solution for ActiveSync with WM2005

Hi,
I recently reinstalled WM2005 and found that my experience from last time didn't help to get ActiveSync 4 working with WM2005:
In 2005 the primary connection mode between devices and desktop pc's via USB has changed from a serial over USB connection (WM2002 & 2003) to a TCP/IP based connection.
This connection is made by the RNDIS (Remote NDIS) driver. On the desktop PC, you device will no longer show as a serial USB device but as a network board. You can check this by looking at the network connections.
So when trying to troubleshoot ActiveSync problems you should pay special attention to everything that could interfere with TCP/IP. I had problems when the MS ISA Server Firewall client was activated. After deactivating (and some hours of research) it finally worked, so try to deactivate personal firewalls and things like that.
Checklist:
- Does you device appear in the Device Manager as "Windows Mobile based device"?
- Does it appear in network connections?
- run ipconfig and see if it has an IP adress assigned? (should be something like 169.254.2.2)
- open network cards on your mobile device >> Settings >> Connections >> Network cards >> Click "Remote NDIS host" and see if an IP address is auto-assigned (leave the setting just look at the IP address
- if you can ping your device from your desktop PC, ActiveSync should work, too.
Click to expand...
Click to collapse
It turned out that the problem was that I had disabled the "DHCP Client" service on my W2k machine. The RNDIS mechanism works in a way that the CE devices act as a DHCP server. When there is no DHCP client request from the PC, it simply doesn't work (a static IP address on the PC doesn't help).
I've read a lot of posts from people claiming that it only worked after a reinstall of the OS. Since the DHCP Client service is enabled by default, this might explain why the reinstall solved the problem. So before reinstalling your OS, you may want to try to start the DHCP client service....
Hope this will help some of you..
hello softworkz my friend...
yeah the same as i config my win2k PC...
i got no problem with my winXPsp2 and win2k3server PC, as i don't have problem with my BT sync...
tnx,
jojo
http://buzzdev.net

Barnacle Wifi Tether

Hey I found this on Modaco, I tried it out, and everything works great. Hopefully no one else has posted this as a thread, if so sorry! Here is the link ----> http://goo.gl/JV7W
Baranacle Wifi Settings:
1. Change SSID - [User Preference]
2. Change Channel - 6
3. Custom Wifi Ad-hoc - NONE
4. Skip wpa_supplicant - CHECK
5. Restart Phone As Desired
Settings For Windows:
Open cmd.exe as administrator
C:\Windows\system32>netsh interface ipv4 set subinterface "Wireless Network Connection" mtu=1250 store=persistent
This is assuming your wireless network adapter is called "Wireless Network Connection"
Fix For Mac:
System Preferences>Network>
Under Airport select advanced>ethernet tab
Set Configure to Custom and use 1250 MTU
I did NOT figure this out, just found on Modaco.
Good find! I'll test it out when I hit home!
P.S. I actually loaded webpages, so unlike googles wifitether where it shows it works, this actually does.
Those instructions along with this morning's Barnacle update and I am fully online now.
Worked perfectly on my mac! Thanks again!
This was posted a day or two ago but it's buried deep in a thread somewhere. I tried the settings and they work for Edge but not 3G. I tried it today with an iTouch and it connected but when I tried to surf around it disconnected. :-/
I might need to play around with it again (with the new Barnacle update) if people are having good luck.
works great, thanks!
This did not work for my Vibrant trying to connect wifi to my Toshiba NB 205. Message "NAT restart Message too long" repeats every few seconds.
Pneumatic said:
This was posted a day or two ago but it's buried deep in a thread somewhere. I tried the settings and they work for Edge but not 3G. I tried it today with an iTouch and it connected but when I tried to surf around it disconnected. :-/
I might need to play around with it again (with the new Barnacle update) if people are having good luck.
Click to expand...
Click to collapse
Worked great when I was using it with 3G, must have been the new update?
Halieus said:
This did not work for my Vibrant trying to connect wifi to my Toshiba NB 205. Message "NAT restart Message too long" repeats every few seconds.
Click to expand...
Click to collapse
did you get that fixed?
I am seeing the NAT restart message as well.
neema said:
I am seeing the NAT restart message as well.
Click to expand...
Click to collapse
To fix the NAT errors, you need to set your computer to use MTU of 1250. This is supposed to be fixed in the next release of Barnacle. But for now, if you make this change, it will work. See the first post in this thread for instructions. I use a Mac, but setting the MTU in System Prefs wouldn't stick for me. But this command worked:
sudo ifconfig en1 mtu 1250
I noticed that I keep getting the NAT restart error on my ipod touch but I am able to continue browsing the internet. Anyone tried this with success as well or possibly tried this with an iPad?
RaistlinMajere said:
To fix the NAT errors, you need to set your computer to use MTU of 1250. This is supposed to be fixed in the next release of Barnacle.
Click to expand...
Click to collapse
Thanks, I will have to wait for the release, I do not have the ability to adjust MTU settings on the device I want to connect. I assume it is the normal 1400 and does not support changing it.
They just posted an update in the market. It seems to work, but I haven't tried to surf yet. I will try when I get home.
I can confirm that Barnacle is working as a wifi tether on a rooted Vibrant.
I am using Ubuntu. I did have to set MTU for wlan0 (my laptops wireless device name, yours may vary) to 1250.
In Ubuntu you can change this (gui way):
System -> Administration -> Network Tools
Then:
Wireless -> (Your Vibrants SSID) Click Edit
Set MTU to 1250 instead of automatic
Or the command line way:
ifconfig wlan0 mtu 1250
The command line way is for the device! In this case I recommend the gui way (first time ever)
Did a speed test: 1.01 Down .33 Up Ping: 128ms (A little lower than I am used to being tethered, but it works and that's all I need)
Can confirm the current version in the market works *IF* you set your MTU to 1200 in windows, to do this w/ Windows 7:
(From an elevated command prompt):
Code:
netsh interface ipv4 set subinterface "Wireless Network Connection" mtu=1200 store=persistent
Just did a speedtest while tethered, 3.58mb/s down, 1.28mb/s up w/ 105ms ping!
It's not working with the iPad using 3G. I can still connect using Edge but it's really slow.
Still waiting for a total fix.
I get the "NAT restart" error when I'm on 3G but it works fine one EDGE
New version just went live in the Market.

[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] Why does't ICS supports IPv6 on WIFI?

I mean this is stupid... you can have IPv6 APN and everything, but on WIFI you cant get IPv6 address... I have dualstack LAN at home, every client should get local IPv4 address and public IPv6. But for some silly reason Google decided to not include this in to ICS, but since there is support for UMTS IPv6 APNs it should WORK technically... This works flawlessly on iPhone4S and other clients (read computers) that supports IPv6 on my LAN...
From what I can see, ICS manages to configure a IPv6 global address on its wlan0 interface via autoconfiguration.
Looking at results from tcpdump and other command line tools, there seem to be two other problems:
1) Even though there is a router on the LAN sending router advertisements and the device configures its address, it does not seem to install or use the the default gateway. I am able to ping the phone via IPv6 on the same local /64 global, and its link local, and am able to ping those devices back from the device (ping6 via busybox). I cannot however ping past the local IPv6 global network.
2) None of the web browsers on the phone I have tried seem to be doing AAAA lookups. Confirmed tcpdump, even when trying to resolve names that only have AAAA records, the request only ever goes out for an A record and never a AAAA.
I was able to run a web server on the same local /64 the phone was configured on, and was able to browse to it by its IPv6 address directly through the browser. So it does work, just missing the default route and AAAA DNS functionality it seems.
As an FYI this was tested on a rooted Galaxy S3 SGH-I747M running 4.0.4. I'm assuming the IPv6 functionality wouldn't be any different between this and the SII, but maybe I'm wrong.
themikea said:
1) Even though there is a router on the LAN sending router advertisements and the device configures its address, it does not seem to install or use the the default gateway. I am able to ping the phone via IPv6 on the same local /64 global, and its link local, and am able to ping those devices back from the device (ping6 via busybox). I cannot however ping past the local IPv6 global network.
Click to expand...
Click to collapse
I have a Galaxy S3 SPH-L710 running Android 4.0.4, and I had the same problem with it not configuring the default IPv6 route. There is a sysctl variable that controls whether the Linux kernel automatically adds the default route advertised in the IPv6 Router Advertisement messages, and it defaults to 0 (off) on the phone. Look at /proc/sys/net/ipv6/conf/default/accept_ra_defrtr.
themikea said:
2) None of the web browsers on the phone I have tried seem to be doing AAAA lookups. Confirmed tcpdump, even when trying to resolve names that only have AAAA records, the request only ever goes out for an A record and never a AAAA.
Click to expand...
Click to collapse
When I set accept_ra_defrtr to 1 and cycled my Wi-Fi connection, it came back up and added the default IPv6 route. Now test-ipv6.com on my phone gives me a 10/10 on both IPv4 and IPv6, meaning the DNS resolver is asking for AAAA records too and even preferring them when a host has both A and AAAA, which is the recommended and desired behavior. Loading comcast6.net on my phone shows my IP address as an IPv6 address.
Trouble is, setting sysctl variables in /proc/sys will not survive through a reboot, and there is no /etc/sysctl.conf on Android, so I don't know where to stash this setting so it gets applied on every boot. There is no file anywhere in /system that contains "accept_ra_defrtr" except for the vpnclient.ko kernel module, and that's not loaded, so I'd guess the kernel has been modified to disable IPv6 default routes by default.
Any idea if there's an Android equivalent of inittab or sysctl.conf or how might I go about setting that sysctl variable automatically on boot?
whitslack said:
I have a Galaxy S3 SPH-L710 running Android 4.0.4, and I had the same problem with it not configuring the default IPv6 route. There is a sysctl variable that controls whether the Linux kernel automatically adds the default route advertised in the IPv6 Router Advertisement messages, and it defaults to 0 (off) on the phone. Look at /proc/sys/net/ipv6/conf/default/accept_ra_defrtr.
When I set accept_ra_defrtr to 1 and cycled my Wi-Fi connection, it came back up and added the default IPv6 route. Now test-ipv6.com on my phone gives me a 10/10 on both IPv4 and IPv6, meaning the DNS resolver is asking for AAAA records too and even preferring them when a host has both A and AAAA, which is the recommended and desired behavior. Loading comcast6.net on my phone shows my IP address as an IPv6 address.
Trouble is, setting sysctl variables in /proc/sys will not survive through a reboot, and there is no /etc/sysctl.conf on Android, so I don't know where to stash this setting so it gets applied on every boot. There is no file anywhere in /system that contains "accept_ra_defrtr" except for the vpnclient.ko kernel module, and that's not loaded, so I'd guess the kernel has been modified to disable IPv6 default routes by default.
Any idea if there's an Android equivalent of inittab or sysctl.conf or how might I go about setting that sysctl variable automatically on boot?
Click to expand...
Click to collapse
bro look at your /system/etc/init.d. if it exists, you can add a new script as
#!/system/bin/sh
echo 1>/sys/XXXXXXX
in init.d and name it 89enipv6 or sth.
if it don't work, check your /system/bin/sysinit. if it doesn't exist, google and copy one.
Does anyone know how I can disable IPV6 on my S3 ?
ahoslc said:
Does anyone know how I can disable IPV6 on my S3 ?
Click to expand...
Click to collapse
Why do you want to disable IPv6? It's new better version of IP protocol and should be used whenever it possible.
runapp said:
bro look at your /system/etc/init.d. if it exists, you can add a new script as
#!/system/bin/sh
echo 1>/sys/XXXXXXX
in init.d and name it 89enipv6 or sth.
if it don't work, check your /system/bin/sysinit. if it doesn't exist, google and copy one.
Click to expand...
Click to collapse
In my case of 4.1.3 the value of 0 rewrited in /proc/sys/net/ipv6/conf/wlan0/accept_ra_deftrt on every wifi interface restart, even independently on "all"/"default" values.

[Q] Hardcoded 8.8.8.8 and 8.8.4.4?

Looking at my router logs, both my Samsung Note 2 and Note Pro 12.2 LTE (stock, not rooted) are making DNS calls to Google's DNS servers at 8.8.8.8 and 8.8.4.4 several times a minute. Neither of those servers are in my DHCP configuration, so I'm guessing something has these hard coded. Local port numbers change with each call. Our Xoom and HTC Photon 4G are not doing this, despite running many of the same applications.
I used a no-root firewall on the Note Pro which uses VPN to track activity, but it doesn't show this, and even application network traffic doesn't seem to correlate to when the Google DNS calls are made, so I'm guessing it's a system process of some kind?
Has anyone else observed this? It's more just annoying, than anything else.
Thanks for any insights!
eric
ericbergan said:
Looking at my router logs, both my Samsung Note 2 and Note Pro 12.2 LTE (stock, not rooted) are making DNS calls to Google's DNS servers at 8.8.8.8 and 8.8.4.4 several times a minute. Neither of those servers are in my DHCP configuration, so I'm guessing something has these hard coded. Local port numbers change with each call. Our Xoom and HTC Photon 4G are not doing this, despite running many of the same applications.
I used a no-root firewall on the Note Pro which uses VPN to track activity, but it doesn't show this, and even application network traffic doesn't seem to correlate to when the Google DNS calls are made, so I'm guessing it's a system process of some kind?
Has anyone else observed this? It's more just annoying, than anything else.
Thanks for any insights!
eric
Click to expand...
Click to collapse
Hi Eric, not too sure if you got your answer already. i am on RR kitkat ROM (SGS2), i had a related issue in that it has hard coded 8.8.8.8 as DNS and as a result, i can not use most open/free wifi, the authentication/term and condition page will not come up...
with some research, i found that in /system/etc/dhcpcd/dhcpcd-hooks/, there is this file called 20-dns.conf, in there, you may find there are 2 line similar to this
setprop dhcp.eth0.dns1 8.8.8.8
setprop dhcp.eth0.dns2 8.8.8.4
if you delete/comment this out, and reboot the device, it should work hopefully. that is how i fixed mine anyway. let me know if you still stuck.
cheers.
d8d8up said:
Hi Eric, not too sure if you got your answer already. i am on RR kitkat ROM (SGS2), i had a related issue in that it has hard coded 8.8.8.8 as DNS and as a result, i can not use most open/free wifi, the authentication/term and condition page will not come up...
with some research, i found that in /system/etc/dhcpcd/dhcpcd-hooks/, there is this file called 20-dns.conf, in there, you may find there are 2 line similar to this
setprop dhcp.eth0.dns1 8.8.8.8
setprop dhcp.eth0.dns2 8.8.8.4
if you delete/comment this out, and reboot the device, it should work hopefully. that is how i fixed mine anyway. let me know if you still stuck.
cheers.
Click to expand...
Click to collapse
just to show the whole picture so someone else can save a bit of running around, here is a file very similar to the orginal 20-dns.conf note line 20 and 20, if you # it out, it should use the default gateway, or change it so it use one you prefer: ( this is copied from the github but i can not copy the like over due to new user restriction.)
# Set net.<iface>.dnsN properties that contain the
# DNS server addresses given by the DHCP server.
set_dns_props()
{
case "${new_domain_name_servers}" in
"") return 0;;
esac
count=1
for i in 1 2 3 4; do
setprop dhcp.${interface}.dns${i} ""
done
count=1
for dnsaddr in ${new_domain_name_servers}; do
setprop dhcp.${interface}.dns${count} ${dnsaddr}
count=$(($count + 1))
done
setprop dhcp.eth0.dns1 8.8.8.8
setprop dhcp.eth0.dns2 8.8.8.4
}
unset_dns_props()
{
for i in 1 2 3 4; do
setprop dhcp.${interface}.dns${i} ""
done
}
case "${reason}" in
BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT) set_dns_props;;
EXPIRE|FAIL|IPV4LL|RELEASE|STOP) unset_dns_props;;
esac
d8d8up said:
Hi Eric, not too sure if you got your answer already. i am on RR kitkat ROM (SGS2), i had a related issue in that it has hard coded 8.8.8.8 as DNS and as a result, i can not use most open/free wifi, the authentication/term and condition page will not come up...
with some research, i found that in /system/etc/dhcpcd/dhcpcd-hooks/, there is this file called 20-dns.conf, in there, you may find there are 2 line similar to this
setprop dhcp.eth0.dns1 8.8.8.8
setprop dhcp.eth0.dns2 8.8.8.4
if you delete/comment this out, and reboot the device, it should work hopefully. that is how i fixed mine anyway. let me know if you still stuck.
cheers.
Click to expand...
Click to collapse
Thanks for the pointer, but unfortunately that's not my issue. I checked the file, and there are no hard coded addresses.
I don't think it is at the system level - when I look at the network configuration, it is showing the correct DNS addresses to use. So I think it is one or more apps that have it hard coded. Since I'm only seeing it on my Samsung devices, I'm guessing it's one of theirs...
oh... weird indeed. when i was trying to fix mine at the very beginning, i went to the wifi set up and found it was using DHCP, i therefore assumed it had no custom DNS but the router address as the DNS, which would be good and normal for me. but when i run getprop net.dns1 via the terminal of the phone, it gave me the 8.8.8.8 address.which led to the file mentioned above...

Categories

Resources