ephemeral port

A temporary port number picked automatically by the operating system from a reserved range.

In more detail

Asking to listen on port 0 means give me any free port, which avoids clashes when tests run in parallel. Outgoing connections also use ephemeral ports on the client side.

Related terms

Taught in

References