Skip to content

Reset TCP/IP and Winsock (with a backup first) — via Microsoft Learn

Commandmedium riskNeeds adminWindows 11Windows 10

Microsoft's own fix for a corrupted network stack: save your current interface configuration, reset TCP/IP and the Winsock catalog, restart, then restore the saved settings if needed.

Restart the computer

Command

Run in an administrator Command Prompt / Terminal window.

netsh -c interface dump > %USERPROFILE%\Desktop\netConfig.txt
netsh int ip reset resetlog.txt
netsh winsock reset

Undo

netsh -f %USERPROFILE%\Desktop\netConfig.txt
Restart after the reset. The reset rewrites the TCP/IP and DHCP parameter keys — Microsoft says it has the same effect as removing and reinstalling TCP/IP — so static IPs and custom DNS servers are lost. The restore step only works if the adapter names haven't changed. Third-party firewalls or VPNs that hook into Winsock may need reinstalling.

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.

winsock resettcp/ip resetnetshno internetnetwork stack

More in Networking

Flush the DNS cache — via Marc Abramowitz

Commandlow riskAdmin

If a website moved to a new server, or you changed DNS settings and some sites still won't load, your Mac may be holding on to old address lookups. Flushing the DNS cache makes it look them up fresh. It's a troubleshooting step, not a speed boost.

Run Apple's built-in internet speed test — via SS64

Commandlow risk

macOS has its own speed test in Terminal. Besides download and upload speed, it measures 'responsiveness' (round trips per minute while the line is busy), which explains why video calls stutter on a connection that looks fast.