alex1491163117 / android-wifi-tether

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

HTC Legend could connect but can't browse the Internet #676

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which device (manufacturer, type)?
HTC Legend

Which firmware is installed?
WhiteTigerDK Rev. 0.3

What version of wireless tether are you using?
wireless_tether_2_0_5-pre11.apk

What steps will reproduce the problem?
1.Install the APK on the phone
2.turn on access control
3.link windows 7 based pc with the phone

What is the expected output? What do you see instead?
I expected to browse internet on my pc. and I can't
I can get IP address via DHCP. but can't ping the gateway.

Please provide any additional information below.

The Config file in phone doesn't met the parameter which I've set on the phone 
through the GUI
adb shell cat /data/data/android.tether/conf/tether.conf
device.type=nexusone
tether.mode=wifi
tether.fix.persist=false
tether.fix.route=false
wifi.interface=eth0
wifi.essid=AndroidTether
wifi.channel=6
wifi.txpower=disabled
wifi.encryption=open
wifi.driver=wext
wifi.setup=wpa_supplicant
wifi.encryption.key=none
ip.gateway=192.168.2.254
ip.netmask=255.255.255.0
ip.network=192.168.2.0

D:\Program Files\android-sdk-windows\tools>adb shell
sh-3.2# cd /data/data/android.tether/bin
cd /data/data/android.tether/bin
sh-3.2# ./tether start 1
./tether start 1
about to run: [/data/data/android.tether/bin/ifconfig eth0 192.168.2.254 
netmask 255.255.255.0]
error: SIOCSIFADDR (No such device)
about to run: [/data/data/android.tether/bin/iwconfig eth0 mode ad-hoc]
Error for wireless request "Set Mode" (8B06) :
    SET failed on device eth0 ; No such device.
about to run: [/data/data/android.tether/bin/iwconfig eth0 essid AndroidTether]
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device eth0 ; No such device.
about to run: [/data/data/android.tether/bin/iwconfig eth0 channel 6]
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device eth0 ; No such device.
about to run: [/data/data/android.tether/bin/iptables -N wireless-tether]
about to run: [/data/data/android.tether/bin/iptables -F wireless-tether]
about to run: [/data/data/android.tether/bin/iptables -t nat -F PREROUTING]
about to run: [/data/data/android.tether/bin/iptables -t nat -F POSTROUTING]
about to run: [/data/data/android.tether/bin/iptables -t nat -F]
about to run: [/data/data/android.tether/bin/iptables -A wireless-tether -m 
state --state ESTABLISHE
D,RELATED -j ACCEPT]
about to run: [/data/data/android.tether/bin/iptables -A wireless-tether -s 
192.168.2.0/24 -j ACCEPT
]
about to run: [/data/data/android.tether/bin/iptables -A wireless-tether -p 47 
-j ACCEPT]
about to run: [/data/data/android.tether/bin/iptables -A wireless-tether -j 
DROP]
about to run: [/data/data/android.tether/bin/iptables -A FORWARD -j 
wireless-tether]
about to run: [/data/data/android.tether/bin/iptables -t nat -I POSTROUTING -s 
192.168.2.0/24 -j MAS
QUERADE]
about to run: [/data/data/android.tether/bin/dnsmasq -i eth0 
--resolv-file=/data/data/android.tether
/conf/resolv.conf --conf-file=/data/data/android.tether/conf/dnsmasq.conf]
about to run: [/data/data/android.tether/bin/iptables -t nat -I PREROUTING -s 
192.168.2.0/24 -j DROP
]
script result was []

Original issue reported on code.google.com by beterh...@gmail.com on 1 Nov 2010 at 5:15

GoogleCodeExporter commented 9 years ago
The config-file "/data/data/android.tether/conf/tether.conf" is generated AFTER 
you hit the tether-start button (gui).

Please check if the tether.conf files changes and provide the content of it.

Original comment by harald....@gmail.com on 1 Nov 2010 at 4:08

GoogleCodeExporter commented 9 years ago
sh-3.2# cat /data/data/android.tether/conf/tether.conf
ip.gateway=192.168.3.254
wifi.encryption=wep
tether.mode=wifi
ip.netmask=255.255.255.0
tether.fix.persist=true
wifi.txpower=disabled
wifi.interface=tiwlan0
wifi.setup=iwconfig
wifi.encryption.key=9999999999999
wifi.channel=4
ip.network=192.168.3.0
wifi.driver=wext
wifi.essid=HansLegend
tether.fix.route=true
device.type=legend

yes it changed but still didn't work :(

Original comment by beterh...@gmail.com on 1 Nov 2010 at 10:56

GoogleCodeExporter commented 9 years ago
Try to update the drivers of your wifi-card (client-pc - windows 7).
Also check: http://code.google.com/p/android-wifi-tether/issues/detail?id=244

Original comment by harald....@gmail.com on 2 Nov 2010 at 8:47

GoogleCodeExporter commented 9 years ago
I don't think it's coursed by the Windows driver because I can get the IP 
address from your Tether on my phone Data connection is OK between PC and Phone.

Original comment by beterh...@gmail.com on 2 Nov 2010 at 1:33

GoogleCodeExporter commented 9 years ago
Does your pc have a intel-wireless card built-in? If yes, go and update your 
drivers!

Otherwise desribe what exactly your problem is!
Is the default-gateway (ip.gateway=192.168.3.254) pingable from your client? 
(for instance)
ping 192.168.3.254

Original comment by harald....@gmail.com on 2 Nov 2010 at 2:48

GoogleCodeExporter commented 9 years ago
the gateway isn't pingable. :(

1. Media connection
When I try to start the Tether. with no encryption. It can connection I can see 
upload counter increased alot on my phone but I can't get the IP address.
2. When I try to start the tether with auto or wep with password, the windows 
show there was no password for the ad-hoc spot. I can connect but can't get IP 
address
3/ When I try to start the thther with wpa configuration. windows shows its 
have password and let me input. after input I can connect, and upload counter 
increased. but can get ipaddress
4 with wpa and ACL enable, Sometimes the phone says my Mac of PC is going to 
connect them offer me a choice auth or not. I chose auth My PC get ip address 
but can't ping gateway. can't access the internet

Original comment by beterh...@gmail.com on 2 Nov 2010 at 10:49

GoogleCodeExporter commented 9 years ago
intel-card? update your drivers ...

Original comment by harald....@gmail.com on 3 Nov 2010 at 7:09

GoogleCodeExporter commented 9 years ago
I've updated the driver from 12.x.x to 13.x.x but it doesn't help :(
I can get ipaddress but can't ping gateway or go internet

by the way I can only get ipaddress when the wpa mode + ACL is on.

Original comment by beterh...@gmail.com on 3 Nov 2010 at 4:19

Attachments: