Just a second...

Windows

Setting values on Windows™

Setting TCP timed wait

This parameter determines the length of time that a connection stays in the TIME_WAIT state when it is closed. When a connection is in the TIME_WAIT state, the socket pair cannot be reused. This is also known as the 2MSL state because the value is twice the maximum segment lifetime on the network. See RFC 793 for further details.

Add TcpTimedWaitDelay registry values as a workaround. You can set these values through REGEDIT command.

Set TcpTimedWaitDelay to 30:
  1. Select Start > Run.
  2. In the available field, enter regedit.
  3. Go to the key directory file: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/TcpTimedWaitDelay. The value type is REG_DWORD.
  4. Double-click TcpTimedWaitDelay.
  5. Select Decimal.
  6. Type 30 in the Value data field. The default value for this field is 0xF0 (240 decimal). The valid range is 30-300 (decimal).

Setting MaxUserPort

This parameter controls the maximum port number used when an application requests any available user port from the system. Normally, short-lived ports are allocated in the range from 1024 through 5000. Setting this parameter to a value outside of the valid range causes the nearest valid value to be used (5000 or 65534).

Add MaxUserPort registry values as a workaround. You can set these values through REGEDIT command.

Set the MaxUserPort to 65534
  1. Select Start > Run.
  2. In the available field, enter regedit.
  3. Go to the key directory file: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/MaxUserPort. The value type is REG_DWORD.
  4. Double-click MaxUserPort.
  5. Select Decimal.
  6. Type 65534 in the Value data field. The default value for this field is 0x1388 (5000 decimal). The valid range is 5000 – 65534(decimal).