Hello,
I have problem with tethering Archos 101 and Samsung Corby Pro (GT-B5310) mobile phone.
I try connect by bluetooth - Archos see phone, only connection method is DUN, im seting correct APN and then try to connect.
Archos is connecting to phone but there is no internet and it disconect after about 5 secunds.
Hire is log from IFCONFIG:
Code:
ppp0 Link encap:Point-to-Point Protocol
inet addr:109.243.147.141 P-t-P:0.243.147.141 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:104 (104.0 B) TX bytes:98 (98.0 B)
So ppp0 is set, phone is loging into GSM network, I have IP and there is no internet access.
I tried with diffrent phone (Nokia 3120 Classic) but with that same SIM card and internet is working.
Hire is log from IFCONFIG & Nokia:
Code:
ppp0 Link encap:Point-to-Point Protocol
inet addr:109.243.230.160 P-t-P:10.6.6.6 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1194 (1.1 KiB) TX bytes:712 (712.0 B)
So its look line only diffrence in connection is P-t-P with is propably access gate (like for example 192.168.0.1 in router) - on Samsung there is always 0. and then part of IP addres, on Nokia P-t-P is always diffrent than IP.
Any clues what to do to run correct network conetcion with Samsung phone? Mayby some additional AT commands in /data/start_tether file? (i rooted Archos and have access to tethering configuration files).
Related
In the the android terminal I got "iwconfig eth0" details on my HTC Desire (CM7):
$ iwconfig eth0
eth0 IEEE 802.11-DS ESSID:"xxxxx" Nickname:""
Mode:Managed Frequency:2.427 GHz Access Point: xx:xx:xx:xx:xx:xx
Bit Rate=54 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementmode:All packets received
Link Quality=5/5 Signal level=-47 dBm Noise level=-90 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:0 Missed beacon:0
The Tx-Power shows 32 dBm or 1580mW !! You may know that the maximum Tx-Power of home WiFi routers is about (for instance) 50~100mW (or 20 dBm), but 32 dBm!!? How is that possible?
Hello every body,
This is my first post here
I had rooted my Xperia S two days ago and since then I am exploring my root capabilities.
I wrote a script to hook my Xperia S to my LAN Via USB.
Here is what I did.
1-connect Xperia S to PC in Regular USB Tethering mode.
2-bridge the network adapter form the phone with PC LAN Adapter and set IPv4 Settings Manually.
3-Run the following script on the phone.
Code:
ifconfig rndis0 192.168.1.99
ip route add 0.0.0.0/0 via 192.168.1.1 dev rndis0
ip route add 0.0.0.0/0 via 192.168.1.1 dev rndis0 metric 213
ip route del 192.168.1.0/24
ip route add 192.168.1.0/24 via default dev rndis0 proto kernel scope link src 192.168.1.99 metric 213
ip route add 192.168.1.1 via default dev rndis0 scope link
setprop net.nds1 8.8.8.8
setprop net.nds2 8.8.4.4
here I tried to mimic the same routing table form regular WIFI connection.
And it WORKS!!
but with a strange behavior.
After these steps I try to ping PC (form phone) and it is Unreachable, and the gateway is the same.
But after I reverse the operation and ping the phone from PC and from the gateway, the network operates normally , and phone pings through the gateway to the internet. also , I can receive streams from my PC and Access my mobile's FTP server , stock browser works.
But the Market cannot download apps , Maps cannot load.
I wonder why This is happening?
If you have an answer , I would be delighted to know it.
Thank You.
Maps cannot load.
Click to expand...
Click to collapse
It did load after some time , it needed patience , although it popped up "Data Connection not Available".
After these steps I try to ping PC (form phone) and it is Unreachable, and the gateway is the same.
But after I reverse the operation and ping the phone from PC and from the gateway, the network operates normally , and phone pings through the gateway to the internet.
Click to expand...
Click to collapse
Since it worked after it was pinged and learned MAC addresses.
I think there is a problem in layer 2, for some reason it cannot send ARP requests.
Success
After Upgrading to Windows 8 , The same script works as it should.
My Xperia S can now ping all network devices directly.
It seems that there was some thing wrong with My previous Win7.
But still there are some applications that can't deal with USB internet.
Google Play can navigate and search but can't download apps.
I think this topic was moved to inappropriate sub-forum (> Sony Xperia P, U, Sola, Go > Xperia P, U, Sola, Go General ) , it is related to Xperia S Please move it there.
Thank You.
Hello,
I'm new to the forum, and I've tried to get this working on my own, but I'm stumped and am hoping someone out there can help me out.
I just bought a shiny new Nexus 7 tablet and would like to tether it to my Galaxy S III phone. I'm currently on a pay as you go plan on my phone where I have an "internet browsing" plan (via SpeakOut). This appears to limit my data services so I can't tether my tablet to the phone and get internet service on the tablet. Tethering works fine if the phone is connected to WiFi, an option I don't have when I'm on the train, doing my commute to work.
So, I've been trying to get OpenVPN set up at home to route all my mobile traffic through that and get tethering working for the tablet. But, I'm stuck with getting the tablet to route traffic over the VPN tunnel. The phone itself has no problems connecting and using the VPN link, but the tethered tablet (via WiFi or Bluetooth) gets no service. The best I can do is ping the phone and traceroutes go to the phone, but never get past it.
I've tried to read the man pages for OpenVPN, but each example uses its own IP blocks and it makes piecing it all together really confusing. In any case, I'm hoping someone here can help me out with this setup.
Here's my setup:
Code:
HOME LAN NET: 192.168.1.0/24
HOME GATEWAY: 192.168.1.1
OPENVPN NET: 10.8.0.0/24
OPENVPN SERVER
LAN IP: 192.168.1.116
VPN (internal) IP: 10.8.0.1
VPN (external) IP: 10.8.0.2
PHONE
VPN IP: 10.8.0.6
WIFI TETHER NET: 192.168.43.0/24
WIFI TETHER IP: 192.168.43.1
TABLET
WIFI TETHER IP: 192.168.43.150
Here is my OpenVPN server.conf file:
Code:
port 1194
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir /etc/openvpn/ccd
route 192.168.43.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 4
and the client config file for the phone:
Code:
iroute 192.168.43.0 255.255.255.0
Please note, the OpenVPN server is a Mac running OS X 10.7.5 so I use the following script to set up the environment:
Code:
#!/bin/sh
sysctl -w net.inet.ip.fw.enable=1
sysctl -w net.inet.ip.forwarding=1
killall -9 natd
natd -interface en1 -u
ipfw -f flush
ipfw add divert natd ip from any to any via en1
here's my routing table on the server (netstat -rn):
Code:
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGSc 10 31915 en1
10.8/24 10.8.0.2 UGSc 0 0 tun0
10.8.0.2 10.8.0.1 UH 2 0 tun0
127 127.0.0.1 UCS 0 0 lo0
127.0.0.1 127.0.0.1 UH 0 765 lo0
169.254 link#5 UCS 0 0 en1
192.168.1 link#5 UCS 3 0 en1
192.168.1.1 98:fc:11:82:7d:4b UHLWIi 11 8799 en1 1171
192.168.1.116 127.0.0.1 UHS 2 153 lo0
192.168.1.120 0:1f:e2:88:af:a9 UHLWIi 0 1678 en1 1165
192.168.1.255 ff:ff:ff:ff:ff:ff UHLWbI 1 98 en1
192.168.43 10.8.0.2 UGSc 0 0 tun0
and the output of ipfw list:
Code:
00100 divert 8668 ip from any to any via en1
65535 allow ip from any to any
Any help with getting this running would be appreciated. Note, NEITHER the phone or tablet is rooted and I'd prefer to keep it that way, if possible. Secondly, I'd prefer to get the tethering set up via Bluetooth, so any guidance on that would be helpful, too. I have no idea how to inspect Bluetooth connectivity, though. Or, if you know a better way to get this tethering to work that doesn't involve OpenVPN I'd love to hear it.
Thanks!
Squeaky
Solution see cross-link
See http://forum.xda-developers.com/showpost.php?p=33749904&postcount=10
Recommended app, i use it to tether all the time
https://play.google.com/store/apps/details?id=com.opengarden.android.MeshClient&hl=en
Hello,
Overall, I need to change the metric of my two network interfaces - rmnet0 (mobile data) and wlan0 (wifi).
I wish that all network traffic goes first from rmnet0, and only then from wlan0.
I have tried to replace the routing rules in the 'main' table (added metrics), but it doesn't seem to affect.
ISSUE WAS SOLVED!
Copied default gateways from routing tables 'rmnet0' and 'wlan0' to table 'local', with appropriate metrics, and added the wireless' local subnet also to table 'local'.
works like a charm!
There are plenty of wifi issue not turning on under this forum, a lot of them were resolved by turning on and off, reload rom etc. But I narrowed down to some question possibly hardware related and need some clarification on settings.
I am playing with a old HP touchpad (I know it has it's own forum) and wifi was working on a older android mod. After a certain time left the machine, I dug it out recently to use it and wifi is "suck at the turning on phase". Android will also goes into a boot loop after 30 sec after boots.
So I went to recovery and looking at the hardware address , numbers and settings and discover few things.
The adaptor name is not the typical eth0, it's call dummy0. Also there is something call "lo" Link encap:Local Loopback under the hardware.
Here are the numbers:
dummy0 Link encap:Ethernet HWaddr DAlB0:37:5E:9F:93
BROADCASTS NOARP MTU:1500 METRIC:1
(follow by a bunch of 0s on RX packets etc etc)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 METRIC:1
(follow by a bunch of 0s on RX packets etc etc)
Now looking at this information, the dummy0 should be the wifi adapter information right? What is broadcast NOARP means?
I have tried to turn on the dummy0 device and it will show UP Broadcast, also turning on ARP (I read somewhere this should be default) and after booting back into android, these settings will revert back to the information above.
Can anyone shine a light on if this is the right place poking at the wifi adapter setting or it's some type of hardware failure causing the wifi not turning on?
The Wi-Fi settings are stored in Android's settings.db located at
/data/data/com.android.providers.settings/databases.
Note that you cannot access it unless you have root.
The SSIDs and passwords of the Wi-Fi networks are stored to
/data/misc/wifi/wpa_supplicant.conf
HTH