different tcpip settings per wireless network - Nexus One Q&A, Help & Troubleshooting

Has anyone found an easy work around for having different ip settings per wireless network? By default you can either have static or dhcp for all connections, you cant set this per ssid.
I found this but looks like it has just been sitting there since 2008
http://code.google.com/p/android/issues/detail?id=1215
I was thinking about starting to look at the system files to see if there was a way to edit the connections via a config file like a typical linux workstation, but not sure if the ssid and other wireless profile info is stored within android or in the system files...
basically I just want to set my own ip and dns server addresses when when I am connected to a particular ssid.
as a side note, xda search is terrible....it makes you wait 30 seconds between searches...

hmm, is it odd to have the below entries in the resolv.conf? or are the 8s used for something within android?
nameserver 8.8.8.8
nameserver 8.8.4.4

Is that Static Wifi app working for you?
I was looking for a similar solution but since I only had 1 problematic location just toggling the static IP setting on and off is taking care of my problem.
The static wifi app looks like you can do multiple locations and just select from a list.

hmm, wifi static looks promising, will try that out, from what i had read people thought it didnt set the settings based off of the access point, but it clearly has those settings...

disgustip8ted said:
hmm, is it odd to have the below entries in the resolv.conf? or are the 8s used for something within android?
nameserver 8.8.8.8
nameserver 8.8.4.4
Click to expand...
Click to collapse
Those are Google's OpenDNS servers. They're main nameservers for the internet.

haha yeah i just realized that like 15 minutes ago lol

Related

[Q] WiFi hotspot management?

On Symbian I could add all separate WiFi hotspots, routers, etc, to a big list of "Connection Points", and configure them separately. However, looks like there is no option for this on Android. Did I miss something or I really can't set up different proxy/static IP for different hotspots? I would need this feature really bad, as my school router uses a set of settings with the proxy, the home connection needs static IP (what of course does not works with the school system) and for open networks I need clean settings.
So, is there any apps or setting options to have separate set-ups for separate hotspots?
No idea, anyone?
fonix232 said:
No idea, anyone?
Click to expand...
Click to collapse
You cant do it like on symbian(never used it), you can change the settings for the wifi network, currently on and that's it...What you want is not available as far as i know.

[Q] open dns on apn setting

any ways of setting up open dns for apn setting and make it stays?
Try search apps like 'setDNS.apk'..
never use opendns on APN. isn't that opendns for computer or gateway if you want to block nasty websites on your company or home??
and in handphone i think it's no use to set your dns to opendns cause it's your personal device right?
OpenDNS is like any other DNS server, only with tons of options.
You can run in the terminal (as root)
Code:
# setprop net.dns1 208.67.222.222
and/or
Code:
# setprop net.rmnet0.dns1 208.67.222.222
but you will have to do it everytime the connection restarts and Script Manager can help you with that
dabl8 said:
but you will have to do it everytime the connection restarts and Script Manager can help you with that
Click to expand...
Click to collapse
oh just get setDNS like the original poster said. i have got it on my phone at the moment and have got the DNS set to openDNS. this for one makes the new market open 5 or 6 seconds faster than before - thats not my work, i got that off a post off here btw.

Block devices from casting

Any way to block devices from casting? I hate that my litter brother can cast on my chromecast in my room i had to take his tablet away because he thought it was hilarious to keep changing my google music to a stupid youtube video....smh
vwgti18 said:
Any way to block devices from casting? I hate that my litter brother can cast on my chromecast in my room i had to take his tablet away because he thought it was hilarious to keep changing my google music to a stupid youtube video....smh
Click to expand...
Click to collapse
Buy a wireless router. Connect the WAN port on that router to your existing network. Configure your devices for said router. Don't give your little brother your WiFi password.
Alternatively, just punch him in the stomach the next time he does it.
vwgti18 said:
Any way to block devices from casting? I hate that my litter brother can cast on my chromecast in my room i had to take his tablet away because he thought it was hilarious to keep changing my google music to a stupid youtube video....smh
Click to expand...
Click to collapse
Try to uninstall the setup app on his tablet. I think that will get rid of the button.
I would have no idea how to write these rules exactly, but if you have a Linux router you could:
- Assign a static DNS lease to Chromecast's MAC address
- Assign a static DNS lease to his tablet's MAC address
- Set up some iptables commands that discard all traffic directed from the tablet to Chromecast
- Or you could even go further and assign all your devices to a whitelisted range of IP addresses, configure the dynamic DNS range to be outside of that whitelist, and discard all traffic to Chromecast from outside the whitelist.
Alternatively it may be possible to segregate the network into two SSIDs that act as separate LANs.
Lol a block list would be useful
Sent from My S4 in BEASTMODE
sake40 said:
Try to uninstall the setup app on his tablet. I think that will get rid of the button.
Click to expand...
Click to collapse
He never had the setup app installed its just the new youtube update can detect the chromecast.
So what I did since I have ddwrt on my router I made a virtual ssid and connected him to that so hes not on my network no more. And now he cant stream movies from my hdd to his tab now im the one laughing haha.
Sent from my SPH-L900 using Tapatalk 4
cmstlist said:
I would have no idea how to write these rules exactly, but if you have a Linux router you could:
- Assign a static DNS lease to Chromecast's MAC address
- Assign a static DNS lease to his tablet's MAC address
- Set up some iptables commands that discard all traffic directed from the tablet to Chromecast
- Or you could even go further and assign all your devices to a whitelisted range of IP addresses, configure the dynamic DNS range to be outside of that whitelist, and discard all traffic to Chromecast from outside the whitelist.
Alternatively it may be possible to segregate the network into two SSIDs that act as separate LANs.
Click to expand...
Click to collapse
I think you mean static IP...or even static DHCP entry...
But no, that linux configuration would not work. Once devices get each other's mac address, the traffic between the two does not go between the router, it is just switched.
Me and my brother are on different ssid now and the chromecast cast button does not show up on his youtube app.
Sent from my SPH-L900 using Tapatalk 4
jumpmanjay said:
I think you mean static IP...or even static DHCP entry...
But no, that linux configuration would not work. Once devices get each other's mac address, the traffic between the two does not go between the router, it is just switched.
Click to expand...
Click to collapse
Sorry yes, I meant static DHCP. And you may be right - I don't know enough to say.
cmstlist said:
Sorry yes, I meant static DHCP. And you may be right - I don't know enough to say.
Click to expand...
Click to collapse
Trust me.
And if DD-WRT is set up to divide up into two SSIDs, is there any way to whitelist communication between the two networks?
cmstlist said:
And if DD-WRT is set up to divide up into two SSIDs, is there any way to whitelist communication between the two networks?
Click to expand...
Click to collapse
Yup on the second ssid I set up I cant see none of my computers or chromecast
Sent from my SPH-L900 using Tapatalk 4
If your brother's device is rooted: download an app from the Play Store called DisableService. I believe it's free. Open it up, click on the System tab, search for Google Play Services. Once you locate the Google Play services app, tap on it, and you should see a very long list of associated services pop up. Scroll through the list and uncheck pretty much anything starting with the word Cast. Exit out, reboot the device, and voila - the device cannot cast anymore.
This is also very useful if you'd like to prevent accidentally castng porn or something inappropriate on a community/public Chromecast device.
Oh and yeah obviously to re-enable just follow the same steps except recheck all the things, then reboot.

pfsense - US netflix in less then 5 min

I use an old PC running pfsense as my router and getting this to work with unblockus is a snap.... less the 5 min (no VPN needed).
( Page I found this on )
For the unbehaving Chromecast, with its hard-coded Google DNS, we are forced to add a NAT rule to reroute all DNS requests.
In Firewall | NAT | Port Forward, add a new rule with these settings:
RDR: Unchecked
Interface: LAN
Protocol: UDP/TCP
Source: IP of your Chromecast
Source port: any
Destination: any
Destination port: DNS (53)
Redirect target IP: the DNS server of unblock-us or similar service
Redirect target port: DNS (53)
I like this as it does not make everything in the house use unblockus... just the chromecast.
pfsense is a free router software that is VERY easy to install and use. It will even run off a live cd or thumb drive. You can pretty much just install it and it will work like any router out of the box... no need to really do anything... but if you want to, you can do almost ANYTHING with it. Used it for many years now (running on a P3 with 256 Meg ram) and will never use a store bought device again.
Cool, think I will check this out later, thanks for the info
Sent from my Windows Phone 8X
using Tapatalk
You don't need to redirect the Dns. It was my initial plan also until I learned another way. All I did on my plain old nergear was I blocked googles Dns. The chromecast is then forced to use whatever the router gives it via Dns.
**edit** sorry didn't read properly, didn't see that you didn't want the other services in the house to use the unblock service via the router

chromecast TV DNS options?

Is it possible to change the DNS server to such as nord dns to bypass region blocks? I see I can load a vpn to it easily but finding the right server is kinda annoying every time. So it's either this or buy a dedicated vpn up from nord.
does It not take the default from your dhcp server?
Go into network settings, choose static and configure everything there
xqz said:
Go into network settings, choose static and configure everything there
Click to expand...
Click to collapse
In spite of using static ip and setting up DNS numbers provided by my smartdns provider content is not getting unlocked. I think Chromecast is still bypassing the given DNS servers and reaching across to google DNS servers.
Google has been getting pretty overbearing when it comes to DNS lately. They're really pushing for DNS to be served over HTTPS, which makes sense from a "bypass port 53 redirects" perspective, but is terrible from a privacy and control-your-own-destiny perspective, since it basically allows the DNS to be addressed at the application level rather than the system level.
Not that this couldn't be done before, just that its now becoming mainstream, which is nasty.
So basically, what it is going to take to make it *better*, but not perfect, is to implement some fun stuff at the level of your ROUTER;
1) Block port 443 to all known DNS-over-HTTPS public servers; https://en.wikipedia.org/wiki/Public_recursive_name_server
2) Filter and redirect all requests to public servers on port 53 to DNS server of your choice.
Definitely not perfect, because nothing will stop an application from going to an unknown DNS-over-HTTPS server on the public internet.

Categories

Resources