...
- Value Name: MaxUserPort
- Value Type: REG_DWORD
- Value data: 65534
- Valid Range: 5000-65534 (decimal)
- Default: 0x1388 (5000 decimal)
Description Description: this parameter controls the maximum port number that is used when a program requests an available user port from the system.
...
- Value Name: TcpTimedWaitDelay
- Value Type: REG_DWORD—time in seconds
- Value data: 30
- Valid Range: 30-300 (decimal)
- Default: 0xF0 (240 decimal)
Description Description: this parameter determines the length of time that a connection stays in the TIME_WAIT state when being closed. While a connection is in the TIME_WAIT state, the socket pair cannot be re-used.
This is also known as the 2MSL state because the value should be twice the maximum segment lifetime on the network. See RFC 793 for further details.
Related KB - Increasing Windows TCP socket limits