Resetting Winsock and the Windows Network Stack
What netsh winsock reset and netsh int ip reset actually rewrite, when a broken layered provider is the cause, and when the reset is the wrong tool.
A machine that reaches the router but not the internet, resolves some names and not others, or loses connectivity the moment a VPN client is installed is often described as having a broken network stack. The Winsock catalog is the part of Windows that most often earns that description. It is a registry-backed list of layered service providers (LSPs) and namespace providers that sit between an application’s socket calls and the transport driver. Antivirus web shields, VPN clients, proxy shims and older parental-control filters install entries into that catalog so their code sees traffic before it leaves the machine. When one of those entries is removed badly, left behind after an uninstall, or points at a file that no longer exists, every application that opens a socket can fail, even though the adapter, the cable and the DHCP lease are fine.
The symptom pattern matters more than the error text. A failing Winsock catalog usually produces failures that are application-wide rather than address-specific: browsers and mail clients both fail, ping to a numeric address may still succeed, and nslookup against a public resolver may return an answer while the browser still cannot load a page. If only one hostname fails, or only one subnet is unreachable, the catalog is not the likely cause and a reset will not help.
What netsh winsock reset rewrites
netsh winsock reset returns the Winsock catalog to the state Windows installs by default. It removes third-party LSP and namespace provider entries and re-creates the base catalog. It does not touch IP addresses, routes, DNS server assignments, firewall rules or adapter drivers. Because the catalog is held in memory by the Winsock service, the change takes effect only after a restart; running the command and testing immediately will show the old behaviour.
Open an elevated Command Prompt or PowerShell window and run:
netsh winsock reset
The command prints the catalog path it rewrote and a reminder to restart. A success message means the catalog was replaced, not that connectivity is restored. Restart before drawing any conclusion.
What netsh int ip reset rewrites
The IP stack reset is a different operation with a different target. It rewrites the TCP/IP registry keys under the interface configuration to their default values, which clears manually set static addresses, custom routes, and some per-interface tuning. It does not clear the Winsock catalog, and it does not remove LSP entries.
netsh int ip reset
The command writes a log file, by default %SystemRoot%\System32\LogFiles\netsh\ with a name beginning netsh and ending .log, and lists the keys it reset. Read that log before restarting: it names each key that was rewritten, which tells you whether a static address or a custom route was among them. If the machine depended on a static IP or a persistent route, that configuration must be re-entered after the restart. A machine that receives its address by DHCP will usually recover the lease on its own.
Running both commands in sequence is common when the cause is not yet known, but they address different faults. Winsock reset belongs to the layered-provider diagnosis; IP reset belongs to a corrupted interface configuration.
The Network reset button in Settings
The Settings app offers a broader reset under Network & internet > Advanced network settings > Network reset. It removes and reinstalls every network adapter, deletes the saved Wi-Fi profiles and their passwords, removes VPN connections configured in Settings, and then restarts the machine. Anything that depends on those adapters or profiles is gone after the restart: static addresses, custom DNS servers set per adapter, Wi-Fi credentials, and VPN tunnels. On a machine joined to a domain, adapter settings pushed by policy may be reapplied at the next policy refresh, but locally configured values will not.
Before using it, record the adapter’s current configuration: the IP address and subnet mask, the default gateway, the DNS servers, and any VPN profile names. The output of ipconfig /all captures most of it. The Network reset is appropriate when adapters themselves are in a bad state and the narrower resets have not helped. It is not a first step.
When the reset is the wrong tool
A reset of either kind is a repair for local state. It cannot change anything owned by the router, the carrier or the ISP. If the machine receives a valid address from the router but cannot reach past it, the fault is upstream: the router’s NAT table, its DHCP scope, the modem’s link to the provider, or the provider’s own routing. Resetting Winsock on the PC will not clear a full NAT table on the router, and it will not restore a line that is down. The same applies when every device on the network fails at once; a single-machine reset cannot fix a shared fault.
| Symptom | Winsock reset applies | Reset does not apply |
|---|---|---|
| All applications fail to open connections after a VPN or antivirus uninstall | Yes | — |
| One hostname fails, others resolve and load | — | DNS or hosts file fault |
| Every device on the LAN loses internet together | — | Router, modem or ISP fault |
Static IP disappeared after netsh int ip reset | — | Expected result; re-enter the address |
| Wi-Fi connects but no traffic passes, other devices fine | Possible | Check adapter driver and firewall first |
When the machine shows an unidentified network with no internet access, the cause is more often address assignment or gateway reachability than the Winsock catalog. That diagnosis is covered in Unidentified network and no internet access, which walks through the DHCP and gateway checks before any reset is considered.
Confirming the catalog is the fault before resetting
A reset is low-risk but not free: it removes LSPs that legitimate security software relies on, and some products reinstall their provider on next launch while others do not. Confirm the diagnosis first.
List the installed providers and look for entries whose path no longer exists:
netsh winsock show catalog
The output lists each catalog entry with its provider name, GUID and the DLL path. An entry pointing to a file that has been deleted, or a duplicate of the same provider under two names, is the signature of a bad uninstall. Compare that list with the programs currently installed. If every entry resolves to a file that exists and belongs to software still present, the catalog is probably not the fault and the reset will not change the symptom.
Test whether the failure is name resolution or connection setup:
nslookup example.com
ping 1.1.1.1
If nslookup returns an address but the browser cannot load the page, and ping to a numeric address succeeds, the transport is working and the fault is above it. If ping to a numeric address fails while the adapter has a valid address and gateway, the fault is in routing or in the local stack, and the IP reset is the more relevant of the two.
Order of repair and what each step costs
Start with the least destructive action. Restarting the machine clears transient socket state and costs nothing. Releasing and renewing the DHCP lease with ipconfig /release followed by ipconfig /renew re-establishes addressing without touching configuration. Flushing the resolver cache with ipconfig /flushdns clears stale name entries. Only after those have not changed the symptom does the Winsock catalog become a candidate.
If the catalog is implicated, run netsh winsock reset, restart, and retest before doing anything else. If the interface configuration is implicated, run netsh int ip reset, read the log, restart, and re-enter any static settings the log shows were removed. The Settings Network reset comes after both, because it destroys adapter and VPN configuration that the narrower commands leave in place.
A system file check is a separate repair for corrupted Windows binaries and does not rewrite the catalog:
sfc /scannow
It reports whether it found and repaired integrity violations. It is worth running when the reset commands report errors rather than success, because a damaged netsh or Winsock DLL will prevent the reset from completing.
What survives a reset and what does not
After netsh winsock reset, the catalog returns to the Windows default set. Third-party LSPs are gone until their software reinstalls them. Security products that depend on an LSP may report a degraded state or prompt for repair on next launch; that prompt is expected and should be allowed to complete. After netsh int ip reset, static addresses, custom DNS servers set per interface, and persistent routes are removed; DHCP-assigned values return on their own. After the Settings Network reset, adapters are reinstalled, Wi-Fi profiles and their saved passwords are deleted, and VPN connections configured in Settings are removed. Each of these is a configuration loss, not a data loss, but on a machine with hand-entered network settings the difference matters to whoever has to restore them.
Common questions
Does netsh winsock reset fix no internet access?
Only when the cause is a broken layered service provider in the Winsock catalog, typically after a VPN or security product was removed badly. It does not touch IP addresses, routes or DNS settings, and it cannot fix a fault in the router, modem or ISP line. If every device on the network is affected, the reset will not help.
Do I need to restart after netsh winsock reset?
Yes. The catalog is held by the Winsock service in memory, and the reset takes effect only after a restart. Testing before the restart shows the old behaviour and can make a successful reset look like a failure.
What is the difference between netsh winsock reset and netsh int ip reset?
Winsock reset returns the layered provider catalog to the Windows default and removes third-party LSP entries. IP reset rewrites the TCP/IP interface configuration keys to default values, which clears static addresses and custom routes. They repair different faults and are often run together when the cause is not yet known.
Does Network reset in Windows 11 delete Wi-Fi passwords?
Yes. The Settings Network reset removes and reinstalls every network adapter, deletes saved Wi-Fi profiles including their passwords, and removes VPN connections configured in Settings. Record the adapter configuration and Wi-Fi credentials before using it.
How do I know if a Winsock reset is the right fix?
Run netsh winsock show catalog and look for provider entries whose DLL path no longer exists or that duplicate a provider under two names. That pattern, combined with failures across all applications after a VPN or antivirus uninstall, points to the catalog. A single failing hostname or a fault shared by every device on the LAN points elsewhere.
Read next
- ERR_CONNECTION_RESET: Tracing a TCP Reset on Windows ERR_CONNECTION_RESET means something on the path or the server sent a TCP RST. How to separate security software, proxy, MTU, filtering and server causes.
- No Internet Access and Unidentified Network in Windows Why Windows shows no internet access or unidentified network, how the NCSI probe works, and how to trace the fault from adapter address to gateway, DNS, and carrier.
- Flushing the DNS Cache on Windows What the Windows DNS client cache stores, how to view and clear it with ipconfig /flushdns, and which caches a flush does not reach.
- Automatic Repair Loop: Causes and Fixes Learn why Windows Automatic Repair loops, how to read its log, and step-by-step fixes before reinstalling. Covers bootrec, DISM, SFC, and more.
- BOOTMGR Is Missing: Causes and Repair Order BOOTMGR is missing means the boot manager wasn't found. Check boot order, partition active status, and repair with built-in tools.