whatis port

Port

Also known as: TCP port, UDP port, listening port

A number from 0 to 65535 that identifies a specific service on a host, like 22 for SSH, 80 for HTTP, and 443 for HTTPS.

What Is a Network Port in Linux?

An IP address gets traffic to the right machine; the port gets it to the right program. Services "listen" on a port, and clients connect to it. Ports below 1024 are privileged and require root or a capability to bind.

ss -tulnp lists listening TCP and UDP ports with the owning process. Closing unused ports and firewalling the rest is one of the simplest server hardening steps.

Example

sudo ss -tulnp