

Value data will be a value between 30 and 240 - the default value is 240 (4 minutes). These port numbers are typically allocated for short term use and are referred to. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters Client side port numbers are generated and assigned by the Transport layer. Always take a backup before making any changes.
CLIENTS USUALLY USE EPHEMERAL PORTS WINDOWS
This change involves the Windows registry. To make this change consult your network admins before continuing. If you find a high number of ephemeral ports in the TIME_WAIT state (run netstat -an | find /c "TIME_WAIT") you can change the default value of the 4 minute delay to something less. To see exactly what ports are being used by which applications on your server, run the following: This shows your available ephemeral ports as the default of 49152 - 65536 Ephemeral ports are temporary ports assigned by a machines IP stack, and are assigned from a designated range of ports for this purpose. You can see exactly the defined ephemeral ports for your server using the following netsh commands:Īnd returns something like the following:Ĭ:\Users\Administrator>netsh int ipv4 show dynamicport tcp Unless a client program explicitly requests a specific port number, the port number used is an ephemeral port number. High numbers of connections in the TIME_WAIT state Server appears unresponsive or unable to connect Beginning with Windows 2008 the default start port is 49152 and the default end port is 65535.Īlthough port exhaustion is less likely to be problematic with a larger range of available ephemeral ports, the symptoms can still be seen.

Prior to Windows 2008, the ephemeral port range was 1025 - 5000. With the change in the range beginning with Windows 2008, port exhaustion is less likely to be problematic, but the symptoms can still be seeing. After the default delay of 4 minutes (240 seconds), it will be able to be reused. When the communication is complete, the connection will enter a TIME_WAIT state. When a connection is made _to_ a server via a specific port (in the case of CA Process Automation to an agent using port 7003) we know the port we are connecting to.īut, the server or client that the connection is coming _from_ uses a random available port from its ephemeral port range. Ephemeral or dynamic ports are used by every server and client for short lived communications.
