Last week my fiancée was having trouble connecting her laptop to her wireless internet. It connected to the router fine, but there was no internet and the network icon in the system tray had the message:
WiFi doesn’t have a valid IP configuration
My computer and phone were connecting fine, so I figured it must be an issue with her laptop - she has an HP running Windows 10 Home. Just in case, however, I rebooted the router, modem, and her laptop, but this had no effect.
I also tried the automated troubleshooter, but it failed to fix the problem.
I Googled the error message and came across this article on Microsoft.com that said to try these two commands in the administrator command prompt:
Unfortunately, this didn’t work. Instead, it gave me the following message:
No operation can be performed on Local Area Connection while it has its media disconnected.
Various articles such as this one on superuser.com just said that message meant nothing because the “media” that wasn’t connected was an ethernet cable.
Curious, I plugged her laptop into the router directly with an ethernet cable. The laptop now had access to the Internet. Now, some laptops have a physical switch that turns WiFi on and off, and I though she may have bumped it - I looked, and her laptop did not have such a switch.
I searched for the second error message (the “No operation can be performed on Local Area Connection while it has its media disconnected.”) and came across this thread on SuperUser.com, which suggested the following command, again as administrator in the command prompt:
Afterwards, I rebooted the computer, and the WiFi once again was working.
My guess is there was a Windows update that, for whatever reason, messed with the IP settings, so they had to be reset.