Knowledge Base →5 min readUpdated: 2026-09-21

How to Reset the TCP/IP Stack With netsh in Windows

Resetting the TCP/IP stack is the deepest software-level network repair Windows offers short of a reinstall: open an elevated command line, run netsh int ip reset, then restart the PC. The command returns the TCP/IP configuration in the registry to its just-installed state — static IPs, manually set DNS servers and bindings damaged by VPNs or removed security software are wiped, and Windows rebuilds the stack from scratch on the next boot. It is the fix for adapters stuck on “Unidentified network”, 169.254.x.x addresses, and connections that no amount of rebooting cures.

When the TCP/IP stack itself is the problem

Most connectivity failures live at the edges: the router, the driver, the DNS server. The TCP/IP reset targets the middle — the configuration of the protocol stack itself, which accumulates damage from VPN clients with their virtual adapters, from security suites that unhook and re-hook the stack, from malware and from botched manual configurations. When the stack is sick, the symptoms turn paradoxical: the adapter reports media connected, DHCP never delivers an address, and the machine falls back to a 169.254.x.x APIPA address even though the same cable works on the laptop next to it.

The reset works by rewriting the registry entries of TCP/IP and its companion services back to their first-install values. Nothing of yours is deleted — files, drivers and Wi-Fi profiles stay put — but everything the stack had been told to remember about this machine's network identity is forgotten. That is both its power and its cost: any static configuration will need to be re-entered afterwards.

Running the reset, and the companion commands

Open an elevated command line: press Win+X and pick Terminal (Admin), or search for cmd and choose Run as administrator. Type netsh int ip reset and press Enter — the command quietly resets a batch of registry keys and reports where it logged the details; appending a path, as in netsh int ip reset C:\resetlog.txt, lets you choose where that log lands. If your network runs on IPv6, run netsh int ipv6 reset as well. Neither command shows any visible effect until you restart, because the stack is only rebuilt during the boot.

The reset is usually one move in a sequence. A sensible order for a stubborn machine: netsh winsock reset to rebuild the socket catalog, then netsh int ip reset and netsh int ipv6 reset for the stack, one restart for all of it, and ipconfig /flushdns once you are back. Windows 11 also offers a GUI equivalent — Settings → Network & internet → Advanced network settings → Network reset — but it goes further: it reinstalls every network adapter and removes all known Wi-Fi networks, while the netsh route leaves your wireless profiles intact.

  • netsh winsock reset — rebuilds the Winsock socket catalog
  • netsh int ip reset — returns the IPv4 stack to factory defaults
  • netsh int ipv6 reset — the same for the IPv6 stack
  • ipconfig /release then ipconfig /renew — requests a fresh DHCP lease after the reboot
  • ipconfig /flushdns — clears the resolver cache so old answers do not linger

After the reboot: what to reconfigure and what to try next

Once the machine is back, reconnect to your network and let DHCP do its work. Anything you had configured statically — a fixed IP for port forwarding, custom DNS servers, a manual IPv6 setup — is gone and needs re-entering in Settings → Network & internet or in the adapter's properties. VPN clients should be started once so they reinstall their virtual adapters cleanly, and security suites that filter traffic sometimes want a repair run before they trust the fresh stack.

If connectivity is still dead after all this, the software layers are exonerated: look to the adapter driver in Device Manager (uninstall it, then reboot so Windows reinstalls it), to the router, or to the hardware itself. And once the network behaves, the deep repairs are done — there is nothing to schedule here. A tool like Kleaner PRO belongs at the other end of maintenance: its scheduled cleanup of temp files, caches and update leftovers keeps the general clutter down, while the stack you have just rebuilt is best left alone.

Questions and Answers

Will netsh int ip reset delete my saved Wi-Fi networks?

No. The command rewrites the TCP/IP registry configuration only; wireless profiles and passwords survive. The separate Network reset in Settings is the one that removes known networks and reinstalls adapters.

Do I need netsh winsock reset too, or is TCP/IP enough?

They repair different layers: Winsock covers the interface applications use, TCP/IP covers the protocol stack itself. For stubborn cases, run both — a single restart applies them together.

Is resetting the TCP/IP stack safe?

Yes. It returns the stack to its installation defaults, a state Windows is designed to rebuild; no personal files or data are touched. The only cost is re-entering any static IP or DNS configuration you had set.

Know what is included before you buy.

The one-time 30-minute trial covers core tools. PRO-labelled features stay locked until a paid license is activated.

Read next

All articles · FAQ

Write to us: [email protected]