0

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

0

It would be best to choose your static IP address from the main gateway. In this case 10.2.19.27 . So IP address is anything from 10.2.19.xx where xx is any number from 1 to 255 (depends on network prefix) apart from 27.

It is also okay to put the gateway address as the first DNS entry and as for the second either put a public DNS like Google DNS e.g 8.8.4.4 or Open DNS like configured in your settings 4.2.2.2

After that ping and see if the address is reachable

  • thank you for the answer, I'll try once accept the answer. – Kaushal28 Apr 25 '17 at 6:56
  • Thats okay let me know if it works – xavier_fakerat Apr 25 '17 at 7:56
  • I'm on vacation :p. For checking I've to go collage :) I'll definitely let you know. – Kaushal28 Apr 28 '17 at 2:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.