If restarting doesn't work, try these solutions
"WiFi doesn't have a valid IP configuration" on Windows 10 [Fix 2023]
A “Wi-Fi doesn't have a valid IP configuration” error message in Windows 10 or 11 occurs when your PC fails to secure a working Internet Protocol (IP) address over Wi-Fi. You may also encounter a similar IP-related error with Ethernet.
If restarting your computer doesn't resolve the issue (try doing so if you haven't already), the following troubleshooting tips may help resolve the issue.
In most cases, the error message "Wi-Fi doesn't have a valid IP configuration" appears due to random errors on the router side. The solution: restart your router.