*** Welcome to piglix ***

Ephemeral port


An ephemeral port is a short-lived transport protocol port for (IP) communications allocated automatically from a predefined range by the IP stack software. An ephemeral port is typically used by the (TCP), (UDP), or the (SCTP) as the port assignment for the client end of a client–server communication to a well-known port on a server.

On servers, ephemeral ports may also be used as the port assignment on the server end of a communication. This is done to continue communications with a client that initially connected to one of the server's well-known service listening ports. (FTP) and Remote Procedure Call (RPC) applications are two protocols that can behave in this manner. Note that the term "server" here includes workstations running network services that receive connections initiated from other clients (e.g. ).

The allocations are temporary and only valid for the duration of the communication session. After completion (or timeout) of the communication session, the ports become available for reuse. Since the ports are used on a per request basis they are also called dynamic ports.

The Internet Assigned Numbers Authority (IANA) suggests the range 49152 to 65535 (215+214 to 216−1) for dynamic or private ports.

Many Linux kernels use the port range 32768 to 61000.FreeBSD has used the IANA port range since release 4.6. Previous versions, including the Berkeley Software Distribution (BSD), use ports 1024 to 5000 as ephemeral ports.

Microsoft Windows operating systems through XP use the range 1025–5000 as ephemeral ports by default.Windows Vista, Windows 7, and Server 2008 use the IANA range by default.Windows Server 2003 uses the range 1025–5000 by default, until Microsoft security update MS08-037 from 2008 is installed, after which it uses the IANA range by default. Windows Server 2008 with Exchange Server 2007 installed has a default port range of 1025–60000. In addition to the default range, all versions of Windows since Windows 2000 have the option of specifying a custom range anywhere within 1025–65535.


...
Wikipedia

...