prevent android being "smart" about wifi connectivity - Security Discussion

when I connect to a captive wifi, I want to use the connection as is (maybe I want to login without telling google - since the builtin authenticator uses their gstatic domain, or maybe I want to probe the network as it is being redirected, or maybe I just want firefox to manage my password to the portal, etc)
but after I select "use wifi as is" on the android webview builtin auth screen, android starts to route all and every traffic to my 3g/4g data connection instead, until I disable and re-enable wifi.
it will only ever redirect traffic to wifi after it successfully got the correct 204 from gstatic.com
is there anyway to work around this?
I am on android6, but I think I has always been like that.

gcbxda said:
when I connect to a captive wifi, I want to use the connection as is (maybe I want to login without telling google - since the builtin authenticator uses their gstatic domain, or maybe I want to probe the network as it is being redirected, or maybe I just want firefox to manage my password to the portal, etc)
but after I select "use wifi as is" on the android webview builtin auth screen, android starts to route all and every traffic to my 3g/4g data connection instead, until I disable and re-enable wifi.
it will only ever redirect traffic to wifi after it successfully got the correct 204 from gstatic.com
is there anyway to work around this?
I am on android6, but I think I has always been like that.
Click to expand...
Click to collapse
Do you have any kind of Linux ide? Have you tried making a tunnel?
Or is that what your looking for. I'm not 100% sure what your looking for. If your trying to skip Hotspot authentication? Or anything like that Then a tunnel would work fine.
Sorry I can't be of much else help

If your phone is rooted or has a custom ROM (Which would obviously indicate that the phone is rooted), there is a solution that you can try using a terminal (Or ADB shell).
Issue the command: "settings put global captive_portal_detection_enabled 0" That should prevent captive portal detection and gstatic confirmation. This should work, I haven't tried it personally though.
Additionally, you can setup a captive server.
Issue the command: "settings put global captive_portal_server g.cn"
Restart your phone, and you should have access to the pages.
Basically, connecting as is, requires you to reach a site that does not require 204 confirmation and afterward other sites should be accessible. Let me know if this helps.

Josh Ross said:
If your phone is rooted or has a custom ROM (Which would obviously indicate that the phone is rooted), there is a solution that you can try using a terminal (Or ADB shell).
Issue the command: "settings put global captive_portal_detection_enabled 0" That should prevent captive portal detection and gstatic confirmation. This should work, I haven't tried it personally though.
Additionally, you can setup a captive server.
Issue the command: "settings put global captive_portal_server g.cn"
Restart your phone, and you should have access to the pages.
Basically, connecting as is, requires you to reach a site that does not require 204 confirmation and afterward other sites should be accessible. Let me know if this helps.
Click to expand...
Click to collapse
no root on the phone (damn blackberry priv) and no control of the portal.
this is so infuriating. This is trivial, banal even, on any device i control. Feel like a kid on training wheels every time i touch my phone.

Related

[Q] How do I connect LG Vortex to my Corporate Wifi and use apps while connected?

I have recently purchased an LG Vortex that comes with the Android 2.2 operating system installed. I have looked into rooting my phone with z4root and have successfully temporarily rooted my phone. I would rather keep my phone unrooted, but if it is absolutely necessary I will root it permanently with z4root.
My question is this: How can I connect to my company wifi and use apps that require wifi?
I can successfully connect to my corporate wifi through the 802.1x EAP protocol. The problem comes when trying to access any of the apps that require internet (I am forcing Verizon's data plan not to be used--using wifi only due to 150MB limit on my data to save $$ per month). None of my apps seem to work--internet browser, Market, Gmail, Google Calendar, etc...
On my company pc I know that within internet explorer the box is checked that says "Use automatic configuration script" and gives an "Address" that is in the format of "..../proxy.pac" It looks like my work uses a proxy for things to connect to the internet. I have no such place to put this information in my LG Vortex. I downloaded an app that seemed promising called "Proxy Settings" which will allow me to enter in the following Hostname and Port. When I tried to enter the "..../proxy.pac" as the hostname it gave me an error stating "The hostname you typed is not valid."
Is there an app or something that will allow me to use my apps when connecting to my corporate wifi? Is it a proxy setting thing or a VPN thing? I am not sure. I am open to any and every idea so that I can use my phone's online features while connected to my company's wifi.
FYI - I have friends that have iPod touches and they are able to connect to the internet with some apps internet browsing and downloading apps, but they have a similar issue of not being able to use all of their apps as well. I believe they were able to put the "..../proxy.pac" address in their devices somewhere.
Thanks!
Any ideas? HELP!!!
Your compay could have blocked its use on WIFI?
i think the Corp have blocked the connection. Basically blacklist everything but certain site. Try to access facebook through the browser, if it goes through then i dont know. Of not then the Corp have things blocked.

CMD for ipconfig /release , ipconfig/renew ??

My problem again is that i cant connect to a second wireless router(no password needed for second router), the 1sth router its password protected (@ my work) ,then i come home and i cant connect because the IP from my work its not gone and theres no way to release/renew
I want to know if theres an app to emulate CMD like in windows (and not a computer needed to do it),i want to do it on my tf instead (dont tell me "turn off/on your router " please, i wont be asking on mcdonalds or burguer king if they can turn off/on their router )or any other place if they can do that so i can release my ip and get a new one
Thats what i want to avoid , so if theres some way to release /renew my ip (and no computer needed) then that will be great
I have revolver rom installed , but this PROBLEM was even on the stock rom ,so is not the rom or the 2 routers, my wifes ipod 4th gen connects right away and always renews ip at any place
Please help me
Thanks in advanced
jesesystem said:
I want to know if theres an app to emulate CMD like in windows (and not a computer needed to do it),i want to do it on my tf instead (dont tell me "turn off/on your router " please, i wont be asking on mcdonalds or burguer king if they can turn off/on their router )or any other place if they can do that so i can release my ip and get a new one
Click to expand...
Click to collapse
You can use terminal emulator for "CMD" window.
Just turning off your tablet will reset the wifi and it will scan for a new access point. Leaving the area of the AP at work should cause it to scan for a new one too. If you have hard coded a static IP address in your advanced wireless settings, pick up an app like WiFi Manager from the market to allow you to have multiple profiles and switch between them.
---------- Post added at 01:15 PM ---------- Previous post was at 01:13 PM ----------
gls9 said:
You can use terminal emulator.
Click to expand...
Click to collapse
Network settings require root to perform and there are nice apps that do point and tap to set it.
gls9 said:
You can use terminal emulator for "CMD" window.
Click to expand...
Click to collapse
Do you know how to release / renew ip with that program?
drowe said:
Just turning off your tablet will reset the wifi and it will scan for a new access point. Leaving the area of the AP at work should cause it to scan for a new one too. If you have hard coded a static IP address in your advanced wireless settings, pick up an app like WiFi Manager from the market to allow you to have multiple profiles and switch between them.
---------- Post added at 01:15 PM ---------- Previous post was at 01:13 PM ----------
Network settings require root to perform and there are nice apps that do point and tap to set it.
Click to expand...
Click to collapse
Both are DHCP enabled, so i dont know why it wont release it from previous routers , ive tried turning off/on both routers and tablet aswell and the problem persist.
With wifi manager i can make my TF to "release", or forget the las ip ?
Maybe I don't understand the problem, but can't you change wireless connections in the settings/wireless menu? Tap on the new connection?
sent from my cyanogen(mod) vision
gee one said:
Maybe I don't understand the problem, but can't you change wireless connections in the settings/wireless menu? Tap on the new connection?
sent from my cyanogen(mod) vision
Click to expand...
Click to collapse
i cant release the previous ip (my work , protected with password, dhcp enabled)
when i get home i have the last IP (from work), si i try to connect at my home router but i can see i have the ip form work, and theres no way i can release it to get a new onw from my home router.
i can acces my tf options to see what connections are on range and i can connect aswell, but the old ip form work wont dissapear and i cant acces internet or any other web content because i dont have a valid IP and there no way i can get rid of it
so i was asking if theres some way/app/etc etc to get the new ip working from my home router(not password protected)
but i think thats not the problem(open router), mi wifes ipod can connect everytime she gets home, its TF problem
If you need to get a new IP, turn on airplane mode, then turn it off. Simple as that. You're seriously overcomplicating this.
a.mcdear said:
If you need to get a new IP, turn on airplane mode, then turn it off. Simple as that. You're seriously overcomplicating this.
Click to expand...
Click to collapse
i have not tried that, i will take the TF to work today and se if that works
on a side note; im not overcomplicating anything, im trying to get help for something i dont know, im just a new TF user
thank you for the advice and i hope it works
Also, just in case, you may want to check that you don't accidentally have a static IP set on your device. Sometimes its easiest to avoid problems by simply deleting the network profile from your Transformer (or "forget" the network in Wifi Settings), and then attempt to re-connect again fresh.
a.mcdear said:
Also, just in case, you may want to check that you don't accidentally have a static IP set on your device. Sometimes its easiest to avoid problems by simply deleting the network profile from your Transformer (or "forget" the network in Wifi Settings), and then attempt to re-connect again fresh.
Click to expand...
Click to collapse
Its set to DHCP so i know thats not the problem, i guess the problem rely on the routers, maybe i need to add password to my home router and see if keep getting the same problem, but as i said before i will have problems on every open wireless network maybe
As alluded to, the work IP falls out of range and hunts for a new AP.
Do you have MAC filtering?
OT: Why do you have an open home net?
GasGuzz said:
As alluded to, the work IP falls out of range and hunts for a new AP.
Do you have MAC filtering?
OT: Why do you have an open home net?
Click to expand...
Click to collapse
i know it have to look for a new ip, but no its not doing it on my home network, thats why im having problems
as i said before, what am i gonna do when i try to connect to another open network ?? (ask them to turn off/on their routers , ask them to put password)
i dont know if this only happens with my router, i will try all the advices when i get home tonigth and see what happens
It’s (most probably) not the TF.
My work has both Open/Secured APs. It connects to the Secured as soon as it’s in range/awake, unless I manually hook it up to the Open. Same at Secured home, it connects no-mess/no-fuss.
How many Open nets do you ‘see’ at home?
GasGuzz said:
It’s (most probably) not the TF.
My work has both Open/Secured APs. It connects to the Secured as soon as it’s in range/awake, unless I manually hook it up to the Open. Same at Secured home, it connects no-mess/no-fuss.
How many Open nets do you ‘see’ at home?
Click to expand...
Click to collapse
just my network it's open, but my wifes ipod can connect/disconect as fast as you say with you network, it's just the TF not getting the new IP everytime i get home from work.
i was so freaking mad 2 days ago so i did a full wipe, that did the trick , i didnt have lot of apps that's why i did it , but i dont want to do it again and get all my apps lost one more time
nop !!!
none of the above advices worked , im so sorry for the guy saying i was overcomplicating this, and no , the airplane mode dindt solve it either
so i dont know wth can i do , the problem again is that i cant get a new IP, my last ip it's still not released (not even with airplane mode) , turnit off/on the device and tablet wont solve it either
i did the test with my wifes ipod (took it work then comeback)and it works as it should, just the TF doesnt work
so if i can do it with with terminal emulator (to release/renew IP) i will appreciate the step by step guyz
thanks in advanced
If you're using DHCP, under GNU/Linux the way is to launch the terminal emulator and run
Code:
dhclient -r
and then either restart the network interfaces (different between distros) or to run the DHCP client on the interface (in my tablets case, probably 'dhclient wlan0' without the quotes).
BUT!!! This being an Android tablet rather than a standard GNU/Linux system, has no dhclient program as far as I know. I have access to ifconfig, dhclient, etc by way of having Debian stable programs running in a chroot.
You might try disabling WiFi, forgetting the network, and reconnecting to it. The last router I had also had a way of getting rid of leases manually, either by telling it to tell the client to FO or deleting them all.
EDIT: Give or take specifics, I think the TF101 (or at least Prime) has dhcpcd. Try
Code:
dhcpcd -k wlan0
dhcpcd -n wlan0
to release and then renew. No promises if that will do jack though. You might also just try running 'dhcpcd wlan0' (without quotes).
For terminal emulators, go to the market or check if your ROM has one (Prime does).
Sent from my Transformer TF101 using Tapatalk
You really shouldn't have to go through any of this stuff. I'd say the system is borked, maybe the hardware, maybe the software. You could try flashing a new version or just take it back, show them you can't connect to their network and get a replacement. It really works as easily as we say and as easy as the wife's ipod. I would take it back or send it in for repair, I think you have a broken system.
Spidey01 said:
If you're using DHCP, under GNU/Linux the way is to launch the terminal emulator and run
Code:
dhclient -r
and then either restart the network interfaces (different between distros) or to run the DHCP client on the interface (in my tablets case, probably 'dhclient wlan0' without the quotes).
BUT!!! This being an Android tablet rather than a standard GNU/Linux system, has no dhclient program as far as I know. I have access to ifconfig, dhclient, etc by way of having Debian stable programs running in a chroot.
You might try disabling WiFi, forgetting the network, and reconnecting to it. The last router I had also had a way of getting rid of leases manually, either by telling it to tell the client to FO or deleting them all.
EDIT: Give or take specifics, I think the TF101 (or at least Prime) has dhcpcd. Try
Code:
dhcpcd -k wlan0
dhcpcd -n wlan0
to release and then renew. No promises if that will do jack though. You might also just try running 'dhcpcd wlan0' (without quotes).
For terminal emulators, go to the market or check if your ROM has one (Prime does).
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
with that code i get this
open_control : Permision denied
with dhclient -r i get this
dhclient : permision denied
im already rooted, my TF its the tf101
drowe said:
You really shouldn't have to go through any of this stuff. I'd say the system is borked, maybe the hardware, maybe the software. You could try flashing a new version or just take it back, show them you can't connect to their network and get a replacement. It really works as easily as we say and as easy as the wife's ipod. I would take it back or send it in for repair, I think you have a broken system.
Click to expand...
Click to collapse
well i cant do that , i bougth it from ebay , i dont think its the TF itself, maybe the router (but the ipod works :S )
i will try and see if it happens on some other open network, or just replace the modem

Got my GT7+ yesterday and have a couple questions. Brightness? WiFi?

Edit: This is the Galaxy Tab 7 Plus 4G w/ TMobile...
So far I am loving it. I have had a plethora of Android tablets, including the Galaxy Tab 10.1 (until yesterday), and the original 7" Tab. Here is an issue I have not run into thus far...
Issue 1: I like my brightness settings to be %100 all the time. I always (almost) have a power cable with me, so I'm not worried about the drain. I have the auto setting turned off as to keep it from adjusting on it's own. However, everytime I open the status menu with the brightness slider, it is down to about %90-%95. I can't get it to stay on full. Also, and even more annoying, every time I open the browser, the brightness drops to like %30'ish and I have to open the status menu and slide it back up. The browser is where I REALLY need the full brightness the most, and it's the biggest issue.
I noticed this out of the box, adjusted settings, nogo, so I factory reset, and same issue. This is leading me to believe this is just a setting or something I am missing. Any ideas?
Issue 2 (THE BIG ONE): This Tab 7+ can't see my work wifi. It connects to my wifi at home just fine (did last night at least), which is also WPA, but it doesn't even see the one at work. It acts like it isn't there. In fact, and this is probably important, it is not seeing any networks up here, and there are at least 10-15 that should be visible from my location in the building (all but a couple from other companies). My G2x (Android 2.3) is connected to my work wifi just fine, and it sees all the others around us, the the Tab 7+ right next to it sees none. I also turned on the wifi router on my phone, it will not see that one either. I've verified the wireless is enabled, as well as turning it off and on multiple times and many reboots, nogo... I need it to hit the wifi at work and home so it isn't sucking my 4G data, so this is a big issue for me.Any ideas? I'm at a loss...
Also, to answer before it's asked: Nope, it's not rooted. I may do this at some point (as I do most of my devices), but for the moment I want to leave it stock and not mess with it. These issues seem like they should be resolved/nonexistant in the stock ROM, so I shouldn't have to root to fix them. Please tell me if this is incorrect...
Thanks for any help, sorry for the long post...
(pardon typos, I'm at work and multitasking, no time to proofread)
on the brightness broweer tip. use a different browser. its a known issue that the stock browser automaticaly dims the screen.
otamctech said:
on the brightness broweer tip. use a different browser. its a known issue that the stock browser automaticaly dims the screen.
Click to expand...
Click to collapse
Thank you... You're right, it doesn't happen in Dolphin, however I am one of those weird people the really prefers the stock browser...
The biggest issue is the wifi not showing up. I am updating that issue with more info now...
what channel is the wireless network on? i had a similar problem on my windows laptop, it cannot see the wifi.. turned out that my wireless card(the driver actually) cannot see any wireless network beyond channel 12.. who knows you're having the same problem, might worth checking.
gingerboy92 said:
what channel is the wireless network on? i had a similar problem on my windows laptop, it cannot see the wifi.. turned out that my wireless card(the driver actually) cannot see any wireless network beyond channel 12.. who knows you're having the same problem, might worth checking.
Click to expand...
Click to collapse
Ours is on 6... Thanks though
for me it was the opposite, it could see my home wifi, but not my work.
only was to solve it was to setup a static ip at work for the GT7...
I called samsung, they said its a problem with some routers. No eta on fix other than static IP.
Shftup said:
for me it was the opposite, it could see my home wifi, but not my work.
only was to solve it was to setup a static ip at work for the GT7...
I called samsung, they said its a problem with some routers. No eta on fix other than static IP.
Click to expand...
Click to collapse
........
Just to chime in - I also have the same problem connecting to my work wireless network but I think because it uses a SEPARATE authentication scheme.
The way my office WLAN work is like this:
1). Connect to the WLAN with SSID "Office", no encryption password required
2). Once the Tab is connected, it WILL receive an IP address
3). Open up a browser (Dolphin, etc.) and try to go to any website (Google, etc.)
4). Instead of going to the website I typed in in no. 3, an authentication page will show up
5). I need to enter my Windows AD account and password
6). If its successful, then I can start browsing the Internet (but not going to the Internal network, that requires VPN access).
Step 3 is where the Tab FAILED to do so. It just doesn't want to get redirected to the authentication page.
lanwarrior said:
Just to chime in - I also have the same problem connecting to my work wireless network but I think because it uses a SEPARATE authentication scheme.
The way my office WLAN work is like this:
1). Connect to the WLAN with SSID "Office", no encryption password required
2). Once the Tab is connected, it WILL receive an IP address
3). Open up a browser (Dolphin, etc.) and try to go to any website (Google, etc.)
4). Instead of going to the website I typed in in no. 3, an authentication page will show up
5). I need to enter my Windows AD account and password
6). If its successful, then I can start browsing the Internet (but not going to the Internal network, that requires VPN access).
Step 3 is where the Tab FAILED to do so. It just doesn't want to get redirected to the authentication page.
Click to expand...
Click to collapse
Yep, same way for me at work. OP did you try to manually add the wireless info vs letting the tab "find" the access point?
lanwarrior said:
Just to chime in - I also have the same problem connecting to my work wireless network but I think because it uses a SEPARATE authentication scheme.
The way my office WLAN work is like this:
1). Connect to the WLAN with SSID "Office", no encryption password required
2). Once the Tab is connected, it WILL receive an IP address
3). Open up a browser (Dolphin, etc.) and try to go to any website (Google, etc.)
4). Instead of going to the website I typed in in no. 3, an authentication page will show up
5). I need to enter my Windows AD account and password
6). If its successful, then I can start browsing the Internet (but not going to the Internal network, that requires VPN access).
Step 3 is where the Tab FAILED to do so. It just doesn't want to get redirected to the authentication page.
Click to expand...
Click to collapse
One of the ones we have at work is the same, but not the one I primarily use. That is my backup lol...
otamctech said:
Yep, same way for me at work. OP did you try to manually add the wireless info vs letting the tab "find" the access point?
Click to expand...
Click to collapse
I did, nogo...
Also, here is a strange thing. About 2 hours ago it notified me there were wireless networks in range, and then showed me 2 random networks from another office. Suddenly, it saw nothing again. Then about 5 minutes ago, while I was in the bathroom ( ), it suddenly showed me ALL of the surrounding networks. Yay! I tried to connect to the one I use, it took my password, but never even attempted to connect. Then, they are gone. Now it doesn't see them.
What. The. Fuuuudge.

Disable New WiFi Feature in Android 5.1.1

Hello Everyone,
I recently upgraded to CM 12.1 and discovered that my WiFi won't automatically connect to my router anymore if it doesn't detect access to the internet (I'm in China and Google is Blocked). I believe this explains why this is happening as there is internet and having to manually connect each time is annoying at least Is there a way to disable this "new feature" ?
Regards,
Bob
In Settings, got to WiFi, press the menu button in the top right and there should be an Advanced settings section or something similar (sometimes varies based on ROM/Language). Then untick the Avoid poor connection option. This should resolve your problem. If not, you may not have the correct firmware for 5.1.1
I already have Avoid poor connections unchecked. Any other way to fix this?
Does anyone have any ideas? Any help would be appreciated. Thanks
Try disable mobile data before connect to wifi, maybe this way should help
Sent from my A0001 using Tapatalk
viper134 said:
Hello Everyone,
I recently upgraded to CM 12.1 and discovered that my WiFi won't automatically connect to my router anymore if it doesn't detect access to the internet (I'm in China and Google is Blocked). I believe this explains why this is happening as there is internet and having to manually connect each time is annoying at least Is there a way to disable this "new feature" ?
Regards,
Bob
Click to expand...
Click to collapse
I have the EXACT same problem - it really does happen because you're in China and the method of internet access testing is through Google servers blocked in here.
I'm still trying to figure out how to disable the test or maybe reroute the destination.
It would definitely be a temporary solution to make the VPN active 24/7 if you put it on the router instead of on the phone / computer etc.
Let us know if you find a solution!
Itai
this was a very popular and general problem for every Chinese user with google service device.
you have to root your phone and manually change the google server address to a local substitute site, or just turn off the google server detect.
the easiest way is to use an APK developed by Chinese to have all these things done in a click.
search NoExclamation Portal Server 1.5
+1
syzkk said:
this was a very popular and general problem for every Chinese user with google service device. you have to root your phone and manually change the google server address to a local substitute site, or just turn off the google server detect. the easiest way is to use an APK developed by Chinese to have all these things done in a click. search NoExclamation Portal Server 1.5
Click to expand...
Click to collapse
came here with a google search. this problem is generic to later android versions. i'm on cyanogenmod 12.1 which is i gather is android 5.1.
looking at DNS logs, it tries to access: http://connectivitycheck.android.com - which redirects to google and fails as it's blocked by the GFW.
just downloading the chinese apk to fix it... the link to it i found is: http://m.hiapphere.com/apk-org.foxteam.noisyfox.noexclamation
EDIT: so now got noexclamation the app running, but not sure it's doing anything. UI is in chinese, not sure what options to deal with and how. anyone have success with it?
EDIT2: it's like this: install the app. leave it at defaults where it's using the developers website for connectivity check. toggle it ON if it's not already (i believe needs root). reset network settings by toggling airline mode ON/OFFl. you're good.
however - conceptually better fix would is to take the "feature" OUT, not alter the server that it's checking the accessibility of. from the chinese thread, i gather this will get done by:
su
settings put global captive_portal_detection_enabled 0
this seems to survive reboot as well. problem solved, end of monologue!

Hotspot issues with Android Pie

I am having issues regarding Wifi hotspot on Pie.
1. My laptop find it very difficult to find the hotspot. Sometimes I have to restart the hotspot 2-3 times before the network shows up on my laptop. On Oreo, this was always instant and worked immediatly.
2. In the last few days using a hotspot from the phone and my laptop I have had issues regarding DNS/internet. Even though my laptop is connected to the hotspot network, it doesn't have any internet access. When browsing the web on my laptop, all DNS requests always fails. It happens whenever I try to navigate to a site and tries to ping a url from CMD. But if I try to ping a ip address, let say 1.1.1.1, that works fine! I can also use my browser on my phone without any issues at all. The laptop works fine on any other network and the phone works well on its own but the hotspot causes great problems. It sounds to me that for some reason when using a hotspot, DNS requests doesn't come through properly. Also, if I connect to a VPN on my laptop, eveything works, even DNS requests but my VPN is somewhat unreliable so it constantly disconnects so that is not a viable solution for me.
Anyone experiencing similar problems? It's really annoying because now I can't get any work done on my daily commute.
Edit: It sounds similar to these problems: http://piunikaweb.com/2018/08/22/go...hotspot-tethering-issues-after-android-9-pie/
baxtex said:
I am having issues regarding Wifi hotspot on Pie.
1. My laptop find it very difficult to find the hotspot. Sometimes I have to restart the hotspot 2-3 times before the network shows up on my laptop. On Oreo, this was always instant and worked immediatly.
2. In the last few days using a hotspot from the phone and my laptop I have had issues regarding DNS/internet. Even though my laptop is connected to the hotspot network, it doesn't have any internet access. When browsing the web on my laptop, all DNS requests always fails. It happens whenever I try to navigate to a site and tries to ping a url from CMD. But if I try to ping a ip address, let say 1.1.1.1, that works fine! I can also use my browser on my phone without any issues at all. The laptop works fine on any other network and the phone works well on its own but the hotspot causes great problems. It sounds to me that for some reason when using a hotspot, DNS requests doesn't come through properly. Also, if I connect to a VPN on my laptop, eveything works, even DNS requests but my VPN is somewhat unreliable so it constantly disconnects so that is not a viable solution for me.
Anyone experiencing similar problems? It's really annoying because now I can't get any work done on my daily commute.
Edit: It sounds similar to these problems: http://piunikaweb.com/2018/08/22/go...hotspot-tethering-issues-after-android-9-pie/
Click to expand...
Click to collapse
@thugslug @jbm76 I know you guys had an issue with hotspot. Is this the same problem?
yldlj said:
@[email protected] I know you guys had an issue with hotspot. Is this the same problem?
Click to expand...
Click to collapse
Point 2 sounds like it..
jbm76 said:
Point 2 sounds like it..
Click to expand...
Click to collapse
I can't remember what thread you wrote the adb commands that might fix it? Was going to direct him to that post.
yldlj said:
I can't remember what thread you wrote the adb commands that might fix it? Was going to direct him to that post.
Click to expand...
Click to collapse
Yep that fixed for me ??
adb shell settings get global tether_dun_required
If the result is "null" or "1"
adb shell settings put global tether_dun_required 0
Reboot phone
yldlj said:
@[email protected] I know you guys had an issue with hotspot. Is this the same problem?
Click to expand...
Click to collapse
His first problem I don't have, but it's the second that's the same issue as mine.
Obviously he's never searched or he'd have found my lengthy post not very far back.
The solution is there too.
I've never tried turning the VPN on to see if I get through access to the internet that way. I can't now as I've applied the fix @jbm76 found, and I don't really want to back out the fix to try it.
Definitely an area where pie has gone backwards. For those of us affected anyway.
Edit.... Sorry, I didn't note that this was a new thread.
My post is in the OB4 thread (which I at first thought this was). I'm tired and didn't look well enough.
jbm76 said:
Yep that fixed for me ?
adb shell settings get global tether_dun_required
If the result is "null" or "1"
adb shell settings put global tether_dun_required 0
Reboot phone
Click to expand...
Click to collapse
I will try these and report back.
baxtex said:
I will try these and report back.
Click to expand...
Click to collapse
If you get errors at the cmd prompt make sure usb debugging is set 'on' on the phone.
Followed the commands and it seemed to do the trick! Many many thanks!
baxtex said:
Followed the commands and it seemed to do the trick! Many many thanks!
Click to expand...
Click to collapse
[emoji3][emoji3]
Most people it works straight away. What region are you in?
Sent from my SM-P605 using Tapatalk
jbm76 said:
[emoji3][emoji3]
Most people it works straight away. What region are you in?
Sent from my SM-P605 using Tapatalk
Click to expand...
Click to collapse
Sweden.
I want to remember that it did work before, then I have to reflash Pie again and that's when the issues started.
I still wanted to say that I still suffering from the first problem, having difficulties actually finding the hotspot at all.
Its very odd. This problem has started to arise again. I tried running adb shell settings get global tether_dun_required again but I get the answer that it is 0 so that looks fine. I haven't updated anything since I had this problem the last time.
Folks,
To provide some more info and more things to try if you are rooted (I am in the US on T-Mobile). These instructions should also help you avoid tethering detection using the standard Android tethering options if you wish to.
1) Go into settings --> system --> developer options and turn off Tethering hardware acceleration. This will make sure all tethering routing is done by Android at the software level and not by Qualcomm's chipsets (so following steps will apply).
2) As suggested, put global tether_dun_required 0. Note you can also do this from a command prompt by typing su (get root access) and typing setting put global tether_dun_required 0. What this does is route tething traffic over the same APN as phone traffic, and not the hidden tethering APN that some carriers put on the sim cards.
3) Install Change TTL and in settings set it to run a boot and set TTL to 64. This ensures that all traffic leaving your phone will have a TTL of 64 and look like it is coming from the phone. (I am pretty sure this also set's ipv6 hop limit, as TMobile in the US is all IPv6 and this hides traffic.)
Reboot. If you still have trouble -- try Android's USB option to see if it is WiFi related vs Tethering system related.
- Verify that global tether_dun_required is still 0 after reboot (it should be if you are rooted).
- Delete the WiFi entry on your computer and re-join the phone's network -- sometimes it is on your computer's side.
Another thing to try is Easy Tether -- this is a good USB tethering option that won't use Android tethering system and it is guaranteed to route traffic over the phone's network APN.
If the issue is DNS, you can isolate that by manually putting a DNS (8.8.8.8) into the tethered computer to see if that is the issue.
Also, google search xda VPN Hotspot. This app has a ton of options to change Android's tethering routing even if you are not using a VPN. This may also help you figure something out. You can activate tethering, then go in here and turn on the wlan interface and it should route traffic directly to that (which should be happening anyways because of tether_dun_required = 0).
Good luck!
MW
MetroWestMA said:
Folks,
To provide some more info and more things to try if you are rooted (I am in the US on T-Mobile). These instructions should also help you avoid tethering detection using the standard Android tethering options if you wish to.
1) Go into settings --> system --> developer options and turn off Tethering hardware acceleration. This will make sure all tethering routing is done by Android at the software level and not by Qualcomm's chipsets (so following steps will apply).
2) As suggested, put global tether_dun_required 0. Note you can also do this from a command prompt by typing su (get root access) and typing setting put global tether_dun_required 0. What this does is route tething traffic over the same APN as phone traffic, and not the hidden tethering APN that some carriers put on the sim cards.
3) Install Change TTL and in settings set it to run a boot and set TTL to 64. This ensures that all traffic leaving your phone will have a TTL of 64 and look like it is coming from the phone. (I am pretty sure this also set's ipv6 hop limit, as TMobile in the US is all IPv6 and this hides traffic.)
Reboot. If you still have trouble -- try Android's USB option to see if it is WiFi related vs Tethering system related.
- Verify that global tether_dun_required is still 0 after reboot (it should be if you are rooted).
- Delete the WiFi entry on your computer and re-join the phone's network -- sometimes it is on your computer's side.
Another thing to try is Easy Tether -- this is a good USB tethering option that won't use Android tethering system and it is guaranteed to route traffic over the phone's network APN.
If the issue is DNS, you can isolate that by manually putting a DNS (8.8.8.8) into the tethered computer to see if that is the issue.
Also, google search xda VPN Hotspot. This app has a ton of options to change Android's tethering routing even if you are not using a VPN. This may also help you figure something out. You can activate tethering, then go in here and turn on the wlan interface and it should route traffic directly to that (which should be happening anyways because of tether_dun_required = 0).
Good luck!
MW
Click to expand...
Click to collapse
Hi and thank you for your post. It seems that windows had changed dns settings by its own to something invalid, so that is why it didn't work. However I am still having connection issues. Mainly I find it very difficult to connect my laptop (and other devices) to the hotspot of the Oneplus 6.
1) Done.
2) Done.
3) It was already set at 64 but I tried setting in to 64 again.
DUN is still 0 after reboot. I have also removed the wifi from my PC and changed name on the hotspot. Also tried both 2.4 and 5 Ghz. When the pc is connected the hotspot, I can ping google succesfully, so internet works but not DNS, all requests in my browser times out. I have also tried setting DNS to external providers in the phone (not sure if if affects the hotspot though). I looked at easy tether but root version was pretty expensive. I also googled XDA VPN Hotspot but I'm not sure which app you mean. Do you have the link?
Right now I'm just thinking of factory resetting the phone and installing the latest oxygen version (I'm still on 9.0.0.0).
Here is even more testing:
What I am experiencing is that there are grave problems trying to connect when in an area with a lot of wifi networks.
I live on the countryside and I thought I would try using hotspot for a couple of times. Thing is, at home, sharing hotspot from the phone to my laptop always works instantly, both on 5Ghz and 2.4Ghz. I might add that there are basically no wifi networks interfering where I live, except for my own. When I start my bus ride in the morning from my house to a city were I work, the hotspot usually works pretty good. But it's when I'm going home that I am start having problems. In the city, there is probably around 50-100 wifi networks when I start the ride home. And that's when it usually is impossible to connect the hotspot to the laptop. However, when leaving the city and entering the highway, it is usually easier. I have these connection problems on both 5Ghz and 2.4Ghz and if it does connect, 2.4 is hideous, it disconnects all the time.
So the conclusion for me is that it is having a very hard time connecting when there are a lot of wifi networks around. However, It never seemed to be a major problem on Oreo, only on Pie.
baxtex said:
Hi and thank you for your post. It seems that windows had changed dns settings by its own to something invalid, so that is why it didn't work. However I am still having connection issues. Mainly I find it very difficult to connect my laptop (and other devices) to the hotspot of the Oneplus 6.
1) Done.
2) Done.
3) It was already set at 64 but I tried setting in to 64 again.
DUN is still 0 after reboot. I have also removed the wifi from my PC and changed name on the hotspot. Also tried both 2.4 and 5 Ghz. When the pc is connected the hotspot, I can ping google succesfully, so internet works but not DNS, all requests in my browser times out. I have also tried setting DNS to external providers in the phone (not sure if if affects the hotspot though). I looked at easy tether but root version was pretty expensive. I also googled XDA VPN Hotspot but I'm not sure which app you mean. Do you have the link?
Right now I'm just thinking of factory resetting the phone and installing the latest oxygen version (I'm still on 9.0.0.0).
Here is even more testing:
What I am experiencing is that there are grave problems trying to connect when in an area with a lot of wifi networks.
I live on the countryside and I thought I would try using hotspot for a couple of times. Thing is, at home, sharing hotspot from the phone to my laptop always works instantly, both on 5Ghz and 2.4Ghz. I might add that there are basically no wifi networks interfering where I live, except for my own. When I start my bus ride in the morning from my house to a city were I work, the hotspot usually works pretty good. But it's when I'm going home that I am start having problems. In the city, there is probably around 50-100 wifi networks when I start the ride home. And that's when it usually is impossible to connect the hotspot to the laptop. However, when leaving the city and entering the highway, it is usually easier. I have these connection problems on both 5Ghz and 2.4Ghz and if it does connect, 2.4 is hideous, it disconnects all the time.
So the conclusion for me is that it is having a very hard time connecting when there are a lot of wifi networks around. However, It never seemed to be a major problem on Oreo, only on Pie.
Click to expand...
Click to collapse
Seems more like WiFi / Computer related than phone. Did you try USB tethering? Is DNS get manually set in your computer by something else you installed?
MetroWestMA said:
Seems more like WiFi / Computer related than phone. Did you try USB tethering? Is DNS get manually set in your computer by something else you installed?
Click to expand...
Click to collapse
USB tethering works fine, dns as well. Its just the connection, it is very difficult to connect anything to the Oneplus 6 in wifi crowded areas.
Will this effect Bluetooth tethering too? Or is there another command for that? Dang built in hot spot get horrible speed after this setting is set, at least be on T-Mobile.
Hi guys,
I also face a strange issue, the connected devices to the hotspot it keeps disconnected after some time.. 1min, 5min, 15min...is random and annoying. Dose anyone face this issue to? Tried diferent fixes but nothing works, it remained to do a factory reset to see if the problem persist..
khrisstyan said:
Hi guys,
I also face a strange issue, the connected devices to the hotspot it keeps disconnected after some time.. 1min, 5min, 15min...is random and annoying. Dose anyone face this issue to? Tried diferent fixes but nothing works, it remained to do a factory reset to see if the problem persist..
Click to expand...
Click to collapse
Read this thread. Workaround in here.

Categories

Resources