Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
resized image, copyedit
Source Link
Andrew T.
  • 16.5k
  • 10
  • 76
  • 127

I'm using a static IP configuration for accessing college WiFi inon my windowWindows laptop. For that, I'm using the following batch file (.bat) to configure the settings bywith one click. The file contains the following information:

netsh interface ip set address    name="Wireless Network Connection"     source=static addr=10.2.29.69     mask=255.255.0.0 gateway=10.2.19.27    gwmetric=1
 netsh interface ip set dnsDNS  name="Wireless Network Connection" name="Wireless Network Connection" source=static addr=10.2.19.28 primary
netsh interface ip add dnsDNS     name="Wireless Network Connection"    addr=4.2.2.2 index=2

The problem in configuring this in Android is that the above file contains two static addressaddresses (10.2.29.69 and 10.2.19.28) where aswhereas in Android, there is only one option to enter static IP address and there are two fields foefor DNS, but here in the file only one DNS is given so.

So, which IP should I enter in the IP address field of my phone. And what about 2nd DNS address?

Following is the screen shot of configuration screen of my phone.

enter image description here

I'm using static IP configuration for accessing college WiFi in my window laptop. For that I'm using following batch file (.bat) to configure settings by one click. The file contains following information:

netsh interface ip set address    name="Wireless Network Connection"     source=static addr=10.2.29.69     mask=255.255.0.0 gateway=10.2.19.27    gwmetric=1
 netsh interface ip set dns  name="Wireless Network Connection"    source=static addr=10.2.19.28 primary
netsh interface ip add dns   name="Wireless Network Connection"    addr=4.2.2.2 index=2

The problem in configuring this in Android is that the above file contains two static address(10.2.29.69 and 10.2.19.28) where as in Android there is only one option to enter static IP address and there are two fields foe DNS but here in file only one DNS is given so which IP should I enter in IP address field of my phone. And what about 2nd DNS address?

Following is the screen shot of configuration screen of my phone.

enter image description here

I'm using a static IP configuration for accessing college WiFi on my Windows laptop. For that, I'm using the following batch file (.bat) to configure the settings with one click. The file contains the following information:

netsh interface ip set address name="Wireless Network Connection" source=static addr=10.2.29.69 mask=255.255.0.0 gateway=10.2.19.27 gwmetric=1
netsh interface ip set DNS     name="Wireless Network Connection" source=static addr=10.2.19.28 primary
netsh interface ip add DNS     name="Wireless Network Connection" addr=4.2.2.2 index=2

The problem in configuring this in Android is that the above file contains two static addresses (10.2.29.69 and 10.2.19.28) whereas in Android, there is only one option to enter static IP address and there are two fields for DNS, but here in the file only one DNS is given.

So, which IP should I enter in the IP address field of my phone. And what about 2nd DNS address?

Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Source Link
Kaushal28
  • 103
  • 1
  • 6

Can't set static IP for WiFi correctly in Android device

I'm using static IP configuration for accessing college WiFi in my window laptop. For that I'm using following batch file (.bat) to configure settings by one click. The file contains following information:

netsh interface ip set address    name="Wireless Network Connection"     source=static addr=10.2.29.69     mask=255.255.0.0 gateway=10.2.19.27    gwmetric=1
 netsh interface ip set dns  name="Wireless Network Connection"    source=static addr=10.2.19.28 primary
netsh interface ip add dns   name="Wireless Network Connection"    addr=4.2.2.2 index=2

The problem in configuring this in Android is that the above file contains two static address(10.2.29.69 and 10.2.19.28) where as in Android there is only one option to enter static IP address and there are two fields foe DNS but here in file only one DNS is given so which IP should I enter in IP address field of my phone. And what about 2nd DNS address?

Following is the screen shot of configuration screen of my phone.

enter image description here