1、查看当前 系统 开放的动态端口范围:

  netsh int ipv4 show dynamicportrange tcp

2、netsh命令修改可用端口数

  

  1. netsh int ipv4 set dynamicport tcp start=2000 num=63000
  2. netsh int ipv4 set dynamicport udp start=2000 num=63000
  3. netsh int ipv6 set dynamicport tcp start=2000 num=63000
  4. netsh int ipv6 set dynamicport udp start=2000 num=63000

3、tcp 最大可使用端口数 调整,注册表 regedit :

  

  1. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  2. “MaxUserPort”=dword:0000fffe
  3. “TcpTimedWaitDelay”=dword:0000005   // (缩短为5秒)

  

相关文章: