skellum / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
0 stars 0 forks source link

PC loses IP address #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. enable tethering
2. enable client security
3. join PC via ad-hoc
4. use connection for certain length of time

What is the expected output? What do you see instead?
Usage of ad-hoc link till manually torn down

What version of the product are you using? On what operating system?
0.95 on android JK 1.43

Please provide any additional information below.
The fix is to to turn tethering off, disconnect from the ad-hoc network on
the PC. Enable tethering and reconnect to the adhoc network on PC. PC will
remain attached, is seen as an allowed client but IP address will be
0.0.0.0. Ipconfig /renew will not work. Not 100% sure if laptop or
wifitether issue.

Laptop = Dell latitude 630 running winXP SP3. Running standard Dell wifi
drivers. Intel Pro chipset and drivers.

Original issue reported on code.google.com by dje...@gmail.com on 23 Mar 2009 at 12:21

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Updated my wifi drivers from the Dell site and matched the ad-hoc channel on the
phone and laptop. Had the same issue with 0.93. Prolly my laptop then...

Original comment by dje...@gmail.com on 23 Mar 2009 at 1:58

GoogleCodeExporter commented 9 years ago
I have the same issue... except not using a laptop... I'm using a Linksys 
WRT54GL
running DD-WRT v24-sp2 as a WiFi bridged client connected to the AdHoc on the 
G1.
When it works, it works like a charm (I can share my 3g to my entire LAN :-D 
)...
however, every so often it loses the IP (it goes to 0.0.0.0) and the only way to
bring it back is to restart tethering and power cycle the Linksys router.

Original comment by Gad.Krum...@gmail.com on 24 Mar 2009 at 12:50

GoogleCodeExporter commented 9 years ago
To add to my comment... I'm having this issue while using andTether:
Version Code: 4
Versuion name: 0.9.3

Original comment by Gad.Krum...@gmail.com on 24 Mar 2009 at 12:54

GoogleCodeExporter commented 9 years ago
I think it has to do with the fact that the phone goes to "sleep" mode and the
processor gets clocked down for minimal use and traffic gets lost... I upgraded 
to
latest svn snapshot (r89, Version Code:5, Version name: 0.9.5)  and still had 
the
same issue... once I set my screen to never time out, it didn't happen again... 

Original comment by Gad.Krum...@gmail.com on 24 Mar 2009 at 1:41

GoogleCodeExporter commented 9 years ago
I'm on the latest Wifi drivers, but the issue persists. All the other wifi 
networks I
connect to with my laptop do not display this behaviour. The solution for me 
now is
to disable tethering then enable it again. My laptop immediately connects and 
obtains
a new IP address. I have turned off the 'screen timeout' to no avail.

Original comment by dje...@gmail.com on 24 Mar 2009 at 1:55

GoogleCodeExporter commented 9 years ago
Have you guys tried to change the channel (0.9.5 supports channel-changes)? 
Maybe
interference with other wifi-accesspoints. Please use for example netstumbler 
to find
a free/clean frequence (don't forget they are overlapping ... keep enough 
distance
from dirty channels).

Please report back if that helps ...

Original comment by harald....@gmail.com on 24 Mar 2009 at 5:58

GoogleCodeExporter commented 9 years ago
I set the channel to 2 as 1 9 and 11 were in use. Tried 13 or 14 as well but 
they're
not available on my laptop for ad-hoc use

Original comment by dje...@gmail.com on 25 Mar 2009 at 2:12

GoogleCodeExporter commented 9 years ago
Mmmh ... so that didn't help?!
Which powermode have you set? Is wakelock enabled or disabled?
How oftes does this happen within an hour?

I've forgotten to ask ... are you using shopsavvy?

Original comment by harald....@gmail.com on 25 Mar 2009 at 6:04

GoogleCodeExporter commented 9 years ago
Power mode, wakelock? It happens about 20 to 3 times an hour depending on how 
quick I
am to notice and restart the tethering.

Just checked, wakelock was turned off. Not sure if I did that or what, what 
does it
do? Power mode is active. Changing it to auto made no difference.

I am using shopsavvy, what's the link?

Original comment by dje...@gmail.com on 25 Mar 2009 at 7:21

GoogleCodeExporter commented 9 years ago
Shopsavvy turns wifi on and off every few minutes!

Please read this:
http://code.google.com/p/android-wifi-tether/wiki/FAQ
"What keeps killing tethering or turning wifi/GPS on during tether?"

and/or:
http://forum.xda-developers.com/showthread.php?t=487173&page=11

If unsure please uninstall shopsavvy and try again!

Original comment by harald....@gmail.com on 25 Mar 2009 at 7:36

GoogleCodeExporter commented 9 years ago
Boo me for not checking the FAQ...

Will check this tmr when at work and let you know, thank you for the suggestion.

Original comment by dje...@gmail.com on 25 Mar 2009 at 10:44

GoogleCodeExporter commented 9 years ago
Actually, here's an idea. Does ShopSavvy obey the system setting of "Use 
Wireless 
Networks" that turns on and off using mobile networks and WiFi to detect the 
location. If it does, why don't we just add a setting to turn than option on or 
off 
when tethering starts. This might work for future/other applications that do 
this 
too. 

Unless of course ShopSavvy is running their own code to activate WiFi and find 
location. In that case, just ignore everything I just said.

Original comment by mta...@gmail.com on 26 Mar 2009 at 12:16

GoogleCodeExporter commented 9 years ago
Ideally shopsavvy should include a switch to use gps, etc. but not wifi for 
finding
ones location. I see no point in shopsavvy turning wifi off if it wasn't on in 
the
first place. Maybe this has something to do with Android not seeing 
wifitether-ing as
using wifi for connectivity so shopsavvy can't either and thus thinks it's ok 
to turn
wifi on and off...

Original comment by dje...@gmail.com on 26 Mar 2009 at 12:46

GoogleCodeExporter commented 9 years ago
Shopsavvy + wifi related link:
http://www.newlaunches.com/archives/skyhook_adds_wifi_support_to_shopsavvy_appli
cation_for_android_phones_.php

Original comment by dje...@gmail.com on 26 Mar 2009 at 12:54

GoogleCodeExporter commented 9 years ago
Shopsavvy, setting changed. Now wifitether link is rock solid... Thank you 
harald.mue.

Now how to get shopsavvy to play nice with wifitether?

Original comment by dje...@gmail.com on 26 Mar 2009 at 2:09

GoogleCodeExporter commented 9 years ago
I have no idea how we could handle that shopsavvy-issue ... 

Please give us a good rating on market - we are doing that all beside our jobs 
and/or
studies (and we don't make money out of it).

And ... one last thing I have to say ... support opensource-software and not 
copycats!

Original comment by harald....@gmail.com on 26 Mar 2009 at 6:14

GoogleCodeExporter commented 9 years ago
Disregard my previous comment. Turns out that ShopSavvy does NOT obey the system
setting and will use WiFi location finding regardless.  So, back to thinking...

Original comment by mta...@gmail.com on 26 Mar 2009 at 6:50

GoogleCodeExporter commented 9 years ago
Hmmm, went to 0.96 and turned WEP on (128bit). Issue came back, turned WEP off 
and
now it's all stable again.

Original comment by dje...@gmail.com on 3 Apr 2009 at 10:00

GoogleCodeExporter commented 9 years ago
I keep losing the net portion of the connection when i use the data encryption. 
my
laptop still shows as being connected but i loose net every 15-20 mins. I 
currently
have ADP 1.1 RC33 on my phone. Do i need to update it in order to fix this and 
use
the BT connection i heard about? if so how do i go about updating it and 
keeping it
with root?

Original comment by psodestr...@gmail.com on 5 May 2009 at 5:36

GoogleCodeExporter commented 9 years ago
i dunno how to edit coments here aside from deleting them but I'm not sure if 
its ADP
1.1 or if its RC33 as my build says RC33 but firmware version says 1.1. i'm not 
sure
which is the part i need to look at.

Original comment by psodestr...@gmail.com on 5 May 2009 at 6:27

GoogleCodeExporter commented 9 years ago
Check if you have got Shopsavvy, if so then goto: Settings >> Privacy >> Find my
location. And turn it off. It worked fine after I did that on RC9. Though 
truthfully
encryption didn't work for me on 0.96. Now on 0.97 waiting for it to start 
working
again with JF1.5 as I don't like anetshare (my cisco vpn doesn't last longer 
than 30
secs and a good deal of packet loss)

Original comment by dje...@gmail.com on 6 May 2009 at 9:51

GoogleCodeExporter commented 9 years ago
I have 1.51 on G1 dev phone cupcake and WEP encryption set up.  The PC (Windows 
XP
SP3) loses it's IP address every now and then (every 15 - 20 mins). The IP 
address is
shown as 0.0.0.0 in the PC Intel Pro/Set wireless dialog. Pressing disconnect 
and
connect buttons fixes this problem for a while. 

Original comment by kirmo.uu...@gmail.com on 23 Jul 2009 at 8:54

GoogleCodeExporter commented 9 years ago
@kirmo.uusitalo:
Could you please try to disable wep-encryption? What happens?

Original comment by harald....@gmail.com on 23 Jul 2009 at 11:49

GoogleCodeExporter commented 9 years ago
When the wep encryption is turned off, the problem doesn't seem to occur.

Original comment by kirmo.uu...@gmail.com on 23 Jul 2009 at 6:44

GoogleCodeExporter commented 9 years ago
I've noticed the same thing, when wep is enable the connection will randomly 
drop
then reconnet.

When the wep encryption is turned off, the problem doesn't seem to occur.

Original comment by parro...@gmail.com on 25 Jul 2009 at 4:02

GoogleCodeExporter commented 9 years ago
Ok, i was able to reproduce such a reconnect with my dell inspiron 510m - only 
one
within 1,5 hours. I've changed some values in wpa_supplicant.conf and was not 
able to
reproduce that anymore (maybe just luck).

Could you guys try ...
http://android-wifi-tether.googlecode.com/files/signed_andTether_1_52-pre2.apk
and report if that helped?
Thanks.

Original comment by harald....@gmail.com on 25 Jul 2009 at 8:39

GoogleCodeExporter commented 9 years ago
Issue 115 has been merged into this issue.

Original comment by harald....@gmail.com on 26 Jul 2009 at 6:54

GoogleCodeExporter commented 9 years ago
I just downloaded and istalled signed_andTether_1_52-pre2.apk.
This version seems to be working worse than the 1.51 version with WEP 
encryption.
The web seems to be very slow - I suspect some of the data packets seem to get 
lost
if WEP encryption is enabled. 

I gave up testing as http://www.speedtest.net/ always claimed "Unable to 
download
latency test file". 

When I disabled WEP encryption I got 1.6Mbit/s download rates and everything 
works fine.

If this is a hard to fix error would it be feasible to remove this feature and 
create
WPA encryption instead? 

AFAIK WEP encryption has its limitations compared to WPA in terms of security. 

Original comment by kirmo.uu...@gmail.com on 27 Jul 2009 at 6:03

GoogleCodeExporter commented 9 years ago
I've done some testing using netperf (http://www.netperf.org).

<android> ---- wifi/ad-hoc ---- <client>

Result: transfered ~2,2GB in 60 minutes -> average throughput 4,8 Mbit/s.
(wep-encryption enabled)
No reconnect, no connection-drops ... nothing!

This is a performance-test for the adhoc-network (with enabled wep-encryption). 
When
testing against speedtest.net the bottleneck will be the mobile-data-connection.
Anyway ... I can't reproduce a low troughput (caused by wep-encryption - got 
nearly
same results with disables encryption) and/or connection drops at all.

test-environment:
* G1 - ADP1.5-firmware (kernel:
http://android-wifi-tether.googlecode.com/files/adp-1_5-kernel-update.zip)
* Client: Ubuntu 9.04 - RaLink RT2561/RT61 rev B 802.11g
* netperf version 2.4.5

If you recognize bad throughput and/or connection drops please provide 
additional
information (firmware, device, operating system, wifi-network-card type, ...). 
As
already mentioned I'm not able to reproduce ...

Regarding WPA please see:
http://code.google.com/p/android-wifi-tether/issues/detail?id=97

Original comment by harald....@gmail.com on 28 Jul 2009 at 9:46

GoogleCodeExporter commented 9 years ago
I am having this same issue when I use an iPhone 2G's wifi to connect to a G1 or
MyTouch that is running android-wifi-tether with Cyanogen's ROM.  If encryption 
is
disabled then it works fine even with access control/mac address filtering on.

I tried the same thing using a 2nd generation iPod Touch and it HOLDS the 
connection
with encryption ENABLED on android-wifi-tether even though the iPod Touch was
restored with the same apps/settings as the iPhone 2G using iTunes.

Not sure if there are different drivers running on the iPhone 2G than the 2nd
generation iPod Touch that cause a problem holding a WEP connection to an ad-hoc
network.  The iPhone 2G has no issues holding a connection to other wifi
networks/access points and even holds a connection to a WEP encrypted ad-hoc 
network
set up using a PC & wireless USB adapter & internet connection sharing under 
Windows
7.  Perhaps someone can try this with an iPhone 3G or iPhone 3GS with
android-wifi-tether and post their results here.

Original comment by ls.one.0001@gmail.com on 19 Oct 2009 at 10:57

GoogleCodeExporter commented 9 years ago
I can't reproduce such connection drops at all (with enabled wep-encryption). 
This is
probably a client-related issue - maybe some clients have problems (combination 
of
adhoc-networks and wep-encryption).

Original comment by harald....@gmail.com on 20 Oct 2009 at 10:49

GoogleCodeExporter commented 9 years ago
I think you are probably right but I can't explain why an iphone 2g can hold a 
connection to a wep ad 
hoc network running on a pc and not to a rooted android phone. 

Original comment by ls.one.0001@gmail.com on 20 Oct 2009 at 3:16

GoogleCodeExporter commented 9 years ago
Could you please try to replace wpa_supplcant.conf
(/data/data/android.tether/conf/wpa_supplicant.conf) with attached file and try 
again?

Commands to do so:
adb push wpa_supplicant.conf /data/data/android.tether/conf/.

If added a parameter "wep_tx_keyidx" - but I have no idea if that helps or not.

Original comment by harald....@gmail.com on 20 Oct 2009 at 3:41

Attachments:

GoogleCodeExporter commented 9 years ago
I replaced the conf file using root access through the terminal and the cp 
command
since I don't have the SDK/ADB on my machine and I noticed that it broadcasts 
the
SSID as G1Tether with the and uses the default password abcdefghijklm 
regardless of
what I have under settings.  In fact if I enable encryption it disables the 
check
mark next to it if I go back to check the settings but it still broadcasts 
G1Tether
with WEP encryption using the default password but this might have been what you
intended for the test?

Anyways, same result, drops the connection/IP after a short while.

Original comment by ls.one.0001@gmail.com on 20 Oct 2009 at 11:36

GoogleCodeExporter commented 9 years ago
I'm also experiencing this problem. Disconnect interval is variable but it is 
quite
frequent. Any updates? I've had this issue through multiple versions of the 
tether app.

Original comment by gabe.sim...@gmail.com on 7 Dec 2009 at 3:23

GoogleCodeExporter commented 9 years ago
Can someone help me connect my iPhone to HTC Hero using the WiFi tethering?
It can't connect at all for some reason.  
Thanx in advance 

Original comment by Misho....@gmail.com on 8 Dec 2009 at 1:04

GoogleCodeExporter commented 9 years ago
The only way I've gotten this to work is to disable encryption and just use MAC 
address filtering as a way 
of controlling access. 

Original comment by ls.one.0001@gmail.com on 17 Dec 2009 at 5:01

GoogleCodeExporter commented 9 years ago
I've just installed this on a rooted Desire, following Paul@Modaco's guide. 
Everything seemed to be going fine, but the PC (WinXP SP3) doesn't pick up an IP
address, or even seem to think there's a DHCP server on the phone at all.  
Also, when
I did a scan of the services, I also didn't see the bluetooth service after I 
turned
it on from the PC, so unfortunately, I'm not getting any use from this app, 
sorry.

Original comment by sead...@gmail.com on 29 Apr 2010 at 10:28

GoogleCodeExporter commented 9 years ago
I am having what seems like the same problem on my Droid 2 Global.
When connecting a PC, within a minute the connection dies and I have to reboot 
the phone to get Wireless Tether to work again. (Hitting the "Stop tethering" 
button never completes).

Connecting an iPod to it will eventually also "crash" tethering, but it takes a 
lot longer.

It seems to me it has to do with a lot of concurrent TCP connections.
If I open a lot of browser tabs on my PC, tethering dies almost immediately.
On the other hand, if I use a VPN on the PC (so all connections will be 
tunneled through one socket) I have so far been unable to break it.

Original comment by jol...@gmail.com on 9 Jan 2011 at 4:22

GoogleCodeExporter commented 9 years ago
I'm also experiencing this issue. I was tethering to my phone at the same time 
as another person and we both lost our connections at the same time. I was 
running skyraider 3.5 and we're both on os x 10.6 laptops.

Original comment by Jonbeesh@gmail.com on 7 Feb 2011 at 6:16

GoogleCodeExporter commented 9 years ago
Are there CLASS / VENDOR settings on android DHCP ?

Original comment by lfu8b4sk...@spambox.us on 10 Sep 2011 at 5:02