Protocols
Saved & recent

Transport port

Also called: port number, TCP port, UDP port, ephemeral port

A transport port is a numbered field that helps an operating system direct network traffic to the appropriate endpoint. TCP and UDP use 16-bit source and destination ports, with separate namespaces for each transport. An IP address identifies a network endpoint; a port helps distinguish services or conversations at that endpoint.

For example, a client might connect from TCP port 51000 to a server’s TCP port 443. The reply reverses those port roles, while other connections can use different address-and-port combinations. Familiar port assignments are conventions, not proof of what an application really does. Traffic on port 443 is not automatically trustworthy or encrypted merely because that number appears in its header.

Read first
TCP, UDP
Related
Socket, Network address translation, HTTPS
Further reading
IETF RFC 6335 — Internet Assigned Numbers Authority (IANA) Procedures for the Management of the Service Name and Transport Protocol Port Number Registry
192.0.2.10:51000 198.51.100.20:443 TCP request TCP response TCP … 443 … UDP … 443 … separate 16-bit port namespaces
Illustrative TCP conversation: source and destination ports reverse in replies, while the transport and IP addresses also help identify the endpoints.

View in the full Protocols collection