USB Wifi Tethering issue using latest CM - Android Software/Hacking General [Developers Only]

Hey all,
having a bit of trouble holding a USB tethered Wifi connection with my G1. It has the latest CM installed. When I leave it connected for a period of time, the USB connection (not the Wifi) will drop out, leaving me with an inability to access the internet on my PC (still works fine if accessing internet via phone browser).
I am currently at a loss as to what it could be... I have the screen set to not timeout, so it is not the Wifi connection dropping. Any thoughts?

Related

Wireless advice

Hello all,
I have just got a Sony X1. It connects to my home wireless fine. My question is once its connected will it automatically do all browsing/downloading/email through the wireless or do I have to tell it?
Im just worried because my daily 3G usage is very high (nearly 10mb yesterday) even though I try and only download large files when connected to my wireless. I want to make sure its not downloading through 3G when the wireless is switched on..
Thanks!
default is using the most accessible connection...
if wifi is connected it won't try to access the internet thru 3G..
you're safe as long as you make sure your wifi is connected and you have an active internet connection
In my case I've seen many times that the phone still uses the 3G connection even if WiFi is available and connected (maybe for power saving reasons?). So I always disconnect the 3G connection when WiFi is active. Currently I use Mortscript to do this for automatically.
If this problem occurs, you can also use a small useful app called NoData
(can be found in the forum)

tethering disconnects

My tethering connection via USB or WIFI hotspot has been disconnecting lately, and it's usually after transferring between 40-50MBs.
Tethering stays consistent and does not disconnect if connecting to my works VPN, via a new network connection in XP/Windows 7.
Can anybody explain why this happens?
Thanks,
--

Wifi stops working after being left for a while (still connected)

Having an issue with the Tab 2 where you go to pick it up and start browsing after it has been sitting around a while (not sure if the time matters, but it seems like after sitting for most of the day) and the wifi is still connected, but nothing works than needs data. It acts like it would if you had not internet connection. Toggling the wifi off and on will fix the issue and notificaitons and emails start pouring in.
Anyone else have this problem? I found a similar issue on the 7.7 forums but nobody reported a solution and I am not even sure if it would have worked on the Tab 2 anyways. I am thinking about making a script that toggles the wifi automatically if it detects it can't connect to the internet. But that is a little ridiculous needing to do that. It shouldn't be losing connection in the first place.
Hi Pirate
it's a bit depending on the ROM you have installed - but since Android 4 you have a quite reliable setting. The default behavior of Android devices is to deactivate the wifi connection when it goes to sleep.
Some ROMs don't recognize the disconnection and the switch/button still shows "Wifi on" although disconnected.
First step: go to settings / wifi settings, hit the menu button (top right three dots) and check the advanced settings.
Somewhat like "Keep WLAN active in standby" - set this to always.
That should solve it already under android 4.x
If this doesn't help, look into Play Store - search for "wifi keep alive". But for the SGT 2 you shouldn't need it
Greetz - Chris
It was already set to "Always" so I don't think that will help. I will look at that app to see what it does.
Sent from my Nexus 7 using Tapatalk HD
wifi turns off when not in use to save battery. I think it might be a default even if you have it set to always on.
guncrasher said:
wifi turns off when not in use to save battery. I think it might be a default even if you have it set to always on.
Click to expand...
Click to collapse
The problem is that it never comes back on. Well it shows the wifi icon and the signal and everything but it just doesn't have any data connection. Any apps that use data act like wifi is off. The only way to get it to start working again is to toggle wifi or reboot. I also forgot to mention it is the stock ROM, only rooted. It got the OTA a few days ago too and it has happened since then.
You're not alone
Skurvy_Pirate said:
Having an issue with the Tab 2 where you go to pick it up and start browsing after it has been sitting around a while (not sure if the time matters, but it seems like after sitting for most of the day) and the wifi is still connected, but nothing works than needs data. It acts like it would if you had not internet connection. Toggling the wifi off and on will fix the issue and notificaitons and emails start pouring in.
Anyone else have this problem? I found a similar issue on the 7.7 forums but nobody reported a solution and I am not even sure if it would have worked on the Tab 2 anyways. I am thinking about making a script that toggles the wifi automatically if it detects it can't connect to the internet. But that is a little ridiculous needing to do that. It shouldn't be losing connection in the first place.
Click to expand...
Click to collapse
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
I know this isn't super helpful but I had the same bug you describe on the previous version of carbon. When I updated to the latest it seems to have stopped.
Sent from my GT-p5113 using xda premium
I had similar issue with my aTab Phone 4 and TP-Link TL-WR941ND (OpenWRT)
After disabling WMM capability in the router the problem disappeared!
Change router lease time to "2weeks"
Sent from my GT-I8190N using XDA Premium 4 mobile app
Same issue.
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
Same issue. also using connectify and also tried all things you have described. If you find any solution please let me know.
I had the same problem on my Huawei Honor. You need to set static IP in wifi settings (when connecting to AP, press "show advanced settings").
Mine settings were:
IP adress: 192.168.1.75 (make sure other devices are not connected with this IP)
Gateway: 192.168.1.254 (it could be different. Use the same as you're using to connect to your router)
Network prefix length: 24
DNS 1: 8.8.8.8
DNS 2: 4.4.4.4
No option for static IP in connectify
jopsinas said:
I had the same problem on my Huawei Honor. You need to set static IP in wifi settings (when connecting to AP, press "show advanced settings").
Mine settings were:
IP adress: 192.168.1.75 (make sure other devices are not connected with this IP)
Gateway: 192.168.1.254 (it could be different. Use the same as you're using to connect to your router)
Network prefix length: 24
DNS 1: 8.8.8.8
DNS 2: 4.4.4.4
Click to expand...
Click to collapse
There is no option in connectify for static IP and in USB wifi dongle also there is no option to set static IP.
Help!
---
---
Same issue
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
1. I have had the exact same issue for (atleast) the past 2 years. Have survived by repeatedly turning wifi on and off.
2. I too use connectify. This issue doesnt seem to happen on every wifi connection (just like your case). Even more specifically, it seems to happen ONLY when I connect my phone to the hotspot created via my laptop (connectify).
3. Even when the internet is actually working, some apps do not seem to recognise that(take some time to realize it is working), while others are able to connect instantly. Specifially, whatsapp is unable to send/receive messages for about 1-2 mins, after which I receive a whole bunch of messages at once.
This does not seem to be an issue due to connectify as well. I have tried creating a hotspot from my laptop without using connectify as well, but unfortunately, nothing changed. Further, this does not happen when my phone connects to a hotspot created via connectify by some other pc. The wifi and internet work perfectly fine when connected to a hotspot created via my friends computer.
Further, this problem happens only when a mobile connects to the hotspot. Doesn't occur when another laptop/PC connects (not sure about tablets).
I have looked into every nook and cranny on the internet, explored every forum for any working solution, but have been unsuccessful. In fact, this is the first place where I saw the exact same problem as mine, and was wondering if you have found any solution to it .
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
I'm having the exact same prob on my ZTE Grand x V 970
It started when i had kitkat and i couldnt even "fix it" restarting the wifi, i had to reset the phone in order to have my wifi work for like 2-5 mins and then stops recieving data, tried to reconnect and stays on turning on wifi.. Now i changed to the stock Rom and the problem is still there but at least now i can "fix it" restarting the wifi connection until certain point.
Issue sharing internet with Connectify from PC
Go to:
Control Panel\Network and Internet\Network and Sharing Center
On the left column, click on CHANGE ADAPTER SETTINGS.
You should be in: Control Panel\Network and Internet\Network Connections by now.
Then click on: Microsoft Virtual Miniport Adapter and click on Properties, then click on the 'Configure' button in the 'Networking' tab. From this window, go to the 'Power Management' tab and uncheck 'Allow the computer to turn off this device to save power'.
This works for me. Try this out
If this doesn't work further, you can try out mHotspot for the same purpose.
I've had the same issue, with the wifi saying it's connected even though it isn't.
This thread is 4 years old and this issue still hasn't been fixed. What a shame.
Same issue here on OnePlus 3 even after factory reset.
I have this same problem after the security patch Mid March to Jan 1, 2019. The WIFI doesn't show in the top status bar, but toggling wifi off/on fixes it till the next overnight. I did make one change to my wireless about that same time and that was moving the min connect speed from 6Mbps to 12Mbps to help with bandwidth issues being cause by devices using low speeds and having several SSID broadcast. My S7 and Tab A both work fine - so I think it was something in the security patch.

USB wifi tethering is really annoying to enable, but my oneplus 5T does it easy?!

As in the title, I'm finding it very annoying just to share my phone's wifi connection to my pc via usb tethering. My oneplus 5t just does it, no need for some stupid workaround. The 7 pro is forcing the wifi to disconnect upon enabling tethering. I found a workaround, but i feel like it's just a stupid bug.
The "bug" is going in the hotspot and tethering settings, first having my usb connected. Then enabling usb tethering (it will kill wifi), then turn wifi back on.. Which still leaves usb tethering on. Not an ideal way just to enable wifi tethering..
In most cases you cannot have both WiFi (on the phone itself) and USB tethering activated at the same time. The reason is quite logical from the standpoint of the phone...it generally uses WiFi for its own internet access...at times...and it uses WiFi to share internet access with an external device like a laptop. So the phone can get confused when you use USB tethering to share an internet connection with a laptop and then turn on WiFi also...the phone is not sure what you are trying to do.
jaseman said:
In most cases you cannot have both WiFi (on the phone itself) and USB tethering activated at the same time. The reason is quite logical from the standpoint of the phone...it generally uses WiFi for its own internet access...at times...and it uses WiFi to share internet access with an external device like a laptop. So the phone can get confused when you use USB tethering to share an internet connection with a laptop and then turn on WiFi also...the phone is not sure what you are trying to do.
Click to expand...
Click to collapse
Try VPN hotspot from play store, it allows you to share your Wi-Fi, I use it for that purpose. Use the repeater option, and you can access configuration in the top right corner.
JhinCuatro said:
As in the title, I'm finding it very annoying just to share my phone's wifi connection to my pc via usb tethering. My oneplus 5t just does it, no need for some stupid workaround. The 7 pro is forcing the wifi to disconnect upon enabling tethering. I found a workaround, but i feel like it's just a stupid bug.
The "bug" is going in the hotspot and tethering settings, first having my usb connected. Then enabling usb tethering (it will kill wifi), then turn wifi back on.. Which still leaves usb tethering on. Not an ideal way just to enable wifi tethering..
Click to expand...
Click to collapse
You can't tether your Wi-Fi through USB, and if you figure that out, let me know
jaseman said:
In most cases you cannot have both WiFi (on the phone itself) and USB tethering activated at the same time. The reason is quite logical from the standpoint of the phone...it generally uses WiFi for its own internet access...at times...and it uses WiFi to share internet access with an external device like a laptop. So the phone can get confused when you use USB tethering to share an internet connection with a laptop and then turn on WiFi also...the phone is not sure what you are trying to do.
Click to expand...
Click to collapse
One would use wifi usb tethering when: You want to share an WIFI (as opposed to usually slower Data) internet connection with a computer that has horrible connectivity.
blas4me said:
You can't tether your Wi-Fi through USB, and if you figure that out, let me know
Click to expand...
Click to collapse
The bug part already shows the workaround i had to use to share wifi through USB.
It's annoying to me because the oneplus 5T does it instantly.

need a way for a pc connected via android usb tethering to connect with other device

So i have a pretty complicated network setup right now due to my normal home internet dying and technicians never coming to fix it, so i'm now using my phone on 4G, use the wifi hotspot on that phone, go downstairs, use another phone to connect to that hotspot and use usb tethering to get internet on my pc.
The issue right now is that i can't seem to be able to communicate with my desktop pc (connected by usb tether) with my laptop (connected on wifi hotspot)
any idea on what software i could use to fix that?

Categories

Resources