跳到正文
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.

测试环境 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

作者

Inder Kochar

系统与网络工程师 – 我把为客户使用的解决方案整理成文,并在真实系统上测试过。遇到类似问题了吗?

继续阅读

提出问题或分享您的解决方法

您的邮箱不会公开。评论需经审核——请围绕主题发言。