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
Related
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
I have a HTC Thunderbolt that doesn't seem to recognize that the toggle for the static IP address is on. I have tried to reboot it and not sure what else to do. I need to be able to set a static IP for use with TRENDnet TEW-637AP wireless that doesn't have the ability to assign IP addresses. It continually says obtaining IP address from Network SSID. It will connect to wireless that can assign IP addresses regardless of the switch setting. Like I said, it doesn't seem to see it.
Thanks,
AC
assuming youre connecting with the wireless connect in the phone for wifi (the built in one), you can just set things manually.
Using a computer on the same network as the router you want to connect to, do this:
go to the command line in windows/linux/osx:
type ipconfig /all (if you're on windows)
ifconfig -a (if you're on linux/osx)
make note of the subnet mask (probably 255.255.255.0) and default gateway/network id (probably 192.168.1.1 but that could vary).
Then on your phone, use the same subnet and gateway and then find an open ip address for your phone to use (probably something between 192.168.1.100 and 192.168.1.150, but that also could vary depending on what your default gateway is. Anyways when you find one, say something like 192.168.1.139, enter that for the ip address and connect. Assuming all went well and you figured things out, you should be connected.
Ok. I will give that a try when I get a chance. Would have liked to done so today but very busy and it doesn't look like work is going to slow down for the next two days. Thanks for the quick response.
Sent from my ADR6400L using XDA App
I finally had time to sit down and look at this again today. I was in hopes that I had missed something on the default gateway. I don't use one on my network as there is no internet access. Thought maybe it was I tried using x.x.x.1 as the gateway hoping that it would make a difference but it didn't seem to help. Thanks for the suggestions. I have been looking on the web and it would appear that I am the only one having an issue of this type. Thanks again.
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.
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
Hi!
I have just built a local server with Pydio (like Dropbox) on NGINX.
I want to access that website and its application when I am connected to my LAN and when I am outside (in the street by example).
The problem is that, if I am outside it is OK, because when I enter the URL it works but when I am on my LAN, url does not work but without including the nameserver and private IP to /etc/hosts.
Does anyone know a global solution to fix it?
Maybe using iptables in the router?
Thanks in advance
Up
Solved. I added this domains to the /etc/hosts of the router OPenWRT