Is it possible to assign a static IP address without a DNS in Android 5.1? Is there anyway to achieve it? I can do this in iOS so I'm wondering.
2 Answers
First, without DNS the network connection won't be much helpful to you: you will need DNS to resolve host names to IPs – or entering something like www.google.com
into the browser's address bar will just give you an error.
Which does not mean you cannot use a DNS server other than Google's.
From your homescreen:
- Press the Menu key, select Settings
- Go to your WiFi settings, where your list of known/available networks is displayed
- Long-Tap (tap-and-hold) the entry for your AP
- Select Edit
- Tap Advanced
Now you will see a form allowing you to override things: you can disable DHCP, then specify a fixed IP plus the related network settings – mask, default route, and – Tada! – DNS servers.
-
Ding! Ding! Ding! We have a winner!.....I forgot about the advanced settings. Commented Apr 2, 2015 at 16:46
-
@HasH_BrowN Oh! A little hidden they are, aren't they? :) Hm, winner without upvotes/acceptance currently ;)– IzzyCommented Apr 2, 2015 at 18:16
-
-
Ok let me give you a more broad explanation to show you what I want to achieve. Thing is I'm using a Raspberry Pi to stream music wirelessly inside my car. The Pi has a wireless network without real a exit to the outside world. I want to connect to that 'internet-less' network and still be able to stream music with my mobile LTE connection. My device works perfectly with iPhones. I set a static IP on the iPhone without specifying DNS and works as intended. I cant achieve that with my Nexus 5. As soon as I connect to the Pi network LTE network is gone, no Pandora, nothing.– RhyukCommented Apr 6, 2015 at 18:40
-
1Anytime! That's one of our major issues. Knowing helps you avoiding it – and getting better help here that way :)– IzzyCommented Apr 6, 2015 at 20:59
Check this : http://androidforums.com/threads/set-up-static-ip.503213/
if doesnt work or you can't find it, for dns,
set Google dns. Example :
Dns1 : 8.8.4.4
Dns2 : 8.8.8.8
hope this helps.
-
Thing is that Android forces me to use Googles DNS. I would like to use none.– RhyukCommented Mar 23, 2015 at 16:47
-
@mohsen : The link might go down in future. Please consider posting synopsis so that the future reader becomes aware of what the link was all about in details?– Firelord ♦Commented Mar 23, 2015 at 16:48
-
@Rhyukmy : i think it doesnt matter, anyway, if google Want to Abuse, can do it :).@FireLord : this is about set or dont set DNS, take it easy.– ʍѳђઽ૯ทCommented Mar 23, 2015 at 16:57
-
So how can I connect to a Wifi using a static IP and no DNS? iOS is perfectly capable of doing this :(– RhyukCommented Mar 23, 2015 at 18:20