How To Use The Netsh Winsock Reset Command In Windows (2026)
The netsh winsock reset command puts the Windows Sockets catalog back to a clean state.
It is a standard step when apps cannot reach the network even though your connection looks fine.
This guide shows how to run it, what it changes, and what to try before and after.
Table of Contents
- Quick answer
- What the command does
- When to use it
- Try these before the commands
- How to run netsh winsock reset
- The full command sequence Microsoft lists
- About the TCP/IP reset
- Look at the catalog first
- Use Network reset if the commands fail
- If it still fails after the commands
- If something goes wrong
- Sources
- More Windows guides
Quick answer
| Step | Command |
|---|---|
| Open Command Prompt as administrator | Start, type cmd, Run as administrator |
| Reset the Winsock catalog | netsh winsock reset |
| Reset TCP/IP (optional next step) | netsh int ip reset |
| Renew the connection | ipconfig /release then ipconfig /renew |
| Clear cached DNS entries | ipconfig /flushdns |
What the command does
Microsoft says netsh winsock manages the Windows Sockets API, which handles network communication between applications and network services.
The reset subcommand returns the Winsock catalog to a clean state and removes any custom layered service providers (LSPs).
Microsoft says this resolves network problems caused by corrupted Winsock settings.
It does not affect Winsock Name Space Provider entries.
When to use it
Try it when the network adapter shows as connected but programs report they cannot connect.
Microsoft runs it on both Wi-Fi and Ethernet problems, so it is not tied to one connection type.
It also fits cases where a VPN, security tool, or other network software left a custom provider behind.
If your Wi-Fi or Ethernet will not connect at all, start with our guides on Wi-Fi that keeps disconnecting and Ethernet not working.
Try these before the commands
Microsoft’s Wi-Fi guide puts several simple checks ahead of the command-line step.
| Check | How |
|---|---|
| Airplane mode | Settings, Network & internet, Airplane mode, and make sure it is off |
| Forget and reconnect | Settings, Network & internet, Wi-Fi, Manage known networks, select the network, Forget, then reconnect |
| Restart modem and router | Unplug the router and the modem, wait at least 30 seconds, plug the modem in, wait for its lights to stop blinking, then plug in the router |
| Other band | If both 2.4 GHz and 5 GHz versions of your network show, try the other one |
| Another device | If a laptop or phone connects, the problem is likely your PC |
For a wired connection, Microsoft also suggests checking that the cable is firmly seated in an Ethernet port on the router, not the Internet port.
How to run netsh winsock reset
- Select Start and search for command prompt.
- Choose Run as administrator, then select Yes.
- Type
netsh winsock resetand press Enter. - Wait for the command to finish.
- Restart the PC and test the connection.
Microsoft’s Wi-Fi troubleshooting article lists this exact command as its first command-line step.
The Winsock page itself does not state a restart requirement, so restarting is a safe way to start with a clean network stack.
The full command sequence Microsoft lists
Microsoft’s Wi-Fi guide runs five commands in order in an administrator Command Prompt.
| Order | Command | Purpose |
|---|---|---|
| 1 | netsh winsock reset | Resets the Winsock catalog |
| 2 | netsh int ip reset | Resets the TCP/IP stack |
| 3 | ipconfig /release | Releases the current IP address |
| 4 | ipconfig /renew | Requests a new IP address |
| 5 | ipconfig /flushdns | Clears the DNS resolver cache |
Microsoft says to check whether your connection works after you run them.
About the TCP/IP reset
Microsoft’s NetShell article says the command to reset TCP/IP is netsh int ip reset c:\resetlog.txt.
If you do not want to give a folder, you can use netsh int ip reset resetlog.txt instead.
It overwrites two registry keys that TCP/IP uses, under Tcpip\Parameters and DHCP\Parameters.
Microsoft says this has the same effect as removing and reinstalling TCP/IP, and that you should restart the computer afterward.
Look at the catalog first
You can view what is registered before you reset anything.
| Command | What it shows or does |
|---|---|
netsh winsock show catalog | Lists registered Winsock LSPs and namespace providers |
netsh winsock audit trail | Shows LSPs that were installed and uninstalled |
netsh winsock dump | Creates a script of the current Winsock configuration |
netsh winsock remove provider <catalog id> | Removes one LSP by its catalog ID |
netsh winsock show autotuning | Shows whether Winsock send autotuning is on or off |
Microsoft says the dump output can be saved to a file and used to restore settings if they are altered.
Use Network reset if the commands fail
Microsoft says to treat network reset as the last step, after other steps have not helped.
- Open Settings.
- Go to Network & internet, then Advanced network settings.
- Select Network reset, then Reset now, then Yes.
We cover the full walkthrough in our guide to resetting network settings in Windows 11.
If it still fails after the commands
Microsoft lists these next steps in its Wi-Fi guide.
- Run
ipconfigin an administrator Command Prompt and note the Default gateway address. - Type
pingfollowed by that address. - If you get replies, your PC reaches the router and the problem may be the modem or your internet provider.
- If you get no replies, the router may be the problem, so test with an Ethernet cable and install the latest router firmware.
You can also uninstall the network adapter in Device Manager, which Microsoft says Windows should reinstall automatically after a restart.
Download the driver from your PC maker’s website first, so you have a copy if Windows does not reinstall it.
In Device Manager you can also open the adapter Properties, go to the Power Management tab, and clear the option that lets the computer turn off the device to save power.
If something goes wrong
| Problem | What to check |
|---|---|
| Command says access is denied | Reopen Command Prompt as administrator |
| Internet still fails after a restart | Run the full five-command sequence, then try Network reset |
| VPN or security tool stopped working | Reinstall or repair that software, since reset removes custom LSPs |
| You need the old configuration | Run netsh winsock dump before you reset and save the output |
Sources
Read the command reference on the Microsoft Learn netsh winsock page.
The TCP/IP steps come from Reset TCP/IP by using the NetShell utility.
The command sequence and Network reset path come from Fix Wi-Fi connection issues in Windows.
More Windows guides
- How To Reset Network Settings In Windows 11 (2026)
- How To Reset Windows 11 And Keep Your Files (2026)
- How To Reset CMOS On A PC (2026)
- How To Uninstall ESET From Windows Step By Step (2026)
- How To Uninstall Kaspersky Completely From Windows (2026)
- Local Security Authority Protection Is Off In Windows 11 (2026)
See all: Windows 11 Guides