Network Reset Command Builder

Build Windows network reset commands - winsock, TCP/IP, flush DNS.

Advertisement

Network Reset Command Builder

When a Windows PC connects to Wi-Fi but cannot load pages, gets stuck on a stale IP, or fails after a VPN or malware cleanup, resetting the network stack often fixes it. This builder gives you the precise commands for the specific layer that is broken — from a quick DNS flush to a full Winsock and TCP/IP reset — so you do not over-reset and lose custom settings unnecessarily.

The commands, smallest fix first

TaskCommandReboot?
Flush DNS cacheipconfig /flushdnsNo
Release + renew IPipconfig /release then ipconfig /renewNo
Reset Winsocknetsh winsock resetYes
Reset TCP/IP stacknetsh int ip resetYes
Clear DNS (PowerShell)Clear-DnsClientCacheNo

What each one does

  • ipconfig /flushdns clears cached DNS records. Use it when a site moved servers or a domain resolves to the wrong (old) address.
  • ipconfig /release + /renew drops the current DHCP lease and asks the router for a fresh IP — the fix for an APIPA 169.254.x.x address or an IP conflict.
  • netsh winsock reset rebuilds the Winsock catalog, the layer Windows apps use to talk to the network. This clears out broken LSPs left behind by VPNs, proxies, or malware.
  • netsh int ip reset rewrites the TCP/IP stack settings to default, fixing corrupted protocol configuration.

The full reset sequence

netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns

Run these from an elevated (Administrator) prompt, then reboot — the Winsock and TCP/IP resets only take full effect after a restart. This sequence is the standard last-resort fix when smaller steps do not work.

Tips and pitfalls

  • Start small: try a DNS flush and release/renew before nuking the whole stack.
  • Winsock and TCP/IP resets require Administrator and a reboot — skipping the reboot leaves the machine in a half-reset state.
  • After a full reset you may need to re-enter static IP, proxy, or custom DNS settings, since those revert to defaults.
  • On Windows 10/11 you can also use Settings > Network & Internet > Advanced > Network reset, which runs the same operations and reinstalls adapters.

Frequently Asked Questions

How do I reset the network stack in Windows?+

From an elevated Command Prompt, run netsh winsock reset, then netsh int ip reset, then ipconfig /release, /renew, and /flushdns, and finally reboot. The reboot is required because the Winsock and TCP/IP resets only complete after a restart.

What does netsh winsock reset do?+

It rebuilds the Winsock catalog, the component Windows applications use to access network services. This removes broken layered service providers left behind by VPNs, proxies, or malware, which often restores connectivity. A reboot is required to finish the reset.

What is the difference between flushdns and a full reset?+

ipconfig /flushdns only clears cached DNS lookups and needs no reboot, fixing cases where a domain resolves to an old address. A full reset rebuilds Winsock and the TCP/IP stack and requires Administrator rights and a reboot, so try the DNS flush first.

How do I fix a 169.254 IP address?+

A 169.254.x.x address means the PC could not reach a DHCP server and assigned itself an APIPA address. Run ipconfig /release followed by ipconfig /renew to request a fresh lease from the router. If that fails, check the cable, Wi-Fi, and the router DHCP service.

This tool is provided for informational and educational purposes only. All processing happens in your browser — no data is sent to or stored on our servers. While we strive for accuracy, we make no warranties about the completeness or reliability of results.
Network Reset Command Builder | InventiveHQ