Network · medium

How to fix Damaged Winsock or TCP/IP settings (netsh winsock reset)

Error code: WINSOCK-CORRUPT

What this error means

Windows Sockets (Winsock) is the part of Windows that programs use to make network connections, and TCP/IP is the protocol underneath it. When their settings are damaged, typically after removing a VPN, proxy tool or security suite that added its own components, the network adapter may show as connected while browsers and apps cannot connect at all. Resetting Winsock and TCP/IP with netsh restores the default settings; Microsoft includes both commands in its Wi-Fi troubleshooting.

Updated

Applies to
Windows 11 and Windows 10
Difficulty
Beginner
Before changes
Low; resets can remove custom network settings and VPN components

Reviewed by Matyáš Rada · Documentation checked: 2026-10-31 · Checked against Microsoft's Wi-Fi troubleshooting article and netsh documentation; not tested on every configuration.

Before you begin

If you use a static IP address or custom DNS settings, write them down first; the reset returns them to automatic. Work VPN software may need to be reinstalled afterwards. If Windows cannot start, see the startup guide.

Work through these checks

0 of 7 complete
01Confirm the symptoms

Damaged Winsock settings affect all programs at once, while the adapter itself still connects.

  1. Check that Wi-Fi or Ethernet shows as connected, but no browser or app can reach the internet.
  2. Test another device on the same network to make sure the internet itself works.
What to expect

The network works on other devices but not on this PC.

If it does not help

If other devices fail too, restart the router first. If only some websites fail, see the DNS_PROBE_FINISHED_NXDOMAIN guide on this site.

Browse related errors
02Remove leftover network software

Programs that add their own network components are the usual cause of damaged Winsock settings.

  1. In Settings > Apps > Installed apps, uninstall VPN clients, proxy tools, "internet accelerators" and old security suites you no longer use.
  2. If the maker offers a removal tool for its security suite, use it to remove leftovers.
  3. Restart the PC.

Keep Microsoft Defender on while you remove another security suite.

What to expect

The connection works after the restart.

If it does not help

If it does not, reset Winsock in step 3.

Browse related errors
03Reset Winsock

netsh winsock reset restores the Winsock catalog to its default state.

  1. Search for cmd, right-click Command Prompt and choose Run as administrator.
  2. Run netsh winsock reset.
  3. Restart the PC when asked.
What to expect

Browsers and apps connect again.

If it does not help

If the problem continues, reset TCP/IP in step 4.

Browse related errors
04Reset TCP/IP and renew the address

Microsoft's Wi-Fi troubleshooting runs these commands together to reset the IP stack, renew the address and clear the DNS cache.

  1. In Command Prompt (Admin), run netsh int ip reset.
  2. Then run ipconfig /release, ipconfig /renew and ipconfig /flushdns.
  3. Restart the PC.
What to expect

The PC gets a valid IP address and connects.

If it does not help

If you used a static IP address or custom DNS servers, set them again in Settings > Network & internet.

Browse related errors
05Scan for malware

Some malware changes network settings to redirect or block traffic.

  1. Open Windows Security > Virus & threat protection > Scan options.
  2. Choose Microsoft Defender Antivirus (offline scan) and click Scan now.
What to expect

No threats are found, or they are removed.

If it does not help

After removing malware, repeat steps 3 and 4.

Browse related errors
06Reinstall the network adapter

If the adapter's driver is damaged, resetting settings is not enough.

  1. Open Device Manager > Network adapters, right-click your adapter > Uninstall device, tick Attempt to remove the driver for this device and click Uninstall.
  2. Restart; Windows reinstalls the adapter. If it does not, install the driver from your PC maker.

Download the adapter driver before uninstalling, in case Windows cannot find it.

What to expect

The adapter works with a fresh driver.

If it does not help

Run Windows Update afterwards.

Browse related errors
07Use network reset

Network reset removes and reinstalls all network adapters and returns networking components to their defaults.

  1. On Windows 11, open Settings > Network & internet > Advanced network settings > Network reset > Reset now.
  2. After the restart, reconnect to your network.

Network reset removes saved Wi-Fi networks, and you may need to reinstall VPN software and Hyper-V virtual switches.

What to expect

Networking works normally.

If it does not help

If nothing helps, an in-place repair of Windows (setup.exe from the Windows ISO, keeping files and apps) restores all system components.

Browse related errors

Possible causes

  • A VPN, proxy or security program that left network components behind after removal
  • Malware that changed network settings
  • Damaged TCP/IP or Winsock settings after a failed update
  • Manual network tweaks or optimization tools

Sources & further reading