Modifying IP settings - Galaxy Tab S Q&A, Help & Troubleshooting

Is there a programmatic way to modiufy IP settings like static/dhcp, gateway, dns etc?

Zilliman said:
Is there a programmatic way to modiufy IP settings like static/dhcp, gateway, dns etc?
Click to expand...
Click to collapse
Why programmatic? You can connect to WiFi using DHCP then go into settings, modify WiFi, check advanced then change DHCP to static then modify only the specific network settings you want (e.g. dns) and it will stick for that network between reboots.
If your rooted, install a terminal app and Busybox then you can write a shell script and use Linux network commands to modify your network settings. If you enabled init.d and crond you can further automate the whole thing. The app Tasker likely has these capabilities also. There are multi ways to accomplish what you want assuming I understand what your trying to accomplish.
Sent from my SM-T800 using XDA Premium HD app

Why programmatic? So that I can have an app where with a single click it will set my IP settings to "profile A" and then with another click it will set my IP settings to "profile B". One or two clicks and no more. The alternative is to go into settings and do the changes through the GUI but that is slow, tedious, laborious, repetitive etc.

Related

How to force the use of proxy ?

I want to connect to internet via a wifi proxy running on another computer. I have configured the network as 'Work'. Also configured the proxy at Start->Settings->Connections->Proxy . Also did PIE->Menu->Tool->Options->Connections Select (i.e check) "Automatically Detect Settings".
But PIE keeps connecting directly to internet via wifi. The direct connection also alows the internet access but I want to go via proxy. The setting in PIE "Automatically Detect Setting" uses proxy if there is no direct access to inetrnet.
Any idea how I can force PIE to use proxy instead of direct Wifi access.
Thanks
I do not think it is possible by the sounding of it, it does not seems possible but I could be wrong.
It seems that the use of proxy is dependent on the application implementation. Some application do use proxy and some do not. e.g. PIE uses it but messaging do not.
The behavior is similar to desktop applications. There also each application has its own proxy setting. In WM, apps do not have individual proxy setting, but they chose whether to use proxy or not.
http://msdn.microsoft.com/en-us/library/bb840031.aspx#EstablishingaConnection
Look into function ConnMgrEstablishConnection and dwflags (flags to request proxy)
Now to answer my own question. How to force apps to not to use proxy. There are three ways.
1. Delete all proxy.
2. All set up connection as "work" connection but set up work URL exceptions as */* or *
3. Set up connection as "internet".
Now to force the connection to use proxy. I do not think there is any way to do this. And this is what I wanted to do.

Custom DNS Servers

i searched and found a few threads but no answers.
can we use/change the default dns servers to something we want?
i can do this with the wireless and wired tether apps but i can not find where these are stored/changed within the phone.
i just cannot confirm that by changing them in the w'less/wired tether app's that the phone's 3G/4G isnt overriding that and using its own.
if it can be done via terminal or adb i have the terminal app on the phone can of course have adb on the PC.
I think there's somewhere in EPST where you can change the DNS settings, but to be honest, I wouldn't mess with them.

Possible to change my IP address?

In Windows you can reset the router, ipconfig/release and all that jazz...is there a way to reset (change) the IP address of an Android phone?
Thanks!
use termanal emulator and type su for super user access and then ifconfig becasue android is linux based
4g evo said:
use termanal emulator and type su for super user access and then ifconfig becasue android is linux based
Click to expand...
Click to collapse
And this will change my phone's IP address? Wow, thanks!
Toggle airplane mode. After you reconnect, you'll get a different IP.
Neither of those seem to work...
What specific IP address are you trying to change?
How is your android device connecting to the internet?
Just turn mobile network off and on. That will give you new ip.
Sent from my PC36100 using XDA App
You can use some Android Apps to change IP address. Get the app from appszoom.com and install it. After which you can check the change in your ip address using Ip-details.com
Use a proxy.
I guess you can bump a 2 year old thread
Sent from my PG06100

[Q] Changing proxy settings

Hi
I am wanting to use wi-fi in a local library. I can connect OK but need to change my proxy settings and port in order to access the internet. However, when I go somwhere else to connect to wi-fi I need to change the settings back. Is there a way to just keep these settings just for individual wi-fi systems or do I need to keep changing. I hope I am making sense. I know you can do this on the Galaxy S by the way.
towerpower said:
Hi
I am wanting to use wi-fi in a local library. I can connect OK but need to change my proxy settings and port in order to access the internet. However, when I go somwhere else to connect to wi-fi I need to change the settings back. Is there a way to just keep these settings just for individual wi-fi systems or do I need to keep changing. I hope I am making sense. I know you can do this on the Galaxy S by the way.
Click to expand...
Click to collapse
i use auto proxy app from PS to enable proxy setting on my phone.
I use ProxyDroid.
It allows you to store more than one "proxy profiles", so you can quickly switch between proxies. Turn it off, and the proxy settings will be reset to none.
.

WiFi settings app

Hello
I am looking for an Android application to allow me to choose different WiFi settings like Static IP or DHCP, DNS etc, at a click of a button.
I can do this already through settings but it is tedious. The reason is I have multiple networks at home, with multiple gateways, and would like to switch between them at the press of a button, rather than going into settings and having to type in the IP addresses and everything else from scratch.
Android does remember the settings, but it associates one set of settings with one SSID - you are not allowed to have multiple settings per SSID.
Many thanks

Categories

Resources