一般方案

netsh winsock reset
netsh int ip reset
netsh advfirewall reset

修复 Windows 网络组件(长期网络异常可考虑)

PowerShell 管理员:

netsh int ipv4 reset
netsh int ipv6 reset
Disable-NetAdapterBinding -Name ““ -ComponentID ms_tcpip6
Enable-NetAdapterBinding -Name “
“ -ComponentID ms_tcpip6

其他

ipconfig /flushdns
ipconfig /release
ipconfig /renew

netsh winsock reset
netsh int ip reset

netsh advfirewall reset

netsh winsock reset
netsh int ip reset
ipconfig /flushdns
ipconfig /release
ipconfig /renew
netsh advfirewall reset
netcfg -d
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Write-Host “重启电脑吧。真正的重置要等重启后生效。” -ForegroundColor Yellow

修复虚拟机问题

netsh int tcp set supplemental template=internet congestionprovider=CUBIC