An ephemeral port is a communications endpoint of a transport layer protocol of the Internet protocol suite. Such short-lived ports are allocated automatically within a predefined range of port numbers by the IP stack software of a computer operating system. Ephemeral ports are also called dynamic ports, because they are used on a per request basis, and are only known by number once allocated.