Quick Answer
Delete the wireless network profile from Control Panel > Network and Sharing Center > Manage Wireless Networks, then forget the network in Windows Settings. Also flush DNS: ipconfig /flushdns in admin Command Prompt.
What Triggers This Error
You'll see STATUS_UNEXPECTED_NETWORK_ERROR (0XC00000C4) when Windows fails to connect to a Wi-Fi network it's been connected to before. The culprit here is almost always a corrupted network profile sitting in Windows. It happens after a router firmware update, a Windows update, or if you've connected to the same network with different credentials (like a guest vs. main SSID). I've seen it most often on Windows 10 20H2 and Windows 11 22H2.
It's not a hardware failure. Don't bother replacing your network card or router — it rarely helps. The error means Windows has a stale cached configuration (IP lease, DNS servers, security key hash) that no longer matches what the router expects.
Step-by-Step Fix
- Forget the network in Windows Settings. Go to
Settings > Network & Internet > Wi-Fi > Manage known networks. Find the network name giving the error. Click it, select Forget. - Delete the old network profile (the real fix). Open Control Panel (not Settings). Go to
Network and Sharing Center. On the left, clickManage wireless networks. You'll see a list of saved networks. Right-click the problem one, choose Remove network. - Flush DNS cache. Open Command Prompt as administrator: press
Win + X, choose Command Prompt (Admin) or Terminal (Admin). Type:
Press Enter. You'll seeipconfig /flushdnsSuccessfully flushed the DNS Resolver Cache. - Reset Winsock — this fixes deeper socket corruption. In the same admin command prompt, run:
Thennetsh winsock reset
Restart your PC.netsh int ip reset - Reconnect to the network. After reboot, click the Wi-Fi icon in the system tray, find the network, connect fresh. Enter the password. Should work now.
Alternative Fixes If That Didn't Work
If the error persists after the above, try these in order:
- Release and renew your IP address. In admin command prompt:
Thenipconfig /release
This forces Windows to get a fresh IP from the router.ipconfig /renew - Run Windows Network Troubleshooter. I know, it's usually useless. But here it sometimes fixes this specific error. Go to
Settings > System > Troubleshoot > Other troubleshooters. Run Internet Connections and Network Adapter. - Update your Wi-Fi adapter driver. Open Device Manager (right-click Start > Device Manager). Expand Network adapters. Right-click your Wi-Fi adapter (usually Intel or Realtek), select Update driver > Search automatically for drivers. If it finds nothing, go to the manufacturer's website and download the latest driver manually. I've seen old Intel drivers from 2019 cause this on Windows 11.
- Disable IPv6 on the network adapter. In Network Connections (
ncpa.cpl), right-click your Wi-Fi adapter, Properties. Uncheck Internet Protocol Version 6 (TCP/IPv6). Click OK. Reboot. Some routers have buggy IPv6 support that triggers this error.
Prevention
Next time you update router firmware or change Wi-Fi password, manually delete the saved network profile before connecting. Windows won't do it automatically — it just keeps the old one and throws this error. Also, keep your Wi-Fi driver updated. I set a monthly reminder to check for driver updates on my workstations. That one habit cut these calls by half.
If you're on a corporate network with WPA2-Enterprise (like PEAP), this error can also happen after a certificate update. In that case, delete the network profile and reconnect — the certificates will re-authenticate fresh.