Skip to content
Commitwise
Menu

Port

A number from 0 to 65,535 that picks which program on a machine receives the data.

Definition

Servers listen on known ports (443 for HTTPS, 5432 for PostgreSQL); clients get a random ephemeral port for each connection. A TCP connection is identified by protocol, source address and port, and destination address and port, so one server port can serve many clients.

In practice

https://example.com uses port 443 without writing it; a dev server at localhost:8080 names its port.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.