Windows – How to change TCP “time wait” delay in Windows 7 / 2008 Server

tcptcpipwindows 7windows server 2008windows-server-2003

Windows Server 2003 "offers two methods of controlling TIME-WAIT behavior."

  1. The TcpTimedWaitDelay registry value under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters key can be used to alter the default setting. Windows Server 2003 TCP/IP allows this value to be set as low as 30 seconds, which should not cause problems in most environments, or as high as 300 seconds.

  2. The number of user-accessible ephemeral ports that can be used as sources for outbound connections can be configured using the MaxUserPorts registry value, also found under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters key. By default, when an application requests any socket from the system to use for an outbound call, a port numbered between 1024 and 5000 is supplied. MaxUserPorts can be used to set the value of the uppermost port that the administrator chooses to allow for outbound connections. For instance, setting this value to 10,000 (decimal) makes approximately 9000 user ports available for outbound connections. For more details on this concept, see RFC 793: Transmission Control Protocol DARPA Internet Program Protocol Specification.

If you could do that in windows server 2003, surely you can accomplish that in windows 7 enterprise? (Or even 2008 server).

The only problem is, I can't seem to find anything about changing the time wait variable on either OS on the internet.

Can one of your super users help me out?!

Best Answer

Perhaps you could try creating a new DWORD value (at the path you've mentioned already) and see if it works?

Related Question