I just want to share this link that i came across today by HTCdev. Hopefully this helps some of you guys. It claims it's going to help 3g/4g speeds!
htcdev.net/topic/229295-download-flashable-google-dns-zip/
It look interesting.
Thanks
Has anyone done this? Did you notice a speed difference?
Will try it tonight. If Google's as good as they look, this might own. I already use Google Voice to SMS over data.
I tried and my speeds increased from 315 to 458 and 22 to 87 kbps, download and upload respectively (tested in a 8th floor office bldg).
Sent from my PC36100 using XDA App
What devices will this work on?
javidnky2005 said:
I tried and my speeds increased from 315 to 458 and 22 to 87 kbps, download and upload respectively (tested in a 8th floor office bldg).
Click to expand...
Click to collapse
I won't say I don't believe you, but it is impossible that only using another DNS server increases the upload/download speed.
Tom-- said:
I won't say I don't believe you, but it is impossible that only using another DNS server increases the upload/download speed.
Click to expand...
Click to collapse
Actually, that's not true. It has to do with pipe bandwidth and speed. Verizon obviously isn't as big as Google, and they also can handle better servers, it also has to do with where you are in the world, and on their network, and what you are doing. Google's DNS servers are configured and made for SPEED and speed only. Verizons DNS can also be bottlenecked to ensure "data consistancy" as they have came out and said before.
Chris says it better than I can though.
HTCDev.net is completely down. I can post a mirror. Just hold on one second.
UPDATE http://www.filedropper.com/googledns
0vermind said:
HTCDev.net is completely down. I can post a mirror. Just hold on one second.
UPDATE http://www.filedropper.com/googledns
Click to expand...
Click to collapse
LOL I got it thanks. Speedtest i was getting 1.95down and 1.48up before but using this I get either a really good test score or really bad. ex. one time it will be 2.59down and 1.75 up and next time ill get 0.25down0 .5up-- permissions are different for these files as apposed to the files in the zip. i changed them to match the directory but it diddnt change anything
DNS just translates URLs to IP addresses. I don't see how it would help upload/download speeds once you've connected to a site, but a bad DNS server will make connecting to a site take a while. Slow DNS servers make it take longer to find the site, but once it's found, how would DNS matter?
This script requires you to run it with an argument telling it which ppp device to use, ppp0 or ppp1 (does android even use ppp? mine doesn't but it's a Nexus One that doesn't have anything added by any carrier). If you don't supply it with an argument, it won't do anything. It will skip the first half of the script and enter incorrect information in the second half.
(it tries to enter things like: "net.$NAME.dns1", the $NAME variable is the same as the argument you use to run the script. If you don't use an argument, it will enter "net..dns1")
The script is placed in /etc/ppp/ip-up, meaning it is supposed to be executed when the ppp daemon detects a ppp connection. I don't think the ppp daemon can run it with arguments.
I personally don't see how flashing this script would do anything at all.
Just open a terminal emulator and type:
su
echo "nameserver 8.8.8.8
nameserver 8.8.4.4" > /etc/resolv.conf
voila, DNS changed!
fubaya said:
DNS just translates URLs to IP addresses. I don't see how it would help upload/download speeds once you've connected to a site, but a bad DNS server will make connecting to a site take a while. Slow DNS servers make it take longer to find the site, but once it's found, how would DNS matter?
This script requires you to run it with an argument telling it which ppp device to use, ppp0 or ppp1 (does android even use ppp? mine doesn't but it's a Nexus One that doesn't have anything added by any carrier). If you don't supply it with an argument, it won't do anything. It will skip the first half of the script and enter incorrect information in the second half.
(it tries to enter things like: "net.$NAME.dns1", the $NAME variable is the same as the argument you use to run the script. If you don't use an argument, it will enter "net..dns1")
The script is placed in /etc/ppp/ip-up, meaning it is supposed to be executed when the ppp daemon detects a ppp connection. I don't think the ppp daemon can run it with arguments.
I personally don't see how flashing this script would do anything at all.
Just open a terminal emulator and type:
su
echo "nameserver 8.8.8.8
nameserver 8.8.4.4" > /etc/resolv.conf
voila, DNS changed!
Click to expand...
Click to collapse
When loading a website, it's loading things from everywhere, for example, on my website, it loads things from Google Analystics, my Godaddy Grid Server (which is a bunch of different addresses), Statcounter, and ads. Each lookup takes take time complete and resolve. As far as file transfer, it has absolutely nothing to do with that. That's between you and the server you're downloading from, as well as the load of the server itself.
Does that command change the DNS permanently?
0vermind said:
HTCDev.net is completely down. I can post a mirror. Just hold on one second.
UPDATE http://www.filedropper.com/googledns
Click to expand...
Click to collapse
Hey can you repost this if possible? The original link doesn't work and neither does the one you provided.
another option...
This is a cool script, but I prefer to use Masqed Crusader app. It does the same thing (Google DNS) but adds Local Nameserver Caching and Ad-blocking. And it can be turned off and on just by hitting a button... no permanent changes.
lexcyn said:
Hey can you repost this if possible? The original link doesn't work and neither does the one you provided.
Click to expand...
Click to collapse
I second this. Willing to try it out at least.
I would have thought this would have got more traffic?
Any brainstorming, in regards to this?
Sent from my Eclipsed RazrMaxx!
Related
Would like to edit my DNS settings on this. Is it possible? After hearing what sounds like a DNS poisoning, would like to swap out TMOs DNS for another provider.
Grab anycut off the marketplace.
Long tap on the desktop -> shortcut -> activity -> ip settings.
I've been using openDNS from the moment I got the phone. Works like a charm.
edit - shouldn't have replied that quickly... this only works for WiFi as far as I know... but I haven't tested that. Will do so now.
edit 2 - well... scratch all that. I just tested opendns on both wifi at my home and using edge and both did not work. I guess ip settings doesn't work?
That is a nice find for when you are on wifi. It doesn't change your DNS when you are on the network. I have also wanted to change my DNS to Opendns but have not found a way to change dns on data connection. Any help would be appreciated.
angel-78 said:
That is a nice find for when you are on wifi. It doesn't change your DNS when you are on the network. I have also wanted to change my DNS to Opendns but have not found a way to change dns on data connection. Any help would be appreciated.
Click to expand...
Click to collapse
Can you confirm that is works for wifi? Opendns.com/org isn't showing that it's working for me.
Ummm opendns.com/org doesn't work for me and I am on opendns
Stupid question: why are you worried about DNS poisoning? I'm aware of what it is, but I'm not aware of how someone would exploit it.
They'd have to find an exploit on T-Mobiles DNS servers (or the higher servers that they receive the information from), that would either: a) use a "fake" higher DNS server to get info from, one that would provide spoofed entries, or b) insert fake entries into the cache. Correct?
Curious as to why you'd be paranoid about this tbh. Even with OpenDNS, if there's an exploits on T-Mobiles servers, wouldn't they be able to exploit it on the edge/3g servers? And if OpenDNS were ever compromised, it would leave hundreds of thousands of users more vulnerable, vs the (very) few people who use their cell phone for web banking.
neoobs said:
Ummm opendns.com/org doesn't work for me and I am on opendns
Click to expand...
Click to collapse
Confusing syntax on my part. I meant .com or .org.
Gary13579 said:
Stupid question: why are you worried about DNS poisoning? I'm aware of what it is, but I'm not aware of how someone would exploit it.
They'd have to find an exploit on T-Mobiles DNS servers (or the higher servers that they receive the information from), that would either: a) use a "fake" higher DNS server to get info from, one that would provide spoofed entries, or b) insert fake entries into the cache. Correct?
Curious as to why you'd be paranoid about this tbh. Even with OpenDNS, if there's an exploits on T-Mobiles servers, wouldn't they be able to exploit it on the edge/3g servers? And if OpenDNS were ever compromised, it would leave hundreds of thousands of users more vulnerable, vs the (very) few people who use their cell phone for web banking.
Click to expand...
Click to collapse
Guess you don't frequent boards as much as myself. It has already happened twice now. Just search for browser hijacked...
Being it has only been on Edge/3G, it must be their DNS. WIFI has never been affected.
Open an adb shell or Terminal Emulator and type
Code:
setprop ro.kernel.android.ndns 2
setprop net.eth0.dns1 208.67.222.222
setprop net.eth0.dns2 208.67.220.220
Those are ip addresses for OpenDNS, so use your own if you want something else. It might not be persistent through reboots though. If it isn't, append it to init.rc. I can't test this on actual hardware right now but on the emulator it does pass OpenDNS's test (in the upper right corner). Make sure you set the properties before opening the browser.
jashsu said:
Open an adb shell or Terminal Emulator and type
Code:
setprop ro.kernel.android.ndns 2
setprop net.eth0.dns1 208.67.222.222
setprop net.eth0.dns2 208.67.220.220
Those are ip addresses for OpenDNS, so use your own if you want something else. It might not be persistent through reboots though. If it isn't, append it to init.rc. I can't test this on actual hardware right now but on the emulator it does pass OpenDNS's test (in the upper right corner). Make sure you set the properties before opening the browser.
Click to expand...
Click to collapse
thanks trying this now and it seems to work well
Not only will it not persist on reboot, it will not persist over DHCP, so every time it reconnects to the network, this will have to be redone.
well, dunnow if you'v seen this
Mobile or other devices :
DNS servers are typically specified under advanced wi-fi settings. However, as every mobile device uses a different user interface for configuring DNS server settings, we provide only a generic procedure below. For more information, please consult your mobile provider's documentation.
To change your settings on a mobile device:
1. Go to the screen in which wi-fi settings are specified.
2. Find the screen in which DNS server settings are specified.
3. If there are IP addresses specified in the fields for the primary and seconday DNS servers, write them down for future reference.
4. Replace those addresses with Google IP addresses: 8.8.8.8 and 8.8.4.4.
5. Save and exit.
6. Test that your setup is working correctly; see Testing your new settings below.
Click to expand...
Click to collapse
Ather said:
well, dunnow if you'v seen this
Click to expand...
Click to collapse
Nice try
But that will only affect WiFi.
Ather said:
well, dunnow if you'v seen this
Click to expand...
Click to collapse
that only works for wifi or 3g connection as well?
I think the only way you can use T-Mobiles network is through there DNS. I think they have it locked to that. I remember when I used to tether if you right clicked a picture (that is on the internet obviously not on your hard drive) and went to properties it was never listed just the url that it was supposed to be it also had an ip before that url. That ip was always the same no matter what site. I think there is a proxy running on one end or the other.
aad4321 said:
google dns is the fastest and best...
8.8.8.8
8.8.4.4
Click to expand...
Click to collapse
Prove that google dns is faster than opendns, it hasn't even been out for a week yet while opendns is very mature.
This benchmark would have to disagree with you.
http://gizmodo.com/5420931/namebench-helps-you-find-the-fastest-dns-server-for-your-computer
It is highly dependent on your location. Google DNS might be faster than OpenDNS for some, while UltraDNS might be faster than Google DNS for others.
Try out the benchmarks yourself to see which one is the fastest for you. I use OpenDNS myself.
google dns is not at the moment everywhere the fastest but dont worry it will be. suggest you dont use this for t-mobile nl tv coz this wont count for your download limit and wont add to your download fair-use-time other dns probably will
tried nice worked on x10
Using this program you can control your phone from any browser. It requires a rooted Android phone.
* You can click and type on the phone (we inject touch events to the touch device and create a new HID for typing),
* get screenshots (copied from the framebuffer device) in jpeg and png, record images in sequence
* start phone calls (it uses '/bin/system/service' from android)
* open webpages on the phone (it uses intents)
* browse, download from, upload to the SD card (it uses AjaXplorer so you can rename files, listen mp3, etc.)
* browse and read every files on phone
* adjust LCD backlight
* get the phone's location (GPS and network, it uses our JAVA code and shows the result on GoogeMaps)
* exporting contacts, messages, call list in txt, csv, xml,
* chat with phone and other users
* terminal emulator with Shell In A Box
* user rights management, log
* works on wifi, 3g
* DynDNS support (it's a dinamic DNS service, after you register at dyndns.org, your phone will have an address like: myphone.homeip.net, this only works if you can reach your phone using its IP address)
* if your 3g internet provider blocks the incoming connection to your phone, then you cannot connect using its IP address or DynDNS, but you can connect through our server (the phone starts the connection like GoogleTalk does)
* user admin has a random password each time, but you can add new users. The connection is not encrypted, we are planning to use https instead of http
* opensource (it is licensed under General Public License)
* most of the functions uses only C++ part, which has very low memory footprint and almost no CPU use in idle.
* Homepage: androidwebkey.com
Feel free to ask for features and send bugs.
Market Link
I don't trust this AT ALL!!!
Yzord said:
I don't trust this AT ALL!!!
Click to expand...
Click to collapse
Why? Everything works as listed. It's opensource, you can compile it for yourself.
Sorry for my attitude. It is not personal, but these kind of apps give me the creeps...
Yzord said:
Sorry for my attitude. It is not personal, but these kind of apps give me the creeps...
Click to expand...
Click to collapse
That's all right. But I can't image a way to make it more trustable.
Pretty slow but it works.
evilkorn said:
Pretty slow but it works.
Click to expand...
Click to collapse
If there is a demand for this, we will hire a server with a faster connection. It seems like all the 3G internet providers blocks the incoming connection to the phone in USA, so we have to redirect the packets through our server. In Europe the situation is better, and we can connect to the phone directly.
Webkey listens on all interfaces, so if you manage to set up a VPN, it will work.
morapeter said:
If there is a demand for this, we will hire a server with a faster connection. It seems like all the 3G internet providers blocks the incoming connection to the phone in USA, so we have to redirect the packets through our server. In Europe the situation is better, and we can connect to the phone directly.
Webkey listens on all interfaces, so if you manage to set up a VPN, it will work.
Click to expand...
Click to collapse
I know for AT&T unless you have the laptop connect type package, ie: APN is isp.cingular, this is true. So nearly all AT&T mobile phones will have this limitation.
I like that you've worked around it using this method, I think I'll have to give this a try myself.
Also sounds like something a business might be interested in having, but their own server.. Is the communications secure between the phone and server?
khaytsus said:
I know for AT&T unless you have the laptop connect type package, ie: APN is isp.cingular, this is true. So nearly all AT&T mobile phones will have this limitation.
I like that you've worked around it using this method, I think I'll have to give this a try myself.
Also sounds like something a business might be interested in having, but their own server.. Is the communications secure between the phone and server?
Click to expand...
Click to collapse
There is nothing new about this topic. Virtual Private Network is made for this, it's secure and everyone can have an own server (although it's not so easy to set it up, but most of the firmwares support it on the phone). There are several other solutions, for example ssh reverse port forwarding (-R option), or socat can create a tunnel device as well. None of these solutions were good for us, because I didn't want to mess up anything on the phone like creating new network interface, or maintain a ssh tunnel.
Our solution is simple. The phone creates a TCP connection to the server and listen on that. It reopens it when it closed. Whenever a user connects to our site from a browser, the server searches for the appropriate socket, and connects them.
It's not secure yet, but I'll finish https when I have time. After that the connection will be secure between the browser and the phone (which is better than securing the connection between the phone and the server).
I like where this app is going. Seems good.
I ran this before on 2.1, but now Webkey won't run on my Evo running Froyo. It just hangs with black screen on start. I am running the rooted stock 2.2 ROM and other apps requiring root run fine. Any ideas?
Also, I'm a developer and want to add an option to select an http port to listen on. I'm pretty sure http will work fine over another port, like 8080 (over Sprint without using your proxy server), and I wanted to mod the code (and submit to you) if it works. Is it obvious how to build the full solution from the C and Java sources? Just Java I've done, but not built an app requiring the NDK, yet.
Thanks!
So if I understand this correctly, this relies on a server at some fixed location, as well as an apk on the phone.
Is the server source available so that I could modify the APK to point to my own server? It seems that the sources you provide are only to rebuild the APK, and that a user would have to trust your server.
wvufan said:
I ran this before on 2.1, but now Webkey won't run on my Evo running Froyo. It just hangs with black screen on start. I am running the rooted stock 2.2 ROM and other apps requiring root run fine. Any ideas?
Also, I'm a developer and want to add an option to select an http port to listen on. I'm pretty sure http will work fine over another port, like 8080 (over Sprint without using your proxy server), and I wanted to mod the code (and submit to you) if it works. Is it obvious how to build the full solution from the C and Java sources? Just Java I've done, but not built an app requiring the NDK, yet.
Thanks!
Click to expand...
Click to collapse
At start the Java code tests whether it needs to extract files. I assume that something changed on Froyo. Do you have a directory /data/data/com.webkey after install? Or does it put it on the SD card?
There is a function for changing port. You can do it from the Java gui.
For the compiling (under linux):
I used "Customized Android NDK r3 with enabled support of C++ exceptions, RTTI and Standard C++ Library", see
http://www.crystax.net/android/ndk-r3.php
and downloaded the precompiled binaries. Please find a build.sh in c.zip (I uploaded it right now). It uses my directory structure, but I hope you can find out how it works. There are some bash tricks with grep and sed to generate the menu in every html. The README.txt might help as well. Feel free to ask about anything.
heilpern said:
So if I understand this correctly, this relies on a server at some fixed location, as well as an apk on the phone.
Is the server source available so that I could modify the APK to point to my own server? It seems that the sources you provide are only to rebuild the APK, and that a user would have to trust your server.
Click to expand...
Click to collapse
In some countries you don't have to use the server (the internet providers don't block), but yes, you are right. The server code is a python script and I need to check it (again) for security leaks before opening it and ask permission from the other developer. I would say this will happen this weekend. (However, the protocol is simple. It couldn't be simpler.)
There are some other solutions for this problem:
- If you set up a Virtual Private Network on the phone (I never did that, but reverse ssh port forwarding worked for me), then you don't have to use our server.
- I hope in the next release there will be https, which encodes the data between the phone and the browser (after that you if you check the certificate then you can trust to any server). I try to finish it in a week.
I believe the publication of a program like this needs extra care because of its reputation. Before https there won't be a Market version, where you can change the server address (because of security reason). Of course, if you would like it, I'm happy to send you an apk where you can change the server address, or you can compile it for yourself.
Alright, so where can I download this from please? The hompage link is not working.
Aqua1ung said:
Alright, so where can I download this from please? The hompage link is not working.
Click to expand...
Click to collapse
It should work, please try again. It is also available on the Market (search for Webkey).
Okay, now it works. Thanks. All I gotta do now is root my phone
As for suggestions, how about taking pictures remotely using the FFC and/or BFC? Just in case your phone gets stolen or lost...
Aqua1ung said:
Okay, now it works. Thanks. All I gotta do now is root my phone
As for suggestions, how about taking pictures remotely using the FFC and/or BFC? Just in case your phone gets stolen or lost...
Click to expand...
Click to collapse
Nice Now you have to start the camera program and watch the screenshot . I'll check what can I do with the camera device from C++.
This is a great app. I love how you can upload and download from your sd card! The remote control is a little slow over 3g, but very promising. Thanks
stickerbob said:
This is a great app. I love how you can upload and download from your sd card! The remote control is a little slow over 3g, but very promising. Thanks
Click to expand...
Click to collapse
Well... There is an option in AjaXplorer, which downloads several files in a zip archive (even directories), but I was lazy, I didn't implement it in C++ (although the zip library was already there because of the png library). I don't promise to finish it in the following weeks, but I'll do it sometime.
Within my company we use a DNS suffix to connect to the internet/intranet. Without that DNS suffix you can not do anything. Does anyone know how to add this within android. Also it is not an IP rather a FQDN.
Thanks!
ssjgoku24 said:
Within my company we use a DNS suffix to connect to the internet/intranet. Without that DNS suffix you can not do anything. Does anyone know how to add this within android. Also it is not an IP rather a FQDN.
Click to expand...
Click to collapse
Add
Code:
search example.com
to resolv.conf. FWIW, what you are doing is pretty much broken. (As for "you cannot do anything, that is simply not true, the name resolution will not work without specifying FQDN - i.e., will not autoappend domain-suffix - that is all.)
Not really sure whether the DHCP client on Android supports this (ISC DHCP v4 does support DHCP option 119).
Also, unless the dhcp client gets run with -R option (talking about isc-dhcp here), resolv.conf will get overwritten.
IOW, fix your DHCP/DNS to use FQDNs everywhere.
Thanks for the help.
So basically there isn't a way to do this on android because of the broken functionality? I don't have access to the servers to change the way the DNS works.
Well, I pretty much see this as a non-issue. Simply use FQDNs for whatever you need and that is all; "we use a DNS suffix to connect to the internet/intranet" does not make much sense really.
Okay. Let me put it this way. I cannot access www.google.com (or any network resource) on any pc without adding example.com to the DNS suffix list under the advanced properties of ipv4 in the network adapters properties. Because there is no option like this on android I cannot browse the web, or access anything. All you get is this page could not be displayed.
ssjgoku24 said:
Okay. Let me put it this way. I cannot access www.google.com (or any network resource) on any pc without adding example.com to the DNS suffix list under the advanced properties of ipv4 in the network adapters properties. Because there is no option like this on android I cannot browse the web, or access anything. All you get is this page could not be displayed.
Click to expand...
Click to collapse
What?
Code:
> adb shell
$ getprop | grep dns
Kindly post the output.
ssjgoku24 said:
Okay. Let me put it this way. I cannot access www.google.com (or any network resource) on any pc without adding example.com to the DNS suffix list under the advanced properties of ipv4 in the network adapters properties. Because there is no option like this on android I cannot browse the web, or access anything. All you get is this page could not be displayed.
Click to expand...
Click to collapse
What?
Code:
> adb shell
$ getprop | grep dns
Kindly post the output.
P.S. Regardless the above (since I do not feel like debugging the über-broken network setup in $your_company for much longer). Kindly note the IP address, netmask and gateway settings you get when using DHCP. Then go to WiFi settings, select Advanced, check Use static IP, input the details noted before there and stick 8.8.8.8 and 8.8.4.4 to the DNS1/DNS2 fields. This way, you can browse internet just fine using Google public DNS servers.
[net.change]: [net.dnschange]
[net.dnschange]: [56]
[net.rmnet0.dns1]: [68.28.154.91]
[net.rmnet0.dns2]: [68.28.146.91]
[net.dns1]: [153.80.17.120]
[net.dns2]: [192.127.43.152]
[dhcp.eth0.dns1]: [153.80.17.120]
[dhcp.eth0.dns2]: [192.127.43.152]
[dhcp.eth0.dns3]: []
[dhcp.eth0.dns4]: []
Thats the output. But I tried putting in google's DNS like you said and I get nothing.
Well, simply put - assuming 153.80.17.120 and 192.127.43.152 are those DNS servers of your company (I cannot see any WiFi anywhere in the output you posted, maybe your phone is special and calls wifi iface as eth0 instead of wlan0) - those are supposed to resolve www.google.com or whatever else. With or without any idiotic suffix. You can check this like
Code:
nslookup www.google.com 153.80.17.120
on a Windows box (or in a similar way on Linux/MacOS). If they do not do this unless you use the suffix, then your network admins need a kick in their ass and that is the end of the story. Sorry, this is not an Android problem at all.
P.S. Not really sure what you mean by "get nothing", getprop should show the Google servers instead of your broken ones once you have done that.
Alright. Thanks for your help.
If anyone else has a solution please feel free to help me out.
Thanks!
P.S. I'm using CM7 on an Evo 4G
How do you change the DNS, not for wifi, but for mobile data? Does it improve browsing performance?
Here is what I found out, thanks to zeppelinrox, on how to change the DNS for the droid charge, you can use script manager to run it every hour or 2 since if you loose connection or whatever the DNS will revert back to verizon. You can use whatever DNS you want. You can put it in the init folder but you need too add a sleep time like sleep 30 or longer play around with it and after reboot go to myresolver.info to check if the settings went through. The script below changes wifi, 3G and 4G DNS
#!/system/bin/sh
setprop dhcp.tiwlan0.dns1 208.67.222.222
setprop dhcp.tiwlan0.dns2 208.67.220.220
setprop net.ppp0.dns1 208.67.222.222
setprop net.ppp0.dns2 208.67.220.220
setprop net.dns1 208.67.222.222
setprop net.dns2 208.67.220.220
setprop net.rmnet0.dns1 208.67.222.222
setprop net.rmnet0.dns2 208.67.220.220
setprop net.pdpbr1.dns1 208.67.222.222
setprop net.pdpbr1.dns2 208.67.220.220
maurogg84 said:
How do you change the DNS, not for wifi, but for mobile data? Does it improve browsing performance?
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
Click to expand...
Click to collapse
See this I would follow the instructions for manually changing the info as the CWM zips may not work for the Charge.
imnuts said:
See this I would follow the instructions for manually changing the info as the CWM zips may not work for the Charge.
Click to expand...
Click to collapse
I did the changes, but it seems they don't stick after reboot, would the following commands work if I put them in a script for the init.d folder?
setprop ro.kernel.android.ndns 2
setprop net.eth0.dns1 208.67.222.222
setprop net.eth0.dns2 208.67.220.220
Edit the file /system/etc/ppp/ip-up and change the lines specified. That should allow the changes to stick through a reboot, and will take effect anytime you enable/disable the data connection.
imnuts said:
Edit the file /system/etc/ppp/ip-up and change the lines specified. That should allow the changes to stick through a reboot, and will take effect anytime you enable/disable the data connection.
Click to expand...
Click to collapse
I did, just thought that the ip-up would keep the DNS addresses, but after reboot I checked the file again and the file reverted to the original without the addresses. That's why I assumed they didn't stick. But since I did then is ok. Is there a way to check in terminal what DNS are you using?
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
Make sure that /system is mounted as read-write and that you saved the file. Otherwise, it will revert (or not save at all). To check to see if it worked, I would navigate to http://myresolver.info and it will tell you the DNS address you used. Then, you may just need to look at the hostname for the DNS ip to figure out if it worked as most places use anycast now to route you to the closest host.
imnuts said:
Make sure that /system is mounted as read-write and that you saved the file. Otherwise, it will revert (or not save at all). To check to see if it worked, I would navigate to http://myresolver.info and it will tell you the DNS address you used. Then, you may just need to look at the hostname for the DNS ip to figure out if it worked as most places use anycast now to route you to the closest host.
Click to expand...
Click to collapse
That's probably what happened, I didn't do it with root explorer, I'll try again. Thanks!
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
maurogg84 said:
That's probably what happened, I didn't do it with root explorer, I'll try again. Thanks!
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
Click to expand...
Click to collapse
I doubt it will make your browser go faster. Try xscope browser see if it's faster. If it is then nothing to do with DNS, but something is funky with your stock browser/phone.
The app SetDNS seems to work. It's pretty easy.
Sent from my SCH-I510 using XDA App
xdadevnube said:
The app SetDNS seems to work. It's pretty easy.
Sent from my SCH-I510 using XDA App
Click to expand...
Click to collapse
I thought that only changed the DNS for wifi.
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
buhohitr said:
I doubt it will make your browser go faster. Try xscope browser see if it's faster. If it is then nothing to do with DNS, but something is funky with your stock browser/phone.
Click to expand...
Click to collapse
It won't make the connection faster, but it will likely speed up DNS lookups (and reliability) which can make things seem faster.
Editing /system/etc/ppp/ip-up didn't work for me either. I verified that the file saved properly, but on reboot or airplane mode toggle, everything returned to default. I even added a bogus setprop in ip-up as a test. After cycling airplane mode, running getprop didn't show my bogus entry. It's almost as if /system/etc/ppp/ip-up isn't being called at all.
[edit: Once I dropped to 1X service (my signal sucks at work), my bogus setprop entry showed up. I had already pulled out my custom DNS entries from while I was testing, but I thought this was rather interesting. So it appears that /system/etc/ppp/ip-up is only called when dropping to 1X service. I could be entirely wrong, though.]
imnuts said:
It won't make the connection faster, but it will likely speed up DNS lookups (and reliability) which can make things seem faster.
Click to expand...
Click to collapse
Isn't this type of change asking for trouble? Assuming the two ip addresses shown are verizon's, what happens when they change? What happens when verizon reorgs their networks? Isn't it safest to take all of the DHCP settings verizon pushes to you?
My apologies if I missed the obvious here but I always use the DNS servers my WAN provider assigns and change them when they instruct me to. And yes, it has actually happened.
Sent from my SCH-I510 using XDA
Reilly1812 said:
Isn't this type of change asking for trouble? Assuming the two ip addresses shown are verizon's, what happens when they change? What happens when verizon reorgs their networks? Isn't it safest to take all of the DHCP settings verizon pushes to you?
My apologies if I missed the obvious here but I always use the DNS servers my WAN provider assigns and change them when they instruct me to. And yes, it has actually happened.
Sent from my SCH-I510 using XDA
Click to expand...
Click to collapse
It sounds like you may be confused about what DNS does. It is the system that converts a name, like www.google.com, to an IP address that your computer can actually use. Google's IP addresses aren't different for Verizon than they are for Sprint or AT&T or Comcast or anyone else. It's the same with anyone else. DNS is a universal system that returns the same output for the same input regardless of what server you are using. The problem is that a lot of ISP run DNS servers are poorly configured, poorly maintained pieces of trash. That's why public servers like OpenDNS or Google DNS exist. They are far more reliable, and often far quicker than your ISP DNS server. I haven't used my ISP's DNS servers in a decade. Prior to OpenDNS, I ran my own DNS server.
Reilly1812 said:
Isn't this type of change asking for trouble? Assuming the two ip addresses shown are verizon's, what happens when they change? What happens when verizon reorgs their networks? Isn't it safest to take all of the DHCP settings verizon pushes to you?
My apologies if I missed the obvious here but I always use the DNS servers my WAN provider assigns and change them when they instruct me to. And yes, it has actually happened.
Sent from my SCH-I510 using XDA
Click to expand...
Click to collapse
The only thing you'll loose is the backup VZW DNS server. The only two things that I've found that you need VZWs DNS info for are OTA updates and MMS as they use internal hostname info that Verizon doesn't share. That is why you can't change both of them.
As far as your home ISP and them asking you to change DNS servers, several people have "lost" there internet connection at home because the ISP DNS servers are junk, and almost no one switches them from the default ever. This was a huge issue for Comcast a few years ago, and I know that other ISPs have had issues with reliability as well as updating DNS info so that it points to the correct location. OpenDNS and Google tend to update their info faster, and also offer faster lookups for names than ISP DNS servers, despite the fact that you have to go out of network to contact them.
imnuts said:
Make sure that /system is mounted as read-write and that you saved the file. Otherwise, it will revert (or not save at all). To check to see if it worked, I would navigate to http://myresolver.info and it will tell you the DNS address you used. Then, you may just need to look at the hostname for the DNS ip to figure out if it worked as most places use anycast now to route you to the closest host.
Click to expand...
Click to collapse
Ok so I did the correct procedure to change the DNS, it maintained the change through reboots, but when I go to the website you mentioned with 4g connection, it didn't show the opendns addresses I added to the IP-up file.
Your IP address
2600:1004:b000:6d7:0:2:6cc7:8901 (?)
The source IP address of your DNS recursive resolver
66.174.95.212 (?)
njbrsdns2.myvzw.com
I'll have to look at it as it may setup the 4G connection differently. I do know that it worked quite well for me on the Fascinate and on my Charge for 3G.
You have a long ipv6 name....
Sent from my SCH-I510 using XDA
Shadowchasr said:
You have a long ipv6 name....
Sent from my SCH-I510 using XDA
Click to expand...
Click to collapse
Is it here when one say "that's what she said!"? lol
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
see the original post!
Unlike other FTP Server apps we have released an FTP Server with almost all the features you can think of. Some features FTP Server Ultimate has and most other apps don't have:
- Add multiple users: and give every user their own root, allow write access and force stay in given root directory
- Run FTP server over SSL (FTPS Implicit) to have a secure connection
- Or run FTP server over SSH (SFTP) to be even more secure! With even support for Secure Copy (SCP) and public key authentication.
- Run multiple servers at the same time!
- Extensive logging!
- No root needed!
And more features:
- Start/Stop a FTP server automatically when connected/disconnected from a specified WIFI network, or on boot
- Optionally only allow specified IP addresses to access a FTP Server
- Add a Dynamic DNS Updater using the local or public IP of your device
- UTF-8 support
- Optional anonymous access
- The FTP Server can be accessed from the web (for example through your 3G connection) if supported by your mobile network
- No more need for an USB cable
- Share files with other devices
You can download it for free from Google Play (see the link below). I would appreciate it if you could leave a message stating what you think of the app, whether it works ok and whether you are missing anything. Quite some time has been put into it.
FTP Server Ultimate on Google Play
Video review by JIMMYMCGEE:
XDA TV
FAQ
How come I can't run a server on a port below 1024?
That is a limitation of Android. However, you can try out our app Port Forwarder Ultimate which allows you to access the server on a port below 1024! So you can for example run it on port 21.
All feedback is welcome!
No feedback yet? I would really appreciate it if someone could try it out and let me know what you think of it. I really have put some time into it
Thanks
Did anyone try the app yet?
I tried it just now!
I dig it!
A suggestion if I may:
Add a little more dummy-proofing like tell them their connect string is "ftp://192.168.0.7:41839/" or whatever... and for both public and local URLs. Instead of just letting them know their current port number and IP addresses, etc. People familiar with FTP and FTPS will get it but n00bs will get lost.
In all I dig it tho! I'll use it!
Thanks man!
---------- Post added at 10:10 AM ---------- Previous post was at 09:35 AM ----------
Vibrate on Connect (with my Galaxy Note SC-05D) isn't working.
And a status window with connected users (IP and/or login_name) and current operation (sending, receiving, CD folder name, etc) would be really nice - and in the basic version - it's kind of a safety thing IMO. Then press-holding on a user name should bring up an option panel menu: Kick, Kick-ban IP, Kick-Ban UserName, (and in the pay version: Send message).
Here's a little treat for ya... Opened into PhotoShop directly from my SC-05D phone:
http://tesselator.gpmod.com/Images/Temporary/FTP_Grab.png
Now all I need is a gopher server and I'll be in retro-la-la-land! (j/k of course)
Bifurcator said:
I tried it just now!
I dig it!
A suggestion if I may:
Add a little more dummy-proofing like tell them their connect string is "ftp://192.168.0.7:41839/" or whatever... and for both public and local URLs. Instead of just letting them know their current port number and IP addresses, etc. People familiar with FTP and FTPS will get it but n00bs will get lost.
In all I dig it tho! I'll use it!
Thanks man!
---------- Post added at 10:10 AM ---------- Previous post was at 09:35 AM ----------
Vibrate on Connect (with my Galaxy Note SC-05D) isn't working.
And a status window with connected users (IP and/or login_name) and current operation (sending, receiving, CD folder name, etc) would be really nice - and in the basic version - it's kind of a safety thing IMO. Then press-holding on a user name should bring up an option panel menu: Kick, Kick-ban IP, Kick-Ban UserName, (and in the pay version: Send message).
Here's a little treat for ya... Opened into PhotoShop directly from my SC-05D phone:
http://tesselator.gpmod.com/Images/Temporary/FTP_Grab.png
Now all I need is a gopher server and I'll be in retro-la-la-land! (j/k of course)
Click to expand...
Click to collapse
Great to hear it's all working ok! Did you also try the sftp or ftps server? Thanks for the feedback!
Would you also be able to leave a review on Play? I would really appreciate that!
Did anyone else try the app??
Themuzz said:
Great to hear it's all working ok! Did you also try the sftp or ftps server? Thanks for the feedback!
Would you also be able to leave a review on Play? I would really appreciate that!
Click to expand...
Click to collapse
I did all those things yesterday!
Themuzz said:
Unlike other FTP Server apps we have released an FTP Server with almost all the features you can think of. Some features FTP Server Ultimate has and most other apps don't have:
- Add multiple users: and give every user their own root, allow write access and force stay in given root directory
- Run FTP server over SSL (FTPS Implicit) to have a secure connection
- Or run FTP server over SSH (SFTP) to be even more secure! With even support for Secure Copy (SCP) and public key authentication.
- Run multiple servers at the same time!
- Extensive logging!
- No root needed!
And more features:
- Start/Stop a FTP server automatically when connected/disconnected from a specified WIFI network, or on boot
- Optionally only allow specified IP addresses to access a FTP Server
- Add a Dynamic DNS Updater using the local or public IP of your device
- UTF-8 support
- Optional anonymous access
- The FTP Server can be accessed from the web (for example through your 3G connection) if supported by your mobile network
- No more need for an USB cable
- Share files with other devices
You can download it for free from Google Play (see the link below). I would appreciate it if you could leave a message stating what you think of the app, whether it works ok and whether you are missing anything. Quite some time has been put into it.
FTP Server Ultimate on Google Play
FAQ
How come I can't run a server on a port below 1024?
That is a limitation of Android. However, you can try out our app Port Forwarder Ultimate which allows you to access the server on a port below 1024! So you can for example run it on port 21.
All feedback is welcome!
Click to expand...
Click to collapse
How to access from the web?
I'm using it and it works great!
Are all of the same features present in your "servers ultimate " app?
Sent from my M886 using Tapatalk 2
Great APP! Thanks!
This got featured on the XDA portal!
Downloading and reviewing just for the sake of the hard work you put.
I'm having problems (Can't connect) using this with my Samsung GT-7100 Galaxy Note II.
I think is not an App problem but from the device. Every time i try to connect I'm getting this message : "ECONNREFUSED - Connection refused by server"
Using other FTP Server and same result.
Never had this issue with my other device Galaxy S III.
Any ideas how to solve this problem?
Thanks
rickyx said:
How to access from the web?
I'm using it and it works great!
Click to expand...
Click to collapse
Good to hear it works. About accessing from the web, you will need to use the public IP (visible under the info button on the start screen of the app). However, depending on your internet provider it might not work (some internet providers block it). If you use it through wifi you would need to enable port forwarding.
jbrt said:
Are all of the same features present in your "servers ultimate " app?
Click to expand...
Click to collapse
Yes, however, this app will be updated faster and is way less intensive to run on your device, since it's focused on FTP.
rind said:
Great APP! Thanks!
Click to expand...
Click to collapse
You're welcome
theDroidfanatic said:
This got featured on the XDA portal!
Downloading and reviewing just for the sake of the hard work you put.
Click to expand...
Click to collapse
I just read it on XDA, great article! And thanks for the reviewing, really appreciate it.
M3xital said:
I'm having problems (Can't connect) using this with my Samsung GT-7100 Galaxy Note II.
I think is not an App problem but from the device. Every time i try to connect I'm getting this message : "ECONNREFUSED - Connection refused by server"
Using other FTP Server and same result.
Never had this issue with my other device Galaxy S III.
Any ideas how to solve this problem?
Thanks
Click to expand...
Click to collapse
That sounds like a port forwarding problem. Do you try to access it through WIFI and are you with the client on the same WIFI network? Could you elaborate a bit?
It would be great if everyone who tries it let's me know whether it works ok and whether you are missing anything. Also, reviews on Android Play are of course welcome
Thanks!
Themuzz said:
Good to hear it works. About accessing from the web, you will need to use the public IP (visible under the info button on the start screen of the app). However, depending on your internet provider it might not work (some internet providers block it). If you use it through wifi you would need to enable port forwarding.
Yes, however, this app will be updated faster and is way less intensive to run on your device, since it's focused on FTP.
You're welcome
I just read it on XDA, great article! And thanks for the reviewing, really appreciate it.
That sounds like a port forwarding problem. Do you try to access it through WIFI and are you with the client on the same WIFI network? Could you elaborate a bit?
It would be great if everyone who tries it let's me know whether it works ok and whether you are missing anything. Also, reviews on Android Play are of course welcome
Thanks!
Click to expand...
Click to collapse
Hello I'm a bit of a noob at the whole FTP thing. I downloaded the app, set up the server, and enabled port forwarding on my router. How do I gain access to the server? When I type my public ip into the url bar it just goes to my router login. I'm confused...
Thanks for any help!
Edit: I tried switching to 3G. I got a different public IP but I still got a "could not connect" error in the browser.
Sidenote-When I slide up the log menu it shows the different servers underneath, like there's no background in the log menu.
Themuzz said:
That sounds like a port forwarding problem. Do you try to access it through WIFI and are you with the client on the same WIFI network? Could you elaborate a bit?
Click to expand...
Click to collapse
I'm trying to access through WiFi and yes client is on the same WiFi.
Server SSID Behaviour
Hi and thanks for putting this out. I've added, run and connected to a SFTP server with no problems But here's my problem - I'd like the same server to run on multiple SSIDs (e.g. my home and work ones).
When I tick the "start server when connected to selected wifi network" box I can only enter a single SSID and have the server start automatically when a connection comes up. I took a long shot and tried entering my two SSIDs with common delimiters (comma, semi-colon, backslash etc.) but no dice - the server wouldn't start automatically when connecting to either SSID (which wasn't unexpected as it's worded in the app to indicate whatever is entered is meant to be a single SSID). In the log I could see the server stop when wifi went down, log when wifi was connected to any SSID and when a server started and stopped.
I then tried creating an exact copy of the first server but with a different SSID set. Upon trying to save the second new server the app warned about two servers using duplicate ports and wouldn't let me save it. Fair enough but, with the particular settings, neither server should be running at the same time i.e. they are both set to only run when connected to different SSIDs. Picky picky I know
I also tried leaving the SSID field blank.The thinking here was that, when left blank, it would try and start the server when any SSID was connected.
To summarise... the ability to start a server on: any wifi connection, multiple named SSIDs or a single SSID would be great.
not conecting
hi:
I set up the sftp server without problem, but when i tried to access i got an error.
I tried to connect with:
ssh -p serverport [email protected]
sftp [email protected]
sftp serverip
But i get,
for ssh:
ssh: connect to host serverip port sererport: Connection refused
for sftp:
Connecting to serverip
ssh: connect to host serverip port 22: Connection refused
Connection closed
However, i connected with winscp without problem.
So, do you have any idea of why i can't connect with ssh and sftp?
And if i could solve the problem, can i use scp?
BR
Really cool, worked good, f*** MTP
deaver_92 said:
Hello I'm a bit of a noob at the whole FTP thing. I downloaded the app, set up the server, and enabled port forwarding on my router. How do I gain access to the server? When I type my public ip into the url bar it just goes to my router login. I'm confused...
Thanks for any help!
Edit: I tried switching to 3G. I got a different public IP but I still got a "could not connect" error in the browser.
Sidenote-When I slide up the log menu it shows the different servers underneath, like there's no background in the log menu.
Click to expand...
Click to collapse
Ah, it sounds like you forget using the port number. For example, you have an FTP server running on port 2121 with internal IP 192.168.1.54 and enabled port forwarding on your router to forward outside port 2121 to inside IP 192.168.1.54 and port 2121. Now you can access the FTP server using your public IP, for example 123.123.123.123
However, you need to specify the port number when using the IP. If you use a browser, type: ftp://123.123.123.123:2121/ That should work.
Let me know!
M3xital said:
I'm trying to access through WiFi and yes client is on the same WiFi.
Click to expand...
Click to collapse
Ok, so client and server are on the same wifi. The server is, for example, running on 192.168.1.54 and port 2121, now on the client (probably a computer) use the browser and type in ftp://192.168.1.54:2121/
Let me know whether it worked!
Northernmost said:
Hi and thanks for putting this out. I've added, run and connected to a SFTP server with no problems But here's my problem - I'd like the same server to run on multiple SSIDs (e.g. my home and work ones).
When I tick the "start server when connected to selected wifi network" box I can only enter a single SSID and have the server start automatically when a connection comes up. I took a long shot and tried entering my two SSIDs with common delimiters (comma, semi-colon, backslash etc.) but no dice - the server wouldn't start automatically when connecting to either SSID (which wasn't unexpected as it's worded in the app to indicate whatever is entered is meant to be a single SSID). In the log I could see the server stop when wifi went down, log when wifi was connected to any SSID and when a server started and stopped.
I then tried creating an exact copy of the first server but with a different SSID set. Upon trying to save the second new server the app warned about two servers using duplicate ports and wouldn't let me save it. Fair enough but, with the particular settings, neither server should be running at the same time i.e. they are both set to only run when connected to different SSIDs. Picky picky I know
I also tried leaving the SSID field blank.The thinking here was that, when left blank, it would try and start the server when any SSID was connected.
To summarise... the ability to start a server on: any wifi connection, multiple named SSIDs or a single SSID would be great.
Click to expand...
Click to collapse
Good idea! Great to hear you tried all those options but unfortunately at this moment only one SSID can be specified. However, as soon as we thought of 2-3 more servers to add for the update we will also include the ability to select multiple SSID's
kurokirasama said:
hi:
I set up the sftp server without problem, but when i tried to access i got an error.
I tried to connect with:
ssh -p serverport [email protected]
sftp [email protected]
sftp serverip
But i get,
for ssh:
ssh: connect to host serverip port sererport: Connection refused
for sftp:
Connecting to serverip
ssh: connect to host serverip port 22: Connection refused
Connection closed
However, i connected with winscp without problem.
So, do you have any idea of why i can't connect with ssh and sftp?
And if i could solve the problem, can i use scp?
BR
Click to expand...
Click to collapse
Good point, the SFTP server only supports SFTP commands and will work great with all SFTP clients, however, SSH commands are not all supported. You can try the linux sftp command.
However, we also released an SSH Server (on Play) which also supports SFTP and SCP. So if you try that app you can connect through SSH commands from the command line.
Let me know whether it worked.
Mach3.2 said:
Really cool, worked good, f*** MTP
Click to expand...
Click to collapse
You're right, way easier and can be used wireless!
I would appreciate if if everyone could leave a review on Play. Thanks for the feedback, more comments are of course welcome!
Hi:
I tried your ssh server and with winscp i had no problems. I could also connect without problem trough ssh command. But when I tried scp, the server disconnect the command and some times the app closed itself.
I don't know why this happens, I hope you can help me. I could let it like this because with ssh command it is enough for me but it bothers me xd.
kurokirasama said:
Hi:
I tried your ssh server and with winscp i had no problems. I could also connect without problem trough ssh command. But when I tried scp, the server disconnect the command and some times the app closed itself.
I don't know why this happens, I hope you can help me. I could let it like this because with ssh command it is enough for me but it bothers me xd.
Click to expand...
Click to collapse
Could you send me the steps you took? So what client are you using and what command did you send that produced an error?