Tethering Issue... among others. - Optimus One, P500, V General

Tethering worked for me just once, through wifi. Now, everytime my laptop, or any device connects to my O1 it doesn't detect the internet even if I am able to browse on the phone through my 3G connection.
I can ping the phone's ip address and access shared folders on my laptop through ex file manager so I know the connection is there. Somehow, though, the Internet isn't going through.
My other concern is how this thing manages the sd card. Ever since I bought this, as long as there are no apps installed to the sd, my phone works perfectly fine. Once I move any app to it, though, weird things start happening... like the phone reboots randomly, or freezes, or the sd card unmounts and remounts without loading the apps on it, forcing me to do a manual un/remount or reboot.
I tested this by moving all apps back to internal. 2 days passed with no reboots. Then I moved just one app to the sd and let it sit. No more than 30 mins, the startup sound alerted my attention.
Except flashing custom roms, which I refuse to do until stock works fine, I've already done most of the suggestions I could find floating here on xda and other forums... rooting,unrooting, clearing cache, factory reset, reformatting sd card and so forth... so I was wondering what else I could do to fix these problems.
Phone has been up now for almost a week without rebooting after I took the app out of the card and back to internal. But I don't see the sense of having external memory if the phone goes crazy with apps on it.
Otherwise, it's a perfectly decent phone.
Sent from my LG-P500 using Tapatalk

do you have Data enabled in mobile network settings?

Omnichron said:
do you have Data enabled in mobile network settings?
Click to expand...
Click to collapse
Of course. I can browse on the phone.
Sent from my LG-P500 using Tapatalk

it could be a firewall issue or protocol setting on the laptop nic.

if you have ipv6(NIC Properties) installed remove it and try the connection again.

Omnichron said:
it could be a firewall issue or protocol setting on the laptop nic.
Click to expand...
Click to collapse
If it was, then theoretically, mobile phones should be able to use my data connection, right? I've had my friends connect with their mobiles and tablets... they get the ip address but not the juice.
Sent from my LG-P500 using Tapatalk

try updating or downgrading wifi tether
http://code.google.com/p/android-wifi-tether/downloads/list

Will try it out. Thanks!
Sent from my LG-P500 using Tapatalk

And that worked like a charm without changing any setting on my laptop. although, i noticed that it asked for su on android.tether. What makes this one special?
Sent from my LG-P500 using Tapatalk

I would like to up this post and ask about the initial concern again. Wifi Tether works like a beauty, but I noticed it's an ad-hoc network. Not all devices see my "router".
So back to the original concern of using the built-in Wifi Tethering of this O1... why can't I get any internet on the devices that are able to connect to it? Again, the I.P. address is correct, but there is no Internet connection.

Well, no info here... so. The usual network troubleshooting drill, like...
Code:
ipconfig /all
route print
(on Windows boxes)
Code:
ip address show
ip route print
(on your phone, either via terminal emulator or via adb shell).

doktornotor said:
Well, no info here... so. The usual network troubleshooting drill, like...
Click to expand...
Click to collapse
If by info you mean what kind of phone, it's a rooted stock P500 v10b.
I already mentioned in previous posts that the ip addresses report fine. Again, all devices can connect to the built-in tether, they get correct ip addresses but just no internet. It worked just once when it was new. Never again after that, even after the first factory reset.
But here's what terminal says.
Code:
$ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN
link/ether 9e:4d:23:e2:28:ec brd ff:ff:ff:ff:ff:ff
3: rmnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 76:e2:a8:76:3e:3a brd ff:ff:ff:ff:ff:ff
inet 10.115.27.234/30 brd 10.115.27.235 scope global rmnet0
inet6 fe80::74e2:a8ff:fe76:3e3a/64 scope link
valid_lft forever preferred_lft forever
4: rmnet1: <BROADCAST,MULTICAST> mtu 2000 qdisc noop state DOWN qlen 1000
link/ether a6:b7:7a:3e:5f:00 brd ff:ff:ff:ff:ff:ff
5: rmnet2: <BROADCAST,MULTICAST> mtu 2000 qdisc noop state DOWN qlen 1000
link/ether e6:52:c0:53:21:df brd ff:ff:ff:ff:ff:ff
6: usb0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 96:02:b8:f4:38:65 brd ff:ff:ff:ff:ff:ff
7: sit0: <NOARP> mtu 1480 qdisc noop state DOWN
link/sit 0.0.0.0 brd 0.0.0.0
8: ip6tnl0: <NOARP> mtu 1460 qdisc noop state DOWN
link/tunnel6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
23: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 5c:da:d4:79:39:37 brd ff:ff:ff:ff:ff:ff
inet6 fe80::5eda:d4ff:fe79:3937/64 scope link
valid_lft forever preferred_lft forever
24: wl0.1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 5c:da:d4:79:39:37 brd ff:ff:ff:ff:ff:ff
inet 192.168.43.1/24 brd 192.168.43.255 scope global wl0.1
inet6 fe80::5eda:d4ff:fe79:3937/64 scope link
valid_lft forever preferred_lft forever
$ip route
202.126.40.5 dev rmnet0
222.127.143.5 dev rmnet0
10.115.27.232/30 dev rmnet0 src 10.115.27.234
192.168.43.0/24 dev wl0.1 src 192.168.43.1
default via 10.115.27.233 dev rmnet0
$

Well, what do you mean by "no internet".
E.g., what does the following produce (on Windows)?
Code:
> tracert www.google.com
> tracert 209.85.143.99

doktornotor said:
Well, what do you mean by "no internet".
Click to expand...
Click to collapse
Doesn't that usually mean that I can't go online the normal way?
On windows, tracert www.google.com doesn't do anything. Surprisingly, it worked for the I.P. address. Browsing using I.P. addresses works, as well.
That being said, I think there's a problem with the way the built-in tethering handles DNS server numbers, which is why none of the devices that connect to it is able to connect through to the internet.
Any ideas on why this is happening? Or how to fix?

androidmeda said:
Doesn't that usually mean that I can't go online the normal way?
On windows, tracert www.google.com doesn't do anything. Surprisingly, it worked for the I.P. address. Browsing using I.P. addresses works, as well.
Click to expand...
Click to collapse
Go online the normal way does not really mean much either, so - no. Internet != web browsing.
Meanwhile, since your DNS is apparently not working properly, stick 8.8.8.8 and 8.8.4.4 (Google public DNS) to the TCP/IP settings on the clients and it will work.
"built-in tethering handles DNS server numbers" - those are IP addresses. If you can ping/traceroute using DNS names (like www.google.com) from the phone, then obviously your clients are not getting the proper DNS servers assigned from the phone via DHCP server.
For further debugging, you need to post which DNS servers are being used on the phone and whether those match the ones assigned to the WiFi clients (or if any are assigned at all). Again, ipconfig /all or whatever similar according to the clients OS.

Using built-in tethering, I checked the DNS server assigned to a windows client, it's the same as the ip address it got from the phone. No browse using urls. Pings are ok, tracert only works if I use the ip address as shown on the ping, and I can browse to a website if I use the ip instead.
Using Wireless Tether, the DNS server is the same as the assigned ip address, but I'm able to browse and tracert using urls.
The only reason I'm trying to get built-in to work is because not all devices can detect Wireless Tether's adhoc network. Even a fellow Optimus One can't see it. (On a side note, I can't detect wireless adhoc networks, either.)
I don't know how to check the DNS assigned to the phone. But looking at ip route, it's probably the first two numbers.
Code:
#ip route
202.126.40.5 dev rmnet0
222.127.143.5 dev rmnet0
10.31.40.196/30 dev rmnet0 src 10.31.40.198
10.10.1.0/24 dev wlan0 src 10.10.1.254
default via 10.31.40.197 dev rmnet0
#
Up until the time Wireless Tether will be able to start as a true access point, I will be wondering what's going on with the built-in.
If assigning a DNS server to a client would work, that still doesn't address the fact that you can't manually assign DNSs on all devices.
Sent from my LG-P500 using Tapatalk

androidmeda said:
Using built-in tethering, I checked the DNS server assigned to a windows client, it's the same as the ip address it got from the phone.
Click to expand...
Click to collapse
I do not understand. Their DNS is set to their local IP address? Well, that obviously cannot work unless you install a DNS server on the computer.
androidmeda said:
Using Wireless Tether, the DNS server is the same as the assigned ip address, but I'm able to browse and tracert using urls.
Click to expand...
Click to collapse
Errr, what? Please post the settings, the above plain does not make sense to me, do not understand what you saying there.
androidmeda said:
I don't know how to check the DNS assigned to the phone.
Click to expand...
Click to collapse
Here:
Code:
$ cat /system/etc/resolv.conf

doktornotor said:
I do not understand. Their DNS is set to their local IP address? Well, that obviously cannot work unless you install a DNS server on the computer.
Click to expand...
Click to collapse
I'm sorry, I meant to say it's the same as the default gateway. Here's how ipconfig /all looks like on my laptop on Wireless Tether. I can browse and do anything online.
Code:
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom 802.11g Network Adapter
Physical Address. . . . . . . . . : 00-1F-E1-4C-56-E2
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.10.1.100(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Sunday, May 29, 2011 10:13:47 PM
Lease Expires . . . . . . . . . . : Monday, May 30, 2011 9:59:53 AM
Default Gateway . . . . . . . . . : 10.10.1.254
DNS Servers . . . . . . . . . . . : 10.10.1.254
NetBIOS over Tcpip. . . . . . . . : Enabled
And here's how it looked like on built-in tether. No browse.
Code:
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom 802.11g Network Adapter
Physical Address. . . . . . . . . : 00-1F-E1-4C-56-E2
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.43.25(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Sunday, May 29, 2011 10:32:56 PM
Lease Expires . . . . . . . . . . : Sunday, May 29, 2011 11:32:55 PM
Default Gateway . . . . . . . . . : 192.168.43.1
DHCP Server . . . . . . . . . . . : 192.168.43.1
DNS Servers . . . . . . . . . . . : 192.168.43.1
NetBIOS over Tcpip. . . . . . . . : Enabled
I tried putting google's public dns on the wireless network connection's tcp/ip v4 properties, but it still came up with no browse, no ping, tracert ok on ip address.
By the way, cat /system/etc/resolv.conf doesn't exist on the phone according to terminal emulator. I checked with root explorer as well to confirm.

Unless there is a running DNS server/proxy on the default GW, it will not work. Check with nslookup or whatever similar tool.
/system/etc/resolv.conf does not exist? I do not understand how are you able to browse anything from your phone then. It specifies the DNS servers the phone is using.
I tried putting google's public dns on the wireless network connection's tcp/ip v4 properties, but it still came up with no browse, no ping, tracert ok on ip address.
Click to expand...
Click to collapse
Getting totally lost here. Why on wireless? By "built-in" tether you mean you connect the phone via USB cable? Well, that does not use wireless at all, so setting any DNS there will not do any good.
Oh well, to sum this up - if you devices cannot see an ad-hoc wifi network, those are broken, not the phone. Messing with USB cable and internet connection sharing on your PC is just a waste of time, IMHO.

doktornotor said:
/system/etc/resolv.conf does not exist? I do not understand how are you able to browse anything from your phone then. It specifies the DNS servers the phone is using.
Click to expand...
Click to collapse
I don't understand it either.
Getting totally lost here. Why on wireless? By "built-in" tether you mean you connect the phone via USB cable? Well, that does not use wireless at all, so setting any DNS there will not do any good.
Click to expand...
Click to collapse
Froyo has its own wireless tethering, right? That's what I'm trying to get working.. and that's what I'm working on. By the way, USB tethering doesn't work AT ALL.
Oh well, to sum this up - if you devices cannot see an ad-hoc wifi network, those are broken, not the phone. Messing with USB cable and internet connection sharing on your PC is just a waste of time, IMHO.
Click to expand...
Click to collapse
Total of three brand new Optimus Ones, all unable to see different adhoc networks that work on other wireless-capable devices (this laptop and an iProduct)? I'm just not seeing how the adhoc networks are broken.
It might be a waste of time for you, but this is the way I use the internet at home: my laptop tethered to my phone. I'll probably just wait for Wireless Tether to upgrade to access-point capacity.
Thanks for helping me out with this!

Related

BUG: DNS not flushing properly. Can our developers do something before Google?

The problem on every Nexus One (or Android) build so far, is that everytime one switches between WiFi and 3g or vise versa, the DNS cache is not flushed. This could cause various problems. In my case, when I connect to our corporate WiFi, the exchange mail server resolves to a local ip address, eg 10.x.x.x. When I turn WiFi off and connect to 3g, the dns entry is not flushed, and therefore the mail client just times out trying to connect to the non reachable private ip.
There is already a bug report about this, but I was wondering if our gurus here could fix this anytime soon, since Google doesn't seem to care much (the report is over 2 months old).
There is an application in the market that flushes out the cache. It think its called "Cache Cleaner".
this is my solution
add this script to gscript lite
netprop net.dns1 8.8.8.8
netprop net.dns2 8.8.4.4
[email protected] said:
this is my solution
add this script to gscript lite
netprop net.dns1 8.8.8.8
netprop net.dns2 8.8.4.4
Click to expand...
Click to collapse
the app IP Manager could also be used
i have two IP profiles (home & office) and every time i leave either one of the two locations, i switch here (e.g. at home i need the private IP address, at office i need the assigned IP address, in both cases I want to have DNS1 8.8.8.8 and DNS2 8.8.4.4
more profiles can be set up, according to the requirement
[email protected] said:
this is my solution
add this script to gscript lite
netprop net.dns1 8.8.8.8
netprop net.dns2 8.8.4.4
Click to expand...
Click to collapse
What is netprop? Can't find it on CM5.0.4.1. Is it a command line tool?
Yeah, this has been bothering the tit out of me. When I used APNdroid, it was pretty terrible and I had to fiddle with wifi, plane mode, etc just to get EDGE back on.
I recall not having that problem when using Cyanogen's ROM, though. Maybe he's fixed it?
tamarian said:
What is netprop? Can't find it on CM5.0.4.1. Is it a command line tool?
Click to expand...
Click to collapse
sorry ^^
setprop

LAN Wireless - DNS setting???

Ok, I would like to use a static IP for my X10 on my own wireless network.
I added the IP, Netmask, Gateway addresses, and it worked fine. But then I added what I thought was the correct DNS info and now it doesn't work. I thought I could easily clear the DNS address, but I can't seem to.
Can something inform me how to clean the DNS info or add a DNS address that works? Thanks
Solved
Ok, I solved my issue using the 'Wifi Static' app from Marketplace
I had the same problem, but I can't fix an IP. So I generated a shell script (below), saved it on my SDCard and used tasker to run it (with execute locale plugin, needs root) everytime I got a Wifi connection. Works everytime.
file dns.sh:
setprop net.dns1 8.8.8.8
setprop net.dns2 8.8.8.4
locale command: !sh /sdcard/dns.sh
RodneyBR said:
Ok, I would like to use a static IP for my X10 on my own wireless network.
I added the IP, Netmask, Gateway addresses, and it worked fine. But then I added what I thought was the correct DNS info and now it doesn't work. I thought I could easily clear the DNS address, but I can't seem to.
Can something inform me how to clean the DNS info or add a DNS address that works? Thanks
Click to expand...
Click to collapse
a good app to manage diff IPs:
http://www.appbrain.com/app/ip-manager/com.monkelabs.ipmanager
DNS servers (OpenDNS):
208.67.220.220
208.67.222.222

[Q] Weird wifi issue

Hey guys,
i have an issue with my wifi connection, but only in one specific place.
Here goes: I can connect and use wifi everywhere(without any problem), but not at my friends house. Wifi connects without a problem, but after that i cannot use it (can't download from market, can't surf, etc.). It says there is an internet connection failure, altough i'm still connected.
I know for sure there isn't a problem with routers, modems, networks, etc. coz i setup his network myself (exactly the same as al the other networks i use) So in this there cannot be a problem. My friend can connect his iphone4, my wife can with S+, even a guy with an ACE can connect and use, except for me and my ACE.
Already reset router, modem and phone (even other firmware), but still nothing!
Hope somebody can help with this, coz i'm really bugged out on this one.
Cheers.
Check if u have a WPA protection.. My ACE doesnt work with Wifi with WPA pwd..
or
Try this:
Go to Wifi Settings, select the hotspot you are connecting to, forget the connection, restart ACE, connect to the hotspot again by entering the password
Hope this helps..
While on the topic of not being able to surf, I can never download anything from mediafire.
consegregate said:
While on the topic of not being able to surf, I can never download anything from mediafire.
Click to expand...
Click to collapse
Hold the link , then open the link in a new tab
Sent from my Ultima Weapon© using XDA App
EmoBoiix3 said:
Hold the link , then open the link in a new tab
Sent from my Ultima Weapon© using XDA App
Click to expand...
Click to collapse
No, i'll download htm files of a few kilobytes always. It's weird.
consegregate said:
No, i'll download htm files of a few kilobytes always. It's weird.
Click to expand...
Click to collapse
It's problem with MediaFire
Sent from my Ultima Weapon© using XDA App
tvigyan said:
Check if u have a WPA protection.. My ACE doesnt work with Wifi with WPA pwd..
or
Try this:
Go to Wifi Settings, select the hotspot you are connecting to, forget the connection, restart ACE, connect to the hotspot again by entering the password
Hope this helps..
Click to expand...
Click to collapse
Hey,
thnx, but tried both already and it didn't work.
Cheers
consegregate said:
While on the topic of not being able to surf, I can never download anything from mediafire.
Click to expand...
Click to collapse
Hmm, strange i can't download either. Nothing, not even textdocuments always get message "download failed".
Try to find out from this other Ace which modem he has installed. Check yours as well. If they are different, it can be a clue...
Sent from my GT-I9000B using Tapatalk
consegregate said:
No, i'll download htm files of a few kilobytes always. It's weird.
Click to expand...
Click to collapse
I had this problem i found to get around it i started using Skyfire worked 8/10 times..
Lior Messer said:
Try to find out from this other Ace which modem he has installed. Check yours as well. If they are different, it can be a clue...
Sent from my GT-I9000B using Tapatalk
Click to expand...
Click to collapse
Hey,
thnx, but already tried this too. The other ACE has Froyo.
I already tried Froyo, GB kph and GB kpn, but evrytime the same result.
Cheers
aronfeerick said:
I had this problem i found to get around it i started using Skyfire worked 8/10 times..
Click to expand...
Click to collapse
Hey, thnx.
This is a browser, right?
Will try it, but that doesn't solve the problem that i can't use whattsapp, market, etc.
The strange thing is i can reciev whattsapp messages, but cannot send them.
Cheers
Sgace said:
Hey, thnx.
This is a browser, right?
Will try it, but that doesn't solve the problem that i can't use whattsapp, market, etc.
The strange thing is i can reciev whattsapp messages, but cannot send them.
Cheers
Click to expand...
Click to collapse
APN settings malfunction ? Or EiFi malfunction ?
Sent from my Ultima Weapon© using XDA App
Might be the password u applied is wrong. Forget the network and rejoin it with correct password.. Hope it works..
Sent from my GT-S5830 using XDA Premium App
EmoBoiix3 said:
APN settings malfunction ? Or EiFi malfunction ?
Sent from my Ultima Weapon© using XDA App
Click to expand...
Click to collapse
No, everything is working fine with other networks.
GambiTx said:
Might be the password u applied is wrong. Forget the network and rejoin it with correct password.. Hope it works..
Sent from my GT-S5830 using XDA Premium App
Click to expand...
Click to collapse
Nope, already tried this like 100 times, but thnx.
Gonna try a diffrent way now. Trying it with some tweaks in build.prop, a tweakscript, implemend a dns-server file and gonna mess around with wep/wpa again.
Hope this will workout.
Will report back in a day or 2.
Thnx and cheers.
weirdo wifi
Check on router setting the ip address your phone is using is not bind to another device,s mac address this is on the router settings something like ip & Mab binding.
It could be the ip you are trying to use alocated for use by another device only.
However u will be able to connect to the router it will show in the router you phone is connected and alsoshow in wifi on the phone you are connected but you will NOT be able to connect to the internet.
durbancurry said:
Check on router setting the ip address your phone is using is not bind to another device,s mac address this is on the router settings something like ip & Mab binding.
It could be the ip you are trying to use alocated for use by another device only.
However u will be able to connect to the router it will show in the router you phone is connected and alsoshow in wifi on the phone you are connected but you will NOT be able to connect to the internet.
Click to expand...
Click to collapse
Hey,
Thnx, will try this ASAP. This might be it.
Question: If my phones ip-adress is indeed the problem, is it possible to change it without any problem? Or should i delete the binded ip at the router?
Cheers.
ip no problem
You can set another ip address manually for phone first find out what routers ip address is
normally 192.168.1.1 is default for lots of routers then see router has DHCP
enabled this means router issues ips to devices. if it is enabled the leave your phone as is and check on the router under ip & Mac binding see if it is enabled UNanble u can always put it back
even better see on router what ip your phone is using then checxk in ip & mac binding that it is not assigned to another device for use. if it is u can delete that binding.
binding means you give a certain device's mac address a certain ip so only that device can you that ip
for example say your phones mac adress is 12:34:56:78:90:00 and you assign or give it ip adress 192.168.1 10 then in theory only your phone can use this ip. THIS not always the case depends on what make router. Whilst we are at that what is your router model.
Look in these places on roter
DHCP settings
IP & Mac Binding.
IP address filtering ( perhaps the ip your phone is using is blocked from internet, it will still be connected but cant access the internet) shout if you need more info
sorry got carried away yes delete bind ip you can always rebind. this below / following is from my router most routers are similar.
IP & MAC Binding Help
To manage the computers well in the LAN, you could control access among computers by ARP Binding.
MAC Address - The MAC address of the controlled computer in the LAN.
IP Address - The assigned IP address of the controlled computer in the LAN.
Bind - Whether or not enable the arp binding.
Modify - Edit or delete item.
Link - Turn to IP & MAC Binding Setting page.
Example: If you want assign 192.168.1.4 to PC A (MAC: 00-E0-4C-00-07-BE), and any other PCs could not use this IP,you should first enable "ARP Binding", and add a new item as below.
ID MAC Addrss IP Address Bind Modify
1 00-E0-4C-00-07-BE 192.168.1.4
DHCP ip Address Reservation Help
When you specify a reserved IP address for a PC on the LAN, that PC will always receive the same IP address each time when it accesses the DHCP server. Reserved IP addresses should be assigned to servers that require permanent IP settings.
MAC Address - The MAC Address of the PC that you want to reserve IP address for.
Reserved IP Address - The IP address of the router reserved.
To Reserve IP Addresses:
Enter the MAC Address (The format for the MAC Address is XX-XX-XX-XX-XX-XX.) and the IP address in dotted-decimal notation of the computer you wish to add.
Click the Save button when finished.
To modify a Reserved IP Address:
Select the reserved address entry as you desire, modify it. If you wish to delete the entry, make all of the entry fields blank.
Click the Save button.
shout if you need more help
durbancurry said:
You can set another ip address manually for phone first find out what routers ip address is
normally 192.168.1.1 is default for lots of routers then see router has DHCP
enabled this means router issues ips to devices. if it is enabled the leave your phone as is and check on the router under ip & Mac binding see if it is enabled UNanble u can always put it back
even better see on router what ip your phone is using then checxk in ip & mac binding that it is not assigned to another device for use. if it is u can delete that binding.
binding means you give a certain device's mac address a certain ip so only that device can you that ip
for example say your phones mac adress is 12:34:56:78:90:00 and you assign or give it ip adress 192.168.1 10 then in theory only your phone can use this ip. THIS not always the case depends on what make router. Whilst we are at that what is your router model.
Look in these places on roter
DHCP settings
IP & Mac Binding.
IP address filtering ( perhaps the ip your phone is using is blocked from internet, it will still be connected but cant access the internet) shout if you need more info
Click to expand...
Click to collapse
durbancurry said:
sorry got carried away yes delete bind ip you can always rebind. this below / following is from my router most routers are similar.
IP & MAC Binding Help
To manage the computers well in the LAN, you could control access among computers by ARP Binding.
MAC Address - The MAC address of the controlled computer in the LAN.
IP Address - The assigned IP address of the controlled computer in the LAN.
Bind - Whether or not enable the arp binding.
Modify - Edit or delete item.
Link - Turn to IP & MAC Binding Setting page.
Example: If you want assign 192.168.1.4 to PC A (MAC: 00-E0-4C-00-07-BE), and any other PCs could not use this IP,you should first enable "ARP Binding", and add a new item as below.
ID MAC Addrss IP Address Bind Modify
1 00-E0-4C-00-07-BE 192.168.1.4
DHCP ip Address Reservation Help
When you specify a reserved IP address for a PC on the LAN, that PC will always receive the same IP address each time when it accesses the DHCP server. Reserved IP addresses should be assigned to servers that require permanent IP settings.
MAC Address - The MAC Address of the PC that you want to reserve IP address for.
Reserved IP Address - The IP address of the router reserved.
To Reserve IP Addresses:
Enter the MAC Address (The format for the MAC Address is XX-XX-XX-XX-XX-XX.) and the IP address in dotted-decimal notation of the computer you wish to add.
Click the Save button when finished.
To modify a Reserved IP Address:
Select the reserved address entry as you desire, modify it. If you wish to delete the entry, make all of the entry fields blank.
Click the Save button.
shout if you need more help
Click to expand...
Click to collapse
Wohw, wohw, that's alot of stuff to think about. Will try it ASAP.
Thank you very much for sharing your knowledge!
Cheers

Reverse USB tethering Script

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.

Android OS + BIND9 dns on local server

Hi All,
I don't know if it is the proper thread for this, but I've installed a local webserver (CentOS) with BIND9 dns (named) and what is annoying me that my android devices don't resolve the server address. They can only connect through the IP of the server.
Windows pc and iOS devices do resolve the server name.
Devices connect to the server through a wireless AP that is also a DHCP. DNS address is distributed through the AP's DHCP.
Any ideas? Or any workaround for this? The main goal is to reach the local server by its name, so if you guys know an app other than a DNS server I would be grateful for some help.
Thanks a lot
Greg
did you use static ip address and custom dns in advance settings on your android handset? if yes your android should lookup for dns server. anyway maybe, i could be wrong, port 53 is being used for other apps or closed in iptables on your android hanset.
cheers hope it could help
vertrag said:
did you use static ip address and custom dns in advance settings on your android handset? if yes your android should lookup for dns server. anyway maybe, i could be wrong, port 53 is being used for other apps or closed in iptables on your android hanset.
cheers hope it could help
Click to expand...
Click to collapse
Thanks for the quick reply.
The ROM I use is one of Ficeto's base ROM. I9100XXLPQ with supercore kernel. The thing is, in advanced wifi configurations I don't have the possibility to set DNS. DNS information is not even displayed. I only see the IP and I don't have the possiblity to edit it neither. It is something that should be available in all roms or is it just my current rom?
I have no idea if there is something that uses the port 53, but when I connect to my DSL router I can browse the internet. So I assume the DNS in this case should work correctly.
Thanks a lot
Greg
Someone, move this question to Q&A thread..
yes if ur able to browse di internet normally then the dns query look up is fine.. what i nean by port 53 is the port that dns server and client use to communicate each other. take a look of my screenshot im able to change the dns..
Sorry for having posted in the wrong thread.
Well I don't have the same settings available in my current ROM. But I installed a third party app from Play to set the DNS and even if it is displayed correctly in the 3rd party app settings, it doesn't resolve the server's address.
I guess there is nothing else left but to use a packet sniffer (wireshark) to see whats going on between the android's browser and the server.
Will get back with the results.
Thanks
Greg
Greg767 said:
Sorry for having posted in the wrong thread.
Well I don't have the same settings available in my current ROM. But I installed a third party app from Play to set the DNS and even if it is displayed correctly in the 3rd party app settings, it doesn't resolve the server's address.
I guess there is nothing else left but to use a packet sniffer (wireshark) to see whats going on between the android's browser and the server.
Will get back with the results.
Thanks
Greg
Click to expand...
Click to collapse
Did you check the value of property net.dns1? If not just enter
Code:
getprop | grep net.dns
in an ADB shell. The value of the property net.dns1 should be set to the IP address of your DNS server.
If this is not the case just enter
Code:
setprop net.dns1 <your DNS server IP address>
for testing and try to ping one of your internal servers by name. It should work now.
Hi all,
Problem is solved. On a local network you must define the gateway in the DHCP so that the android device sends both IPv6 and IPv4 queries to the DNS server. If it is not defined it sends only IPv6 queries and doesn't fall back to IPv4 when that fails.
Thanks for your help
Greg

Categories

Resources