Port
Also known as: Network port, TCP port, UDP port
A 16-bit numeric endpoint (0 to 65,535) that allows a single IP address to host multiple network services at once, each addressable by a different port number.
Last updated:
What is a port?
A port is a 16-bit numeric endpoint used by TCP and UDP to demultiplex traffic arriving at a single IP address across multiple running services. Port numbers range from 0 to 65,535. The combination of an IP address and a port number is called a socket (e.g. 192.0.2.10:443). Every TCP or UDP packet has a source IP, source port, destination IP, and destination port — this 4-tuple uniquely identifies a connection.
Ports let a single web server handle HTTPS on port 443, a mail server on port 25, and an SSH daemon on port 22 without interfering with each other.
Port number ranges
IANA divides the port space into three ranges (RFC 6335):
- Well-known ports (0–1023) — reserved for system services. On Linux and macOS, binding to these ports requires root or administrator privileges.
- Registered ports (1024–49151) — assigned by IANA on request to specific applications (3306 MySQL, 5432 PostgreSQL, 6379 Redis, etc.)
- Dynamic / ephemeral ports (49152–65535) — assigned by the OS on the fly to outbound client connections
Common ports worth knowing
| Port | Protocol | Service | |-----:|----------|---------| | 22 | TCP | SSH | | 25 | TCP | SMTP | | 53 | TCP/UDP | DNS | | 80 | TCP | HTTP | | 110 | TCP | POP3 | | 143 | TCP | IMAP | | 443 | TCP | HTTPS | | 3306 | TCP | MySQL | | 3389 | TCP | RDP |
Open, closed, filtered
When probing a port from outside, responses fall into three categories:
- Open — a service is listening; the TCP handshake completed
- Closed — no service is listening; the host replied with a RST
- Filtered — a firewall is silently dropping packets, so nothing came back
Our port checker performs a TCP connect test from an external host and reports which of the three states applies.