|

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

StepCommand
Open Command Prompt as administratorStart, type cmd, Run as administrator
Reset the Winsock catalognetsh winsock reset
Reset TCP/IP (optional next step)netsh int ip reset
Renew the connectionipconfig /release then ipconfig /renew
Clear cached DNS entriesipconfig /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.

CheckHow
Airplane modeSettings, Network & internet, Airplane mode, and make sure it is off
Forget and reconnectSettings, Network & internet, Wi-Fi, Manage known networks, select the network, Forget, then reconnect
Restart modem and routerUnplug 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 bandIf both 2.4 GHz and 5 GHz versions of your network show, try the other one
Another deviceIf 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

  1. Select Start and search for command prompt.
  2. Choose Run as administrator, then select Yes.
  3. Type netsh winsock reset and press Enter.
  4. Wait for the command to finish.
  5. 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.

OrderCommandPurpose
1netsh winsock resetResets the Winsock catalog
2netsh int ip resetResets the TCP/IP stack
3ipconfig /releaseReleases the current IP address
4ipconfig /renewRequests a new IP address
5ipconfig /flushdnsClears 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.

CommandWhat it shows or does
netsh winsock show catalogLists registered Winsock LSPs and namespace providers
netsh winsock audit trailShows LSPs that were installed and uninstalled
netsh winsock dumpCreates a script of the current Winsock configuration
netsh winsock remove provider <catalog id>Removes one LSP by its catalog ID
netsh winsock show autotuningShows 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.

  1. Open Settings.
  2. Go to Network & internet, then Advanced network settings.
  3. Select Network reset, then Reset now, then Yes.
Know the trade-off: Microsoft says network reset removes your network adapters and their settings, restarts the PC, and may require you to set up VPN clients or Hyper-V virtual switches again.

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.

  1. Run ipconfig in an administrator Command Prompt and note the Default gateway address.
  2. Type ping followed by that address.
  3. If you get replies, your PC reaches the router and the problem may be the modem or your internet provider.
  4. 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

ProblemWhat to check
Command says access is deniedReopen Command Prompt as administrator
Internet still fails after a restartRun the full five-command sequence, then try Network reset
VPN or security tool stopped workingReinstall or repair that software, since reset removes custom LSPs
You need the old configurationRun 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.

Leave a Reply

Your email address will not be published. Required fields are marked *