Ephemeral port

An ephemeral port is a communications endpoint (port) of a transport layer protocol of the Internet protocol suite that is used for only a short period of time for the duration of a communication session.

Uses your system voice; voice and rate in settings.

≈ 3 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

An ephemeral port is a communications endpoint (port) of a transport layer protocol of the Internet protocol suite that is used for only a short period of time for the duration of a communication session. Such short-lived ports are allocated automatically within a predefined range of port numbers by the IP stack software of a computer operating system.

The Transmission Control Protocol (TCP), the User Datagram Protocol (UDP), and the Stream Control Transmission Protocol (SCTP) typically use an ephemeral port for the client-end of a client–server communication. At the server end of the communication session, ephemeral ports may also be used for continuation of communications with a client that initially connected to one of the services listening with a well-known port.

For example, the Trivial File Transfer Protocol (TFTP) and Remote Procedure Call (RPC) applications can behave in this manner. The allocation of an ephemeral port is temporary and only valid for the duration of the communication session.

After completion of the session, the port is destroyed and the port number becomes available for reuse, but many implementations simply increment the last used port number until the ephemeral port range is exhausted, when the numbers roll over. Ephemeral ports are also called dynamic ports, because they are used on a per request basis, and are only known by number once allocated.

Configuration characteristics

If certain server software is used, that uses non-ephemeral custom port ranges for initiating some further connections, it needs to be ensured by configuration that this custom port range and the ephemeral port range do not overlap.

See also

Registered port List of TCP and UDP port numbers

RFC 6056 Recommendations for Transport-Protocol Port Randomization The Ephemeral Port Range at NcFTP.com Ephemeral Source Port Selection Strategies at DataPlane.org

Text derived from https://en.wikipedia.org/w/index.php?oldid=1375094633 under CC BY-SA 4.0; modifications have been made.

Words in each sectionConfiguration character…Configuration characteristicsConfiguration characteristics: 37 words37See alsoSee alsoSee also: 9 words9
Words in each section. Measured from the stored article body; sections below the minimum are not plotted.

Provenance

snapshot enwiki-001375094633 · captured 2026-09-15 · ledger · version history

Cite this page as: encyclopegia.org, “Ephemeral port”, snapshot enwiki-001375094633. https://encyclopegia.org/a/ephemeral-port

Sources cited in this revision

11 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.