Common TCP and UDP Port Numbers: Reference Table with Protocols
The ten port numbers you will meet first: 22 SSH · 53 DNS · 80 HTTP · 443 HTTPS · 25 SMTP relay · 587 SMTP submission · 3389 RDP · 123 NTP · 445 SMB · 3306 MySQL / MariaDB. The table below has 90 ports. Each row says which transport the protocol actually puts on the wire (TCP, UDP or both) and, next to it, what the IANA registry lists for that number, because the two often differ. Of the 67 ports here that IANA registers to the same service on both TCP and UDP, 56 use only one of them in practice.
Most port lists copy the registry and stop there. That is how you end up with a firewall rule for UDP 22 that nothing will ever use, or a syslog collector on TCP 514 that is, according to IANA, the old rsh "shell" service. A port number on its own does not tell you much. You need the number, the transport, and whether the software you run actually lives there.
So this table keeps two columns apart. On the wire is what the protocol's own specification or vendor documentation says it uses. IANA registry entry is copied from the registry file, with its transports in brackets. Each row was checked against the registry file on 22 November 2026; a row whose service name is not in the file is left out.
Common port numbers by job (90 ports)
Rows are grouped by what the port is for: remote access, web, mail, names and time, files, directory and authentication, VPNs, voice, databases, messaging, containers, then monitoring and routing. Type in the filter box to cut it down: Mail leaves the mail ports, Kubernetes the control-plane ports.
| Port | On the wire | Service | IANA registry entry | What to know | Job | Spec |
|---|---|---|---|---|---|---|
| 22 | TCP | SSH, SFTP, scp | ssh (sctp, tcp, udp) registry lists more | SFTP and scp run inside the SSH connection; there is no separate SFTP port. IANA also lists 22/udp and 22/sctp. | Remote access | RFC 4253 |
| 23 | TCP | Telnet | telnet (tcp, udp) registry lists more | Cleartext, passwords included. Keep it off any network you do not own end to end. | Remote access | IANA registry |
| 3389 | TCP+UDP | RDP (Remote Desktop) | ms-wbt-server (tcp, udp) | Microsoft lists TCP and UDP 3389. UDP is the RDP transport extension for lossy WAN links; a TCP-only rule still connects, without it. | Remote access | Microsoft, ports used by RDS |
| 5900 | TCP | VNC (RFB) | rfb (tcp, udp) registry lists more | Display N listens on 5900 + N, so a second session is 5901. | Remote access | RFC 6143 |
| 5985 | TCP | WinRM over HTTP | wsman (tcp, udp) registry lists more | WS-Management, the transport under PowerShell remoting. | Remote access | IANA registry |
| 5986 | TCP | WinRM over HTTPS | wsmans (tcp, udp) registry lists more | Same service over TLS. | Remote access | IANA registry |
| 80 | TCP | HTTP | http (sctp, tcp, udp); also www, www-http registry lists more | IANA lists 80/udp and 80/sctp; nothing uses them. HTTP/3 is defined for https:// only, so port 80 stays TCP. | Web | RFC 9114 |
| 443 | TCP+UDP | HTTPS (HTTP/1.1, HTTP/2, HTTP/3) | https (sctp, tcp, udp) | TCP carries HTTP/1.1 and HTTP/2. UDP carries HTTP/3 over QUIC, which a browser usually learns about from an Alt-Svc header on a TCP connection first. | Web | RFC 9114 |
| 8080 | TCP | HTTP, second port | http-alt (tcp, udp) registry lists more | IANA's own description reads "HTTP Alternate (see port 80)". | Web | IANA registry |
| 8443 | TCP | HTTPS, second port | pcsync-https (tcp, udp) registered to another service | Registered to PCsync HTTPS. Apache Tomcat's TLS connector examples use 8443. | Web | Apache Tomcat SSL how-to |
| 25 | TCP | SMTP relay | smtp (tcp, udp) registry lists more | Server-to-server transfer. Mail clients should submit on 587 or 465 instead. | RFC 6409 | |
| 465 | TCP | SMTP submission, implicit TLS | submissions (tcp); also igmpv3lite, urd | RFC 8314 (2018) put 465 back into service for submission. The registry still carries two older entries on the same number: URD on TCP and IGMP over UDP. | RFC 8314 | |
| 587 | TCP | SMTP submission, STARTTLS | submission (tcp, udp) registry lists more | Starts in cleartext and upgrades with STARTTLS. | RFC 6409 | |
| 110 | TCP | POP3 | pop3 (tcp, udp) registry lists more | IANA registry | ||
| 995 | TCP | POP3 over TLS | pop3s (tcp, udp) registry lists more | TLS handshake starts immediately. | RFC 8314 | |
| 143 | TCP | IMAP | imap (tcp) | IANA marks 143/udp as Reserved, not assigned. | IANA registry | |
| 993 | TCP | IMAP over TLS | imaps (tcp) | TLS handshake starts immediately; 993/udp is Reserved. | RFC 8314 | |
| 53 | TCP+UDP | DNS | domain (tcp, udp) | TCP is not optional: RFC 7766 says general-purpose DNS implementations must support both. Truncated answers, DNSSEC and zone transfers move to TCP. | Names, time, addressing | RFC 7766 |
| 853 | TCP+UDP | DNS over TLS / DNS over QUIC | domain-s (tcp, udp) | TCP for DNS over TLS, UDP for DNS over QUIC. | Names, time, addressing | RFC 7858, RFC 9250 |
| 5353 | UDP | mDNS (Bonjour, Avahi) | mdns (tcp, udp) registry lists more | Multicast to 224.0.0.251 or FF02::FB on the local link only. | Names, time, addressing | RFC 6762 |
| 67 | UDP | DHCP server | bootps (tcp, udp) registry lists more | Clients send to 67. | Names, time, addressing | RFC 2131 |
| 68 | UDP | DHCP client | bootpc (tcp, udp) registry lists more | Servers answer to 68. | Names, time, addressing | RFC 2131 |
| 546 | UDP | DHCPv6 client | dhcpv6-client (tcp, udp) registry lists more | Names, time, addressing | RFC 8415 | |
| 547 | UDP | DHCPv6 server and relay | dhcpv6-server (tcp, udp) registry lists more | Names, time, addressing | RFC 8415 | |
| 123 | UDP | NTP | ntp (tcp, udp) registry lists more | An NTP packet is a UDP datagram; the 123/tcp registration has no use in the protocol. | Names, time, addressing | RFC 5905 |
| 20 | TCP | FTP data (active mode) | ftp-data (sctp, tcp, udp) registry lists more | Only in active mode. In passive mode the server opens a data port it announces. | Files and storage | RFC 959 |
| 21 | TCP | FTP control | ftp (sctp, tcp, udp) registry lists more | Explicit FTPS (AUTH TLS) also runs here. | Files and storage | RFC 4217 |
| 69 | UDP | TFTP | tftp (tcp, udp) registry lists more | Only the first request hits 69; the transfer then runs between two other ports. | Files and storage | RFC 1350 |
| 989 | TCP | FTPS data, implicit TLS | ftps-data (tcp, udp) registry lists more | Legacy implicit mode. The standard (RFC 4217) puts TLS on port 21 instead. | Files and storage | RFC 4217 |
| 990 | TCP | FTPS control, implicit TLS | ftps (tcp, udp) registry lists more | Legacy implicit mode, same caveat as 989. | Files and storage | RFC 4217 |
| 445 | TCP | SMB (Windows file sharing) | microsoft-ds (tcp, udp) registry lists more | SMB straight over TCP, no NetBIOS layer. | Files and storage | IANA registry |
| 137 | UDP | NetBIOS name service | netbios-ns (tcp, udp) registry lists more | RFC 1002 also defines a TCP name service on 137. | Files and storage | RFC 1002 |
| 138 | UDP | NetBIOS datagram | netbios-dgm (tcp, udp) registry lists more | Files and storage | RFC 1002 | |
| 139 | TCP | NetBIOS session (old SMB) | netbios-ssn (tcp, udp) registry lists more | Files and storage | RFC 1002 | |
| 2049 | TCP | NFS | nfs (sctp, tcp, udp); also shilp registry lists more | NFSv4 needs only this port. NFSv3 also needs rpcbind on 111 and mountd, whose port rpcbind hands out at start-up. IANA lists a second, unrelated name (shilp) on 2049. | Files and storage | RFC 7530 |
| 111 | TCP+UDP | rpcbind / portmapper (ONC RPC) | sunrpc (tcp, udp) | NFSv3 clients ask it where mountd and the lock manager listen. Those ports are picked at start-up unless you pin them in the server config. | Files and storage | RFC 1833 |
| 873 | TCP | rsync daemon | rsync (tcp, udp) registry lists more | Only for rsync:// URLs. rsync over SSH uses 22. | Files and storage | IANA registry |
| 3260 | TCP | iSCSI | iscsi-target (tcp, udp) registry lists more | Files and storage | RFC 7143 | |
| 9418 | TCP | Git protocol (git://) | git (tcp, udp) registry lists more | No authentication. HTTPS and SSH remotes use 443 and 22. | Files and storage | IANA registry |
| 88 | TCP+UDP | Kerberos | kerberos (tcp, udp) | Starts on UDP; a KDC answers KRB_ERR_RESPONSE_TOO_BIG when the ticket does not fit, and the client retries on TCP. | Directory and auth | RFC 4120 |
| 389 | TCP+UDP | LDAP, and CLDAP for Active Directory | ldap (tcp, udp) | Plain LDAP queries use TCP. UDP 389 is CLDAP, the ping the Active Directory DC locator sends to find a domain controller; Microsoft's AD port list has both. | Directory and auth | Microsoft, service overview and network port requirements |
| 464 | TCP+UDP | Kerberos password change (kpasswd) | kpasswd (tcp, udp) | RFC 3244 puts the service on UDP and TCP 464, and Microsoft's AD port list opens both. It carries password changes, not logons. | Directory and auth | RFC 3244 |
| 636 | TCP | LDAP over TLS | ldaps (tcp, udp) registry lists more | Directory and auth | IANA registry | |
| 3268 | TCP | Active Directory Global Catalog | msft-gc (tcp, udp) registry lists more | 3269 is the LDAP over TLS version. | Directory and auth | IANA registry |
| 1812 | UDP | RADIUS authentication | radius (tcp, udp) registry lists more | Early RADIUS used 1645, which collides with another service; old gear may still be set to it. | Directory and auth | RFC 2865 |
| 1813 | UDP | RADIUS accounting | radius-acct (tcp, udp) registry lists more | Directory and auth | RFC 2866 | |
| 49 | TCP | TACACS+ | tacacs (tcp, udp) registry lists more | The registry entry still carries the older TACACS name; TACACS+ itself is TCP only. | Directory and auth | RFC 8907 |
| 500 | UDP | IKE (IPsec key exchange) | isakmp (tcp, udp) registry lists more | VPN and tunnels | RFC 7296 | |
| 4500 | UDP | IPsec NAT traversal | ipsec-nat-t (tcp, udp) registry lists more | ESP wrapped in UDP once a NAT is detected on the path. | VPN and tunnels | RFC 3948 |
| 1194 | UDP or TCP | OpenVPN | openvpn (tcp, udp) | One transport per server, picked in the config (proto udp or proto tcp). | VPN and tunnels | OpenVPN 2.6 manual |
| 51820 | UDP | WireGuard | No entry (dynamic range) no assignment | No IANA assignment. It is the port in WireGuard's own examples, and it falls inside Linux's default ephemeral range. | VPN and tunnels | WireGuard protocol and quickstart |
| 1701 | UDP | L2TP | l2tp (tcp, udp); also l2f registry lists more | IANA lists L2F and L2TP on the same number. | VPN and tunnels | RFC 2661 |
| 1723 | TCP | PPTP control | pptp (tcp, udp) registry lists more | Control channel only. The tunnel itself is GRE, which no TCP or UDP port rule matches. | VPN and tunnels | RFC 2637 |
| 4789 | UDP | VXLAN | vxlan (udp) | 4789/tcp is Reserved. | VPN and tunnels | IANA registry |
| 3478 | TCP+UDP | STUN / TURN | stun (tcp, udp); also stun-behavior, turn | Default port for STUN requests on both TCP and UDP. | VPN and tunnels | RFC 8489 |
| 5060 | TCP+UDP | SIP | sip (sctp, tcp, udp) | Default for UDP, TCP and SCTP. | Voice and video | RFC 3261 |
| 5061 | TCP | SIP over TLS | sips (sctp, tcp, udp) registry lists more | Voice and video | RFC 3261 | |
| 5004 | UDP | RTP media | avt-profile-1 (dccp, tcp, udp) registry lists more | Registered default only; the media ports of a call are the ones its session description names. | Voice and video | IANA registry |
| 554 | TCP | RTSP | rtsp (tcp, udp) registry lists more | Stream control, common on IP cameras; the video itself usually travels on separate RTP ports. | Voice and video | IANA registry |
| 1433 | TCP | Microsoft SQL Server | ms-sql-s (tcp, udp) registry lists more | Default instance. Named instances use dynamic ports. | Databases and caches | Microsoft, SQL Server firewall ports |
| 1434 | UDP | SQL Server Browser | ms-sql-m (tcp, udp) registry lists more | Microsoft's own firewall example opens it as UDP. | Databases and caches | Microsoft, SQL Server firewall ports |
| 1521 | TCP | Oracle Database listener | ncube-lm (tcp, udp) registered to another service | IANA gives 1521 to nCube License Manager. Oracle's registered ports are 2483 and 2484 (TLS); the listener still defaults to 1521. | Databases and caches | Oracle Net Services reference |
| 3306 | TCP | MySQL / MariaDB | mysql (tcp, udp) registry lists more | Databases and caches | IANA registry | |
| 5432 | TCP | PostgreSQL | postgresql (tcp, udp) registry lists more | Databases and caches | IANA registry | |
| 6379 | TCP | Redis | redis (tcp) | 6379/udp is Reserved. | Databases and caches | IANA registry |
| 11211 | TCP | Memcached | memcache (tcp, udp) registry lists more | The server can also listen on UDP if told to. Never expose UDP 11211 to the internet. | Databases and caches | IANA registry |
| 27017 | TCP | MongoDB | mongodb (tcp) | 27018 is the default for a shard server. | Databases and caches | MongoDB default ports |
| 9200 | TCP | Elasticsearch HTTP API | wap-wsp (tcp, udp) registered to another service | IANA: WAP connectionless session service. Elasticsearch binds the first free port in 9200-9300. | Databases and caches | Elasticsearch networking settings |
| 9300 | TCP | Elasticsearch node transport | vrace (tcp, udp) registered to another service | IANA: Virtual Racing Service. Elasticsearch binds the first free port in 9300-9400. | Databases and caches | Elasticsearch networking settings |
| 1883 | TCP | MQTT | mqtt (tcp, udp) registry lists more | IANA lists 1883/udp as well. | Messaging | IANA registry |
| 8883 | TCP | MQTT over TLS | secure-mqtt (tcp, udp) registry lists more | Messaging | IANA registry | |
| 5672 | TCP | AMQP (RabbitMQ and others) | amqp (sctp, tcp, udp) registry lists more | Messaging | IANA registry | |
| 5671 | TCP | AMQP over TLS | amqps (tcp, udp) registry lists more | Messaging | IANA registry | |
| 9092 | TCP | Apache Kafka broker | XmlIpcRegSvc (tcp, udp) registered to another service | IANA: Xml-Ipc Server Reg. Kafka's own quickstart publishes 9092. | Messaging | Apache Kafka quickstart |
| 5222 | TCP | XMPP client | xmpp-client (tcp) | 5222/udp is Reserved. | Messaging | IANA registry |
| 2375 | TCP | Docker Engine API, plaintext | docker (tcp) | No TLS, no authentication: whoever reaches it controls the Docker daemon. | Containers and Kubernetes | IANA registry |
| 2376 | TCP | Docker Engine API, TLS | docker-s (tcp) | Containers and Kubernetes | IANA registry | |
| 2379 | TCP | etcd client API | etcd-client (tcp) | kube-apiserver talks to etcd here. | Containers and Kubernetes | Kubernetes ports and protocols |
| 2380 | TCP | etcd peer | etcd-server (tcp) | Containers and Kubernetes | Kubernetes ports and protocols | |
| 6443 | TCP | Kubernetes API server | sun-sr-https (tcp, udp) registered to another service | IANA: Service Registry Default HTTPS Domain. | Containers and Kubernetes | Kubernetes ports and protocols |
| 10250 | TCP | kubelet API | Unassigned no assignment | Inside an IANA Unassigned block (10202-10251). | Containers and Kubernetes | Kubernetes ports and protocols |
| 10257 | TCP | kube-controller-manager | Unassigned no assignment | Unassigned at IANA. | Containers and Kubernetes | Kubernetes ports and protocols |
| 10259 | TCP | kube-scheduler | Unassigned no assignment | Unassigned at IANA. | Containers and Kubernetes | Kubernetes ports and protocols |
| 161 | UDP | SNMP agent | snmp (tcp, udp) registry lists more | Monitoring and routing | RFC 3417 | |
| 162 | UDP | SNMP trap | snmptrap (tcp, udp) registry lists more | Managers receive traps here. | Monitoring and routing | RFC 3417 |
| 514 | UDP | Syslog | syslog (udp); also shell | 514/tcp is registered to "shell" (rsh), not syslog. Syslog over TLS is 6514/tcp. | Monitoring and routing | RFC 5426 |
| 6514 | TCP | Syslog over TLS | syslog-tls (dccp, tcp, udp) registry lists more | Monitoring and routing | RFC 5425 | |
| 179 | TCP | BGP | bgp (sctp, tcp, udp) registry lists more | Monitoring and routing | RFC 4271 | |
| 520 | UDP | RIP | router (udp); also efs | 520/tcp belongs to a different service (efs). | Monitoring and routing | IANA registry |
| 135 | TCP | Microsoft RPC endpoint mapper | epmap (tcp, udp) registry lists more | RPC starts here, then moves to a port from the dynamic range (49152-65535 since Windows Vista and Server 2008). | Monitoring and routing | Microsoft, default dynamic port range |
Where the registry and the wire disagree
Every row above sits in exactly one of four groups, so the counts add up to the 90 ports: 24 + 56 + 6 + 4 = 90. The comparison looks at TCP and UDP only. SCTP and DCCP lines in the registry are left out, which is why 443 and 5060 count as matches although IANA also lists them on SCTP (10 of the 90 numbers here have an SCTP line).
- 24 match on TCP and UDP: the registered service is the one in use, on the same transports the protocol uses.
- 56 are registered to the right service on more transports than the protocol uses. The registry often lists one name on both TCP and UDP whether the protocol needs both or not. HTTP on 80, SSH on 22, MySQL on 3306 and NTP's TCP twin on 123 are all in this group.
- 6 are registered to another service and used every day by software that does not own the number: Oracle on 1521, Kubernetes on 6443, Kafka on 9092, Elasticsearch on 9200 and 9300, and 8443, which Tomcat's TLS examples use.
- 4 have no assignment at all: WireGuard's 51820 sits in the never-assigned dynamic range, and the kubelet, scheduler and controller-manager ports are in blocks IANA lists as Unassigned.
The practical rule: write firewall rules from the "On the wire" column, and use the registry to check that a number you pick for a new service is not already taken by something your neighbours run.
The 65,536 port numbers in one picture
A port is a 16-bit field in the TCP and UDP headers, so there are 216 = 65,536 numbers, 0 to 65,535. RFC 6335 cuts them into three ranges. The counts below come straight from the registry file, per transport: assigned (has a service name), reserved, unassigned, and other (old "any private" lines and numbers marked de-registered or removed). The dynamic range has no lines at all, which is why it counts as unassigned.
| Range | Ports | Size | Share of 65,536 | TCP: A / R / U / O | UDP: A / R / U / O |
|---|---|---|---|---|---|
| System (well-known) | 0-1,023 | 2^10 = 1,024 | 1.56 % | 682 / 49 / 284 / 9 | 678 / 54 / 282 / 10 |
| User (registered) | 1,024-49,151 | 2^15 + 2^14 − 2^10 = 48,128 | 73.44 % | 5,468 / 202 / 42,449 / 9 | 5,080 / 582 / 42,455 / 11 |
| Dynamic (private, ephemeral) | 49,152-65,535 | 2^14 = 16,384 | 25.00 % | 0 / 0 / 16,384 / 0 | 0 / 0 / 16,384 / 0 |
Two things stand out. Two thirds of the System range is taken: 682 of 1,024 TCP numbers have a service name (66.6 %) and 49 more are reserved. And the User range, which is where every new protocol has to go, already has 5,468 TCP assignments out of 48,128. The registry as a whole names 6,150 TCP ports and 5,758 UDP ports.
Ephemeral ports: how many outgoing connections you really get
Every outgoing TCP connection needs a local port, and a closed connection keeps its port in TIME-WAIT for a while before it can be used again toward the same destination. That gives a hard ceiling on how many new connections per second one source address can open to one destination address and port:
max new connections per second = ephemeral ports / TIME-WAIT seconds
| System | Ceiling | Range | Ports | TIME-WAIT | Basis |
|---|---|---|---|---|---|
| Linux default | 470.5/s28,232 / 60 | 32,768-60,999 | 28,232 | 60 s | TIME-WAIT is fixed at 60 s in the kernel (TCP_TIMEWAIT_LEN) |
| Linux widened | 1,075.2/s64,512 / 60 | 1,024-65,535 | 64,512 | 60 s | ip_local_port_range set to 1024 65535; it may not start below ip_unprivileged_port_start (1024) |
| Windows Vista / Server 2008 and later | 136.5/s16,384 / 120 | 49,152-65,535 | 16,384 | 120 s | TcpTimedWaitDelay is not in the registry by default; Microsoft gives its default as 0x78 = 120 s |
| Same, tuned to 30 s | 546.1/s16,384 / 30 | 49,152-65,535 | 16,384 | 30 s | TcpTimedWaitDelay = 30, the value Microsoft's BizTalk network tuning guide recommends |
| Windows Server 2003 | 33.1/s3,976 / 120 | 1,025-5,000 | 3,976 | 120 s | old 1025-5000 range; the Server 2003 reference table gives 0x78 = 120 s, although its own text describes 2 × 120 s = 4 minutes |
| Windows 2000 | 16.6/s3,976 / 240 | 1,025-5,000 | 3,976 | 240 s | TcpTimedWaitDelay default 0xF0 = 240 s in the Windows 2000 TCP/IP reference |
A worked case. A reverse proxy on Linux opens 1,000 new connections a second to a single backend, 10.0.0.5:8080, without keep-alive, and the proxy is the side that closes each connection first, the usual case without keep-alive. TIME-WAIT stays with whoever closes first; if the backend closes, the proxy's port is free at once. In steady state it needs 1,000 × 60 = 60,000 ports parked in TIME-WAIT, and it only has 28,232. It runs dry after 28,232 / 1,000 = 28.2 seconds, and from then on new connects fail with EADDRNOTAVAIL ("Cannot assign requested address"). Linux does not reuse TIME-WAIT sockets for outgoing connections by default except on loopback (tcp_tw_reuse = 2), so the ceiling is real.
The fixes, cheapest first: reuse connections (HTTP keep-alive or a connection pool), which takes the rate down to almost nothing. Spread the load over more backend ports or addresses, because each destination gets its own 28,232. Add source addresses. Widen ip_local_port_range to 1024 65535 for 64,512 ports, after reserving the ports your own services listen on (next section).
Eight port mistakes that break firewall rules, and the fix for each
Before writing this table we read the twelve pages that rank for this search. Most get the numbers right. Where they slip is the transport. Four of the twelve give a transport for 3389, and three of those four say TCP alone. Three list IMAP on 143 or 993 as "TCP, UDP", although the registry marks 143/udp and 993/udp as Reserved.
1. DNS allowed on UDP 53 only. Small queries work, so the rule looks fine for weeks. Then a DNSSEC-signed answer or a big TXT record comes back truncated, the resolver retries on TCP, and the lookup times out. Fix: allow TCP 53 as well. RFC 7766 makes TCP support mandatory for general-purpose DNS.
2. RDP opened on TCP 3389 only. The session connects, so nobody notices that it never gets the UDP transport Microsoft built for lossy WAN links. Fix: open UDP 3389 next to TCP 3389, as Microsoft's own port list does, and only toward the gateways or addresses that need it.
3. Syslog over TCP pointed at 514. 514/udp is syslog, but 514/tcp is registered to the BSD rsh "shell" service. Plenty of collectors listen on plain TCP 514 anyway, and anything that names ports from the registry will call that listener "shell". Fix: send TCP syslog over TLS to 6514 (RFC 5425), or document the non-standard 514/tcp listener.
4. Port 465 refused because "it is deprecated". It was, for years. Fix: since RFC 8314 (2018) 465 is the port for mail submission over implicit TLS. Accept 465 and 587 on submission servers; keep 25 for server-to-server relay.
5. "Allow HTTPS" written as TCP 443 only. Nothing breaks, but HTTP/3 never gets used, because QUIC needs UDP 443. Fix: allow UDP 443 outbound for clients and inbound on servers that serve HTTP/3. If you block it on purpose, do it knowing browsers will stay on HTTP/2.
6. Stateless return rules that assume one ephemeral range. A cloud network ACL or an old router filter that only lets 49152-65535 back in works for Windows clients and silently drops Linux clients, whose source ports start at 32768. Fix: open 1024-65535 for return traffic on stateless filters, or switch to a stateful firewall that tracks the connection.
7. A service that sometimes fails to start with "Address already in use". WireGuard on 51820, or any other listener placed inside 32768-60999, can lose its port to an outgoing connection that grabbed it first as a source port. Fix: list those ports in net.ipv4.ip_local_reserved_ports (for example 51820) so the kernel never hands them out as ephemeral ports, or move the listener below 32768.
8. LDAP opened on TCP 389 only in front of domain controllers. Directory queries work, so the rule passes a quick test. But the Active Directory DC locator pings domain controllers with CLDAP over UDP 389, and clients that cannot reach it have trouble finding a DC to log on or join against. Fix: open UDP 389 to the DCs next to TCP 389, plus TCP and UDP 464 for password changes, as Microsoft's own AD port list does.
Download the table as CSV
All 90 rows in one file, sorted by port: service, transport on the wire, job, IANA range, the IANA service name and its transports, the registry entry exactly as listed, the registry-versus-wire verdict, whether the number is registered to a different service, whether it falls inside Linux's default ephemeral range, the note and the spec with its link.
Method. The registry file (service-names-port-numbers.csv, last updated 2026-11-19) was downloaded on 22 November 2026. Each row was checked against that file; a row whose service name is not in it is left out. The verdict compares the TCP and UDP transports registered to that name with the ones the spec describes; SCTP and DCCP lines are ignored. Numbers that a registry line assigns as a block count one by one, both in the range table and in the chart.
- Rows × columns
- 90 rows × 16 columns
- Checked
- 22 November 2026
- File
/data/common-tcp-udp-ports-iana-vs-wire.csv· UTF-8 · comma-separated · first row = column names
Attribution (copy and paste):
Source: Common TCP and UDP Port Numbers, IANA Registry vs Wire, SystemSpecVault (https://systemspecvault.com/data/common-tcp-udp-ports-iana-vs-wire.csv), CC BY 4.0, checked November 2026.Related on this site: work out the MTU and MSS left inside a WireGuard, IPsec or VXLAN tunnel with the Tunnel MTU & TCP MSS Calculator, plan address blocks with the VLSM & CIDR Subnet Calculator, and check how long DNS changes take to reach clients with the DNS TTL Propagation Calculator. More in the Network & Fiber Hub.
Sources
- IANA · Service Name and Transport Protocol Port Number Registry RegistryEvery "IANA registry entry" cell and the range counts; file last updated 2026-11-19, downloaded 22 November 2026.
- RFC 6335 · IANA procedures for port numbers IETF standardSystem 0-1023, User 1024-49151, Dynamic 49152-65535, never assigned.
- Linux kernel · IP sysctl Kernel documentationip_local_port_range default 32768 60999; ip_local_reserved_ports; tcp_tw_reuse default 2 (loopback only); ip_unprivileged_port_start default 1024.
- Linux kernel source · include/net/tcp.h Source codeTCP_TIMEWAIT_LEN (60*HZ), the 60 s TIME-WAIT.
- Microsoft · The default dynamic port range for TCP/IP has changed Vendor documentation49152-65535 since Windows Vista and Server 2008; 1025-5000 before; RPC between servers needs the dynamic range open.
- Microsoft · Settings that can be modified to improve network performance Vendor documentationTcpTimedWaitDelay: not present by default, default 0x78 (120 s), range 2-300 s on Server 2012 R2 and later, recommended 30.
- Microsoft · TcpTimedWaitDelay, Windows Server 2003 and Windows 2000 Archived vendor documentationServer 2003 table: default 0x78 (120 s); Windows 2000: default 0xF0 (240 s).
- Microsoft · Service overview and network port requirements Vendor documentationLDAP 389 on TCP and UDP, DC Locator on UDP 389, Kerberos password change on TCP and UDP 464.
- RFC 1833 · Binding protocols for ONC RPC IETF standardrpcbind and portmapper on port 111 over TCP and UDP.
- RFC 7766 · DNS transport over TCP IETF standardGeneral-purpose DNS implementations must support both UDP and TCP.
- RFC 9114 · HTTP/3 and RFC 9000 · QUIC IETF standardHTTP/3 for https URIs, discovered through Alt-Svc; QUIC packets are carried in UDP datagrams.
- RFC 8314 · Cleartext considered obsolete for mail IETF standardImplicit TLS on 465 (submission), 993 (IMAP) and 995 (POP3).
- Microsoft · Ports used by Remote Desktop Services Vendor documentationTCP and UDP 3389 as the standard RDP port.
- RFC 5425 · Syslog over TLS and RFC 5426 · Syslog over UDP IETF standard6514/tcp for TLS, 514/udp for plain syslog.
- Kubernetes · Ports and protocols Project documentation6443, 2379-2380, 10250, 10257, 10259 and the NodePort range 30000-32767.
- Oracle · Net Services reference, recommended port numbers Vendor documentation1521 default listener port; officially registered 2483 and 2484 (TLS).
The "Spec" column links the document behind each row's transport. Method and test suite: Calculation Methodology.
Frequently Asked Questions: Common Port Numbers
What are the most common port numbers?
The ones nearly every network has open somewhere: 22 (SSH), 53 (DNS), 80 (HTTP), 443 (HTTPS), 25 and 587 (mail relay and submission), 3389 (Remote Desktop), 123 (NTP), 445 (SMB) and 3306 (MySQL). The full table on this page has 90 ports, each with the transport it really uses.
Is DNS TCP or UDP?
Both. Most queries go over UDP port 53, but RFC 7766 requires general-purpose DNS implementations to support TCP as well. Large answers, DNSSEC responses and zone transfers use TCP, so a firewall that only allows UDP 53 breaks some lookups.
Does HTTPS use UDP?
Yes, when the site speaks HTTP/3. HTTP/3 runs over QUIC, and QUIC is carried in UDP, normally on 443. HTTP/1.1 and HTTP/2 stay on TCP 443. Block UDP 443 and browsers keep using TCP.
What is the difference between well-known, registered and dynamic ports?
RFC 6335 splits the 65,536 numbers into System ports 0 to 1,023, User (registered) ports 1,024 to 49,151 and Dynamic ports 49,152 to 65,535. IANA assigns the first two ranges to services; the dynamic range is never assigned and is meant for temporary client ports.
Which ports does Linux use for outgoing connections?
By default 32,768 to 60,999, which is 28,232 ports (net.ipv4.ip_local_port_range). Windows since Vista and Server 2008 uses 49,152 to 65,535, which is 16,384 ports.
Is port 465 deprecated?
No longer. RFC 8314, published in 2018, made port 465 the port for mail submission over implicit TLS, alongside 587 with STARTTLS. IANA now lists 465/tcp as "submissions".