"Obtaining IP address" when connecting to WiFi My phone is suddenly stuck at "Obtaining IP address" when trying to connect to a WiFi. I've tried rebooting, deleting and re-adding the WiFi networks, restarting the router (all other devices connected to the router work fine), to no avail.

I'm running Android 7.0. I'd like to avoid a factory reset, so if anyone has an idea what else I could try, I'd appreciate it.
Beginning with with Marshmallow (possibly Lollipop, I was on it for such a short time I can't remember), there is an option in Settings,  Backup &amp; Reset called "Network Settings Reset" described here. This will reset all network settings only in the device, leaving other data intact. Note that all your WiFi passwords and any security certificates will be removed as well, but this will often correct the error you describe.