seanhold3n / android-wifi-tether

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

Wifi mode - AndroidTether not in available networks #302

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which device (manufacturer, type)?
Samsung Galaxy

Which firmware is installed?
Android 2.1 (goasp weekly 7)

What version of wireless tether are you using?
2.0-pre8

What steps will reproduce the problem?
1.start tethering
2.try to see the wireless network 
3.

What is the expected output? What do you see instead?
I'm don't see AndroidTether SSID on computer. 
I try with Ubuntu 9.04, Windows XP Pro SP3 and Windows Seven, Every
computer over networks and can connect them but no AndroidTether in
available network. 
I try to connect to AndroidTether as it is an invisible network but no way. 

Do I something wrong ? 
Is it normal ?

Please provide any additional information below.

Original issue reported on code.google.com by adane...@gmail.com on 1 Apr 2010 at 9:13

GoogleCodeExporter commented 9 years ago
All computers don't see "AndroidTether" or just your ubuntu-box?

Original comment by harald....@gmail.com on 1 Apr 2010 at 11:36

GoogleCodeExporter commented 9 years ago
all

Original comment by adane...@gmail.com on 2 Apr 2010 at 11:20

GoogleCodeExporter commented 9 years ago
in log : 
Enabling NAT Rules... (done)
Enabling IP forwarding... (done)
Enabling access control... (done)
Tethering now running... (done)

Original comment by adane...@gmail.com on 2 Apr 2010 at 12:01

GoogleCodeExporter commented 9 years ago
Try to start it from command-line. This generates some additional debug-output.

adb shell
su
cd /data/data/android.tether/bin
./tether start 1

Post the result ...

Original comment by harald....@gmail.com on 2 Apr 2010 at 9:56

GoogleCodeExporter commented 9 years ago
Hello,

I cannot use adb : device not found (i try since a long time with a friend but 
never
success).

to launch with command line as you write, i used connectbot (connected to 
local) and
i have this : 
about to run: [/data/data/android.tether/bin/iptables -F]
about to run: [/data/data/android.tether/bin/iptables -F -t nat]
about to run: [/data/data/android.tether/bin/iptables -I FORWARD -m state 
--state
ESTABLISHED,RELATED -j ACCEPT]
about to run: [/data/data/android.tether/bin/iptables -I FORWARD -s 
192.168.0.3/24 -j
ACCEPT]
about to run: [/data/data/android.tether/bin/iptables -P FORWARD DROP]
about to run: [/data/data/android.tether/bin/iptables -t nat -I POSTROUTING -s
192.168.3.0/24 -j MASQUERADE]
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]
script result was []

no network "AndroidTether" seen on ubuntu and the wifi is always activated on 
the
phone after this.

Original comment by adane...@gmail.com on 2 Apr 2010 at 11:08

GoogleCodeExporter commented 9 years ago
First. Ubuntu (depends on the network-manager you are using) has some problems 
joining ad-hoc networkd (I personally use opensuse).

The reason that adb is not working for you is most likely because adb is 
startet not 
as root on your computer. Do the following:

sudo adb kill-server
sudo adb shell

Maybe this helps.

Original comment by harald....@gmail.com on 2 Apr 2010 at 11:19

GoogleCodeExporter commented 9 years ago
(the same if wifi is turned off)

Original comment by adane...@gmail.com on 2 Apr 2010 at 11:20

GoogleCodeExporter commented 9 years ago
for adb : this give me "error : device not found" (debug usb is on on the phone 
and i
have this rules in /etc/udev/rules.d/11-android.rules
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666", GROUP="plugdev"

I have tried another rules, with or without IDPRODUCT, with USER instead GROUP.

The friend who try this with a Samsung Galaxy has Debian.

Executing tether by ConnectBot is a wrong way ? 

in any way, when i tried to launch the "./tether start 1" from ConnectBot, if i
launch the GUI after, I wan see the image is in grey and the button is "stop 
tethering". 

If you want, i can try later to do the same (with connectbot) and see if a 
computer
on Windows XP see the AndroidTether network.

Hope that helps to resolve this issue

Original comment by adane...@gmail.com on 2 Apr 2010 at 11:31

GoogleCodeExporter commented 9 years ago
it's due of Gaosp does not support netfilter. 

to see if it is when you read this message, follow this link 
http://code.google.com/p/gaosp/issues/detail?id=78#makechanges (or see the todo 
list of 
the project)

Original comment by adane...@gmail.com on 7 Apr 2010 at 5:20