Skip to content
Windows

Reset the Windows Network Stack When the Internet Feels Slow

In an administrator prompt run ipconfig /flushdns, netsh int ip reset and netsh winsock reset, then restart the PC.

Tested on Windows 11 24H2, Windows 10 22H2

Sometimes a PC shows a working connection but pages load slowly, some sites fail or apps lose their connection. Corrupted DNS cache entries, a damaged TCP/IP configuration or leftover changes from VPN or security software are common causes. Windows can reset all of them itself.

Run the reset

Open Command Prompt as administrator and run each command:

Command Prompt (Administrator)
ipconfig /flushdnsnnetsh int ip resetnnetsh winsock reset

Then restart the computer – the TCP/IP and Winsock resets only take effect after a reboot.

What each command does

CommandWhat it resetsHelps with
ipconfig /flushdnsClears the local DNS cacheSites not loading or going to an old address
netsh int ip resetRewrites TCP/IP settings in the registry to defaultsSlow speeds, dropped connections, odd browser behaviour
netsh winsock resetRestores the Windows Sockets catalogueProblems after removing malware, VPNs or network software

If you use a static IP

The TCP/IP reset returns adapters to DHCP. Note your IP, gateway and DNS settings first, or recreate them afterwards with the Windows Static IP Command Generator. VPN clients may also need reinstalling.

Still slow?

  • Test on another device – if it’s slow too, the issue is the router or ISP.
  • Update the network adapter driver from the manufacturer.
  • Try a wired connection to rule out Wi-Fi interference.
  • Check the PC for corrupted system files with DISM and SFC.
Inder Kochar

Written by

Inder Kochar

Systems & Network Engineer – I write up the fixes I use with clients, tested on real systems. Stuck on something similar?

Keep reading

Ask a question or share your fix

Your email isn’t published. Comments are moderated – please keep them on topic.