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.

Maintained by SystemSpecVault · Last updated: November 2026 · IANA registry file of 2026-11-19, checked 22 November 2026 (see Calculation Methodology)

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.

90 common port numbers: the transport each protocol actually uses, next to what the IANA registry lists for that number. Registry file of 2026-11-19, every row checked against it on 22 November 2026
PortOn the wireServiceIANA registry entryWhat to knowJobSpec
22TCPSSH, SFTP, scpssh (sctp, tcp, udp) registry lists moreSFTP and scp run inside the SSH connection; there is no separate SFTP port. IANA also lists 22/udp and 22/sctp.Remote accessRFC 4253
23TCPTelnettelnet (tcp, udp) registry lists moreCleartext, passwords included. Keep it off any network you do not own end to end.Remote accessIANA registry
3389TCP+UDPRDP (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 accessMicrosoft, ports used by RDS
5900TCPVNC (RFB)rfb (tcp, udp) registry lists moreDisplay N listens on 5900 + N, so a second session is 5901.Remote accessRFC 6143
5985TCPWinRM over HTTPwsman (tcp, udp) registry lists moreWS-Management, the transport under PowerShell remoting.Remote accessIANA registry
5986TCPWinRM over HTTPSwsmans (tcp, udp) registry lists moreSame service over TLS.Remote accessIANA registry
80TCPHTTPhttp (sctp, tcp, udp); also www, www-http registry lists moreIANA lists 80/udp and 80/sctp; nothing uses them. HTTP/3 is defined for https:// only, so port 80 stays TCP.WebRFC 9114
443TCP+UDPHTTPS (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.WebRFC 9114
8080TCPHTTP, second porthttp-alt (tcp, udp) registry lists moreIANA's own description reads "HTTP Alternate (see port 80)".WebIANA registry
8443TCPHTTPS, second portpcsync-https (tcp, udp) registered to another serviceRegistered to PCsync HTTPS. Apache Tomcat's TLS connector examples use 8443.WebApache Tomcat SSL how-to
25TCPSMTP relaysmtp (tcp, udp) registry lists moreServer-to-server transfer. Mail clients should submit on 587 or 465 instead.MailRFC 6409
465TCPSMTP submission, implicit TLSsubmissions (tcp); also igmpv3lite, urdRFC 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.MailRFC 8314
587TCPSMTP submission, STARTTLSsubmission (tcp, udp) registry lists moreStarts in cleartext and upgrades with STARTTLS.MailRFC 6409
110TCPPOP3pop3 (tcp, udp) registry lists moreMailIANA registry
995TCPPOP3 over TLSpop3s (tcp, udp) registry lists moreTLS handshake starts immediately.MailRFC 8314
143TCPIMAPimap (tcp)IANA marks 143/udp as Reserved, not assigned.MailIANA registry
993TCPIMAP over TLSimaps (tcp)TLS handshake starts immediately; 993/udp is Reserved.MailRFC 8314
53TCP+UDPDNSdomain (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, addressingRFC 7766
853TCP+UDPDNS over TLS / DNS over QUICdomain-s (tcp, udp)TCP for DNS over TLS, UDP for DNS over QUIC.Names, time, addressingRFC 7858, RFC 9250
5353UDPmDNS (Bonjour, Avahi)mdns (tcp, udp) registry lists moreMulticast to 224.0.0.251 or FF02::FB on the local link only.Names, time, addressingRFC 6762
67UDPDHCP serverbootps (tcp, udp) registry lists moreClients send to 67.Names, time, addressingRFC 2131
68UDPDHCP clientbootpc (tcp, udp) registry lists moreServers answer to 68.Names, time, addressingRFC 2131
546UDPDHCPv6 clientdhcpv6-client (tcp, udp) registry lists moreNames, time, addressingRFC 8415
547UDPDHCPv6 server and relaydhcpv6-server (tcp, udp) registry lists moreNames, time, addressingRFC 8415
123UDPNTPntp (tcp, udp) registry lists moreAn NTP packet is a UDP datagram; the 123/tcp registration has no use in the protocol.Names, time, addressingRFC 5905
20TCPFTP data (active mode)ftp-data (sctp, tcp, udp) registry lists moreOnly in active mode. In passive mode the server opens a data port it announces.Files and storageRFC 959
21TCPFTP controlftp (sctp, tcp, udp) registry lists moreExplicit FTPS (AUTH TLS) also runs here.Files and storageRFC 4217
69UDPTFTPtftp (tcp, udp) registry lists moreOnly the first request hits 69; the transfer then runs between two other ports.Files and storageRFC 1350
989TCPFTPS data, implicit TLSftps-data (tcp, udp) registry lists moreLegacy implicit mode. The standard (RFC 4217) puts TLS on port 21 instead.Files and storageRFC 4217
990TCPFTPS control, implicit TLSftps (tcp, udp) registry lists moreLegacy implicit mode, same caveat as 989.Files and storageRFC 4217
445TCPSMB (Windows file sharing)microsoft-ds (tcp, udp) registry lists moreSMB straight over TCP, no NetBIOS layer.Files and storageIANA registry
137UDPNetBIOS name servicenetbios-ns (tcp, udp) registry lists moreRFC 1002 also defines a TCP name service on 137.Files and storageRFC 1002
138UDPNetBIOS datagramnetbios-dgm (tcp, udp) registry lists moreFiles and storageRFC 1002
139TCPNetBIOS session (old SMB)netbios-ssn (tcp, udp) registry lists moreFiles and storageRFC 1002
2049TCPNFSnfs (sctp, tcp, udp); also shilp registry lists moreNFSv4 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 storageRFC 7530
111TCP+UDPrpcbind / 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 storageRFC 1833
873TCPrsync daemonrsync (tcp, udp) registry lists moreOnly for rsync:// URLs. rsync over SSH uses 22.Files and storageIANA registry
3260TCPiSCSIiscsi-target (tcp, udp) registry lists moreFiles and storageRFC 7143
9418TCPGit protocol (git://)git (tcp, udp) registry lists moreNo authentication. HTTPS and SSH remotes use 443 and 22.Files and storageIANA registry
88TCP+UDPKerberoskerberos (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 authRFC 4120
389TCP+UDPLDAP, and CLDAP for Active Directoryldap (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 authMicrosoft, service overview and network port requirements
464TCP+UDPKerberos 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 authRFC 3244
636TCPLDAP over TLSldaps (tcp, udp) registry lists moreDirectory and authIANA registry
3268TCPActive Directory Global Catalogmsft-gc (tcp, udp) registry lists more3269 is the LDAP over TLS version.Directory and authIANA registry
1812UDPRADIUS authenticationradius (tcp, udp) registry lists moreEarly RADIUS used 1645, which collides with another service; old gear may still be set to it.Directory and authRFC 2865
1813UDPRADIUS accountingradius-acct (tcp, udp) registry lists moreDirectory and authRFC 2866
49TCPTACACS+tacacs (tcp, udp) registry lists moreThe registry entry still carries the older TACACS name; TACACS+ itself is TCP only.Directory and authRFC 8907
500UDPIKE (IPsec key exchange)isakmp (tcp, udp) registry lists moreVPN and tunnelsRFC 7296
4500UDPIPsec NAT traversalipsec-nat-t (tcp, udp) registry lists moreESP wrapped in UDP once a NAT is detected on the path.VPN and tunnelsRFC 3948
1194UDP or TCPOpenVPNopenvpn (tcp, udp)One transport per server, picked in the config (proto udp or proto tcp).VPN and tunnelsOpenVPN 2.6 manual
51820UDPWireGuardNo entry (dynamic range) no assignmentNo IANA assignment. It is the port in WireGuard's own examples, and it falls inside Linux's default ephemeral range.VPN and tunnelsWireGuard protocol and quickstart
1701UDPL2TPl2tp (tcp, udp); also l2f registry lists moreIANA lists L2F and L2TP on the same number.VPN and tunnelsRFC 2661
1723TCPPPTP controlpptp (tcp, udp) registry lists moreControl channel only. The tunnel itself is GRE, which no TCP or UDP port rule matches.VPN and tunnelsRFC 2637
4789UDPVXLANvxlan (udp)4789/tcp is Reserved.VPN and tunnelsIANA registry
3478TCP+UDPSTUN / TURNstun (tcp, udp); also stun-behavior, turnDefault port for STUN requests on both TCP and UDP.VPN and tunnelsRFC 8489
5060TCP+UDPSIPsip (sctp, tcp, udp)Default for UDP, TCP and SCTP.Voice and videoRFC 3261
5061TCPSIP over TLSsips (sctp, tcp, udp) registry lists moreVoice and videoRFC 3261
5004UDPRTP mediaavt-profile-1 (dccp, tcp, udp) registry lists moreRegistered default only; the media ports of a call are the ones its session description names.Voice and videoIANA registry
554TCPRTSPrtsp (tcp, udp) registry lists moreStream control, common on IP cameras; the video itself usually travels on separate RTP ports.Voice and videoIANA registry
1433TCPMicrosoft SQL Serverms-sql-s (tcp, udp) registry lists moreDefault instance. Named instances use dynamic ports.Databases and cachesMicrosoft, SQL Server firewall ports
1434UDPSQL Server Browserms-sql-m (tcp, udp) registry lists moreMicrosoft's own firewall example opens it as UDP.Databases and cachesMicrosoft, SQL Server firewall ports
1521TCPOracle Database listenerncube-lm (tcp, udp) registered to another serviceIANA gives 1521 to nCube License Manager. Oracle's registered ports are 2483 and 2484 (TLS); the listener still defaults to 1521.Databases and cachesOracle Net Services reference
3306TCPMySQL / MariaDBmysql (tcp, udp) registry lists moreDatabases and cachesIANA registry
5432TCPPostgreSQLpostgresql (tcp, udp) registry lists moreDatabases and cachesIANA registry
6379TCPRedisredis (tcp)6379/udp is Reserved.Databases and cachesIANA registry
11211TCPMemcachedmemcache (tcp, udp) registry lists moreThe server can also listen on UDP if told to. Never expose UDP 11211 to the internet.Databases and cachesIANA registry
27017TCPMongoDBmongodb (tcp)27018 is the default for a shard server.Databases and cachesMongoDB default ports
9200TCPElasticsearch HTTP APIwap-wsp (tcp, udp) registered to another serviceIANA: WAP connectionless session service. Elasticsearch binds the first free port in 9200-9300.Databases and cachesElasticsearch networking settings
9300TCPElasticsearch node transportvrace (tcp, udp) registered to another serviceIANA: Virtual Racing Service. Elasticsearch binds the first free port in 9300-9400.Databases and cachesElasticsearch networking settings
1883TCPMQTTmqtt (tcp, udp) registry lists moreIANA lists 1883/udp as well.MessagingIANA registry
8883TCPMQTT over TLSsecure-mqtt (tcp, udp) registry lists moreMessagingIANA registry
5672TCPAMQP (RabbitMQ and others)amqp (sctp, tcp, udp) registry lists moreMessagingIANA registry
5671TCPAMQP over TLSamqps (tcp, udp) registry lists moreMessagingIANA registry
9092TCPApache Kafka brokerXmlIpcRegSvc (tcp, udp) registered to another serviceIANA: Xml-Ipc Server Reg. Kafka's own quickstart publishes 9092.MessagingApache Kafka quickstart
5222TCPXMPP clientxmpp-client (tcp)5222/udp is Reserved.MessagingIANA registry
2375TCPDocker Engine API, plaintextdocker (tcp)No TLS, no authentication: whoever reaches it controls the Docker daemon.Containers and KubernetesIANA registry
2376TCPDocker Engine API, TLSdocker-s (tcp)Containers and KubernetesIANA registry
2379TCPetcd client APIetcd-client (tcp)kube-apiserver talks to etcd here.Containers and KubernetesKubernetes ports and protocols
2380TCPetcd peeretcd-server (tcp)Containers and KubernetesKubernetes ports and protocols
6443TCPKubernetes API serversun-sr-https (tcp, udp) registered to another serviceIANA: Service Registry Default HTTPS Domain.Containers and KubernetesKubernetes ports and protocols
10250TCPkubelet APIUnassigned no assignmentInside an IANA Unassigned block (10202-10251).Containers and KubernetesKubernetes ports and protocols
10257TCPkube-controller-managerUnassigned no assignmentUnassigned at IANA.Containers and KubernetesKubernetes ports and protocols
10259TCPkube-schedulerUnassigned no assignmentUnassigned at IANA.Containers and KubernetesKubernetes ports and protocols
161UDPSNMP agentsnmp (tcp, udp) registry lists moreMonitoring and routingRFC 3417
162UDPSNMP trapsnmptrap (tcp, udp) registry lists moreManagers receive traps here.Monitoring and routingRFC 3417
514UDPSyslogsyslog (udp); also shell514/tcp is registered to "shell" (rsh), not syslog. Syslog over TLS is 6514/tcp.Monitoring and routingRFC 5426
6514TCPSyslog over TLSsyslog-tls (dccp, tcp, udp) registry lists moreMonitoring and routingRFC 5425
179TCPBGPbgp (sctp, tcp, udp) registry lists moreMonitoring and routingRFC 4271
520UDPRIProuter (udp); also efs520/tcp belongs to a different service (efs).Monitoring and routingIANA registry
135TCPMicrosoft RPC endpoint mapperepmap (tcp, udp) registry lists moreRPC starts here, then moves to a port from the dynamic range (49152-65535 since Windows Vista and Server 2008).Monitoring and routingMicrosoft, 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).

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.

IANA port ranges with their size (RFC 6335) and how much of each range is assigned (A = assigned, R = reserved, U = unassigned, O = other), from the registry file of 2026-11-19
RangePortsSizeShare of 65,536TCP: A / R / U / OUDP: A / R / U / O
System (well-known)0-1,0232^10 = 1,0241.56 %682 / 49 / 284 / 9678 / 54 / 282 / 10
User (registered)1,024-49,1512^15 + 2^14 − 2^10 = 48,12873.44 %5,468 / 202 / 42,449 / 95,080 / 582 / 42,455 / 11
Dynamic (private, ephemeral)49,152-65,5352^14 = 16,38425.00 %0 / 0 / 16,384 / 00 / 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.

The 65,536 TCP and UDP port numbers, the IANA ranges and the ephemeral ranges of Linux and Windows Bars show how many TCP port numbers IANA has assigned in each block of 2,048 ports, from the registry updated 2026-11-19. The first block, 0 to 2,047, holds 1,693 assignments; nothing is assigned from 49,152 up. Below the bars: the IANA System, User and Dynamic ranges, then the default ephemeral ranges of Linux (32,768 to 60,999) and Windows (49,152 to 65,535) and the Kubernetes NodePort range. IANA-assigned TCP ports per block of 2,048 (registry of 2026-11-19) 1,013 2,026 0 to 2,047: 1,693 assigned 2,048 to 4,095: 2,026 assigned 4,096 to 6,143: 1,016 assigned 6,144 to 8,191: 546 assigned 8,192 to 10,239: 340 assigned 10,240 to 12,287: 76 assigned 12,288 to 14,335: 45 assigned 14,336 to 16,383: 26 assigned 16,384 to 18,431: 44 assigned 18,432 to 20,479: 40 assigned 20,480 to 22,527: 37 assigned 22,528 to 24,575: 34 assigned 24,576 to 26,623: 37 assigned 26,624 to 28,671: 26 assigned 28,672 to 30,719: 10 assigned 30,720 to 32,767: 20 assigned 32,768 to 34,815: 26 assigned 34,816 to 36,863: 21 assigned 36,864 to 38,911: 14 assigned 38,912 to 40,959: 7 assigned 40,960 to 43,007: 12 assigned 43,008 to 45,055: 22 assigned 45,056 to 47,103: 11 assigned 47,104 to 49,151: 21 assigned 49,152 to 51,199: 0 assigned 51,200 to 53,247: 0 assigned 53,248 to 55,295: 0 assigned 55,296 to 57,343: 0 assigned 57,344 to 59,391: 0 assigned 59,392 to 61,439: 0 assigned 61,440 to 63,487: 0 assigned 63,488 to 65,535: 0 assigned 0 16,384 32,768 49,152 65,535 IANA ranges (RFC 6335); System 0-1,023 is the dark sliver at the far left User (registered) 1,024-49,151 Dynamic 49,152-65,535 Who picks ports from where WireGuard 51820 Linux 32,768-60,999 (28,232) Windows 49,152-65,535 (16,384) Kubernetes NodePort 30,000-32,767
The 65,536 port numbers: IANA assignments per block, IANA ranges and the ephemeral ranges of Linux and Windows IANA-assigned TCP ports per block of 2,048 (file 2026-11-19) 1,013 2,026 0 to 2,047: 1,693 assigned 2,048 to 4,095: 2,026 assigned 4,096 to 6,143: 1,016 assigned 6,144 to 8,191: 546 assigned 8,192 to 10,239: 340 assigned 10,240 to 12,287: 76 assigned 12,288 to 14,335: 45 assigned 14,336 to 16,383: 26 assigned 16,384 to 18,431: 44 assigned 18,432 to 20,479: 40 assigned 20,480 to 22,527: 37 assigned 22,528 to 24,575: 34 assigned 24,576 to 26,623: 37 assigned 26,624 to 28,671: 26 assigned 28,672 to 30,719: 10 assigned 30,720 to 32,767: 20 assigned 32,768 to 34,815: 26 assigned 34,816 to 36,863: 21 assigned 36,864 to 38,911: 14 assigned 38,912 to 40,959: 7 assigned 40,960 to 43,007: 12 assigned 43,008 to 45,055: 22 assigned 45,056 to 47,103: 11 assigned 47,104 to 49,151: 21 assigned 49,152 to 51,199: 0 assigned 51,200 to 53,247: 0 assigned 53,248 to 55,295: 0 assigned 55,296 to 57,343: 0 assigned 57,344 to 59,391: 0 assigned 59,392 to 61,439: 0 assigned 61,440 to 63,487: 0 assigned 63,488 to 65,535: 0 assigned 0 32,768 65,535 IANA ranges (RFC 6335) System 0-1,023 (thin dark sliver) User 1,024-49,151 Dynamic 49,152-65,535 Who picks ports from where Linux 32,768-60,999 (28,232) Windows 49,152-65,535 (16,384) Kubernetes NodePort 30,000-32,767 WireGuard 51820, inside the Linux band
Amber bars: how many TCP numbers IANA has assigned in each block of 2,048. The busiest block is 2,048 to 4,095 with 2,026, more than the 1,693 in the block that holds the whole System range; from 49,152 up there are none, by design. The coloured bands underneath are the ranges operating systems draw temporary client ports from. Linux's default band starts at 32,768, inside the User range, where 134 TCP numbers are registered to services. The red mark is WireGuard's 51820, inside the Linux band.

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

Ceiling on new outgoing connections per second to one destination address and port, by ephemeral range and TIME-WAIT time
SystemCeilingRangePortsTIME-WAITBasis
Linux default470.5/s
28,232 / 60
32,768-60,99928,23260 sTIME-WAIT is fixed at 60 s in the kernel (TCP_TIMEWAIT_LEN)
Linux widened1,075.2/s
64,512 / 60
1,024-65,53564,51260 sip_local_port_range set to 1024 65535; it may not start below ip_unprivileged_port_start (1024)
Windows Vista / Server 2008 and later136.5/s
16,384 / 120
49,152-65,53516,384120 sTcpTimedWaitDelay is not in the registry by default; Microsoft gives its default as 0x78 = 120 s
Same, tuned to 30 s546.1/s
16,384 / 30
49,152-65,53516,38430 sTcpTimedWaitDelay = 30, the value Microsoft's BizTalk network tuning guide recommends
Windows Server 200333.1/s
3,976 / 120
1,025-5,0003,976120 sold 1025-5000 range; the Server 2003 reference table gives 0x78 = 120 s, although its own text describes 2 × 120 s = 4 minutes
Windows 200016.6/s
3,976 / 240
1,025-5,0003,976240 sTcpTimedWaitDelay 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
Download CSV

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

  1. 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.
  2. RFC 6335 · IANA procedures for port numbers IETF standardSystem 0-1023, User 1024-49151, Dynamic 49152-65535, never assigned.
  3. 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.
  4. Linux kernel source · include/net/tcp.h Source codeTCP_TIMEWAIT_LEN (60*HZ), the 60 s TIME-WAIT.
  5. 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.
  6. 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.
  7. Microsoft · TcpTimedWaitDelay, Windows Server 2003 and Windows 2000 Archived vendor documentationServer 2003 table: default 0x78 (120 s); Windows 2000: default 0xF0 (240 s).
  8. 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.
  9. RFC 1833 · Binding protocols for ONC RPC IETF standardrpcbind and portmapper on port 111 over TCP and UDP.
  10. RFC 7766 · DNS transport over TCP IETF standardGeneral-purpose DNS implementations must support both UDP and TCP.
  11. 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.
  12. RFC 8314 · Cleartext considered obsolete for mail IETF standardImplicit TLS on 465 (submission), 993 (IMAP) and 995 (POP3).
  13. Microsoft · Ports used by Remote Desktop Services Vendor documentationTCP and UDP 3389 as the standard RDP port.
  14. RFC 5425 · Syslog over TLS and RFC 5426 · Syslog over UDP IETF standard6514/tcp for TLS, 514/udp for plain syslog.
  15. Kubernetes · Ports and protocols Project documentation6443, 2379-2380, 10250, 10257, 10259 and the NodePort range 30000-32767.
  16. 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".