Winsock Corruption — The Most Common Cause
I've seen this error pop up more times than I can count, and in about 80% of cases, it's because the Winsock catalog is toast. This happens after a failed VPN install, a botched antivirus uninstall, or just Windows Update doing something weird. The fix is a full Winsock and TCP/IP stack reset.
- Open Command Prompt as Administrator (right-click Start, select "Windows Terminal (Admin)" or "Command Prompt (Admin)").
- Run these commands in order:
netsh winsock reset catalog
netsh int ip reset reset.log
ipconfig /release
ipconfig /renew
ipconfig /flushdns - Restart your system. Test the connection.
This resets the Winsock catalog and TCP/IP stack back to factory defaults. I’ve seen it fix the error on Windows 10 22H2 and Windows 11 23H2. If it fails, move to the next fix.
DHCP or Static IP Misconfiguration
Another common trigger: your network adapter is set to a static IP that conflicts with the router's DHCP scope, or you lost DHCP lease renewal. This error often shows up right after you move your laptop from one network to another — like from home to a coffee shop — and the adapter doesn't release the old IP.
Check and Reset IP Settings
- Open Settings > Network & Internet > Advanced network settings > More network adapter options.
- Right-click your active adapter (likely Ethernet or Wi-Fi), select Properties.
- Double-click "Internet Protocol Version 4 (TCP/IPv4)".
- Select "Obtain an IP address automatically" and "Obtain DNS server address automatically". Apply and OK.
- Run this in Command Prompt (Admin):
ipconfig /release
ipconfig /renew - If renewal fails, try:
Replace "Ethernet" with your adapter's name if different.netsh interface ip set address name="Ethernet" dhcp
netsh interface ip set dns name="Ethernet" dhcp
That forces the adapter to grab a fresh lease. I've seen this work when the error fires right after waking from sleep or hibernation.
Third-Party Firewall or Antivirus Interference
This one's sneaky. Some security suites — looking at you, older versions of Norton, McAfee, and even Windows Defender's firewall on high security — will block the transport layer entirely. The error often appears when you try to run an app that needs direct access to the network (like a game, a remote desktop client, or a database tool).
Test by Disabling Third-Party Security
- Temporarily disable your firewall and antivirus. On Windows Defender, turn off the firewall in Windows Security > Firewall & network protection.
- Try reproducing the error. If it goes away, you've found the culprit.
- Add an exception for the app triggering the error. In Windows Defender, go to Windows Security > Firewall & network protection > Allow an app through firewall.
- For third-party tools, check their support docs for how to whitelist an app or port.
I'd only disable security long enough to confirm the cause, then re-enable it. Leaving it off is a bad idea.
Quick-Reference Summary Table
| Cause | Fix Method | Commands / Steps |
|---|---|---|
| Winsock corruption | Reset Winsock & TCP/IP | netsh winsock reset catalog; netsh int ip reset reset.log; ipconfig /flushdns |
| DHCP / static IP conflict | Force DHCP renewal | ipconfig /release; ipconfig /renew; netsh interface ip set address name="Ethernet" dhcp |
| Third-party firewall | Disable or add exception | Turn off firewall temporarily; whitelist app in firewall settings |
If none of these work, you might have a corrupted network driver. Try uninstalling the driver from Device Manager (under Network adapters), then scan for hardware changes to reinstall it. That's rare, but I've seen it once on a Dell XPS 15 running Windows 11 22H2.