Affichage des articles dont le libellé est static. Afficher tous les articles
Affichage des articles dont le libellé est static. Afficher tous les articles

vendredi 29 janvier 2016

Setting static IP prevents device remembering WiFi password, prevents auto-connect



Note4, N910T3, rooted, but otherwise stock Android 5.1.1 from T-Mobile/Samsung's OTA update. Having trouble with WiFi and static IP:

If I use DHCP, WiFi works fine. It'll remember my LAN's WiFi password and auto-connect when available.

However, problems occur when I try to use a static IP (yes, I have reason to want a static IP within my LAN, but the reasons aren't relevant to the issue here):

First (this is the smaller issue, but still goofy and annoying), when I go to "Modify Network Config" Android won't allow me to set a static ip unless I'm already connected to the given network. It'll let me change "IP settings" from "DHCP" to "Static", but the "IP address" setting is greyed out. I have to connect using DHCP first, only then will it allow me to change the "IP address" setting for a static IP.

But here's the far bigger problem: Once I have worked around that issue and actually set a static IP, the next time I leave the network and come back (or just turn WiFi off and back on) it no longer auto-connects. When I try to manually connect, it's forgotten both the WiFi password and the static IP setting.

How can I make Android remember WiFi network settings AND use a static IP for a given connection?

Download from this link