Reset TCP/IP and Winsock (with a backup first) — via Microsoft Learn
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 resetUndo
netsh -f %USERPROFILE%\Desktop\netConfig.txtRestart 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
- TCP/IP communication troubleshooting guidance — Reset IP and Winsock — by Microsoft Learn
- How to reset TCP/IP by using the NetShell utility — by Microsoft Learn
- 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.