How many ephemeral ports are there?
49152 to 65535
Not too many people know that an ephemeral port is a short-lived transport protocol port for Internet Protocol (IP) communications allocated automatically from a predefined range by the IP software. It is interesting to know that on servers, ephemeral ports may also be used as the port assignment on the server end of a communication. When it comes to the number of ephemeral ports, there are different opinions. For instance, the Internet Assigned Numbers Authority (IANA) suggests the range 49152 to 65535 (215+214 to 216?1) for dynamic or private ports.