Networking

Common Port Numbers: The Ports You'll See, From the IANA Registry

The ports you'll meet most often are 22 (SSH), 53 (DNS), 80 (HTTP), 443 (HTTPS), 25, 465 and 587 (email sending), 993 (IMAP over TLS), 3389 (Windows Remote Desktop), and 3306 and 5432 (MySQL and PostgreSQL). Every entry in the tables below was checked against the official IANA port registry, last updated 2026-10-22, and the notes say where real-world use differs from the registry.

If you are new to ports, what a port number is explains the 0 to 65535 range and how ports differ from IP addresses.

How the registry works

The Internet Assigned Numbers Authority (IANA) maintains the Service Name and Transport Protocol Port Number Registry. RFC 6335 divides it into three ranges: System Ports 0 to 1023 (assigned only through IETF Review or IESG Approval), User Ports 1024 to 49151 (assigned on request), and Dynamic Ports 49152 to 65535 (never assigned). Each registration has a service name, a port number and a transport protocol, so the same number can be registered for TCP, UDP or both.

Two points that trip people up:

  • A registration is not a guarantee. IANA states that assignment of a port "does not in any way imply an endorsement of an application or product", and that traffic on a registered port is not necessarily the registered service. Any program can listen on any free port.
  • Many popular ports belong to someone else on paper. The registry's CSV download (14,542 rows when we parsed it on 2026-10-26) shows plenty of well-known tools using numbers registered to other, often long-forgotten, services. There are examples in the last table.

Web and remote access ports

PortProtocolIANA service nameUsed for
20, 21TCPftp-data, ftpFTP: 21 is the control connection, 20 the data channel in active mode
22TCPsshSSH remote login, SFTP and scp file transfer, Git over SSH
23TCPtelnetTelnet, unencrypted remote login (avoid on any untrusted network)
80TCPhttpPlain HTTP; most sites now redirect it to 443
443TCP, UDPhttpsHTTPS (registered for both TCP and UDP)
3389TCP, UDPms-wbt-serverWindows Remote Desktop (RDP)
5900TCPrfbVNC remote desktop (Remote Framebuffer protocol)
8080TCPhttp-altAlternative HTTP port: proxies, dev servers, admin panels
8443TCPpcsync-httpsRegistered to PCsync HTTPS, but widely used as an alternative HTTPS port

The IANA registry lists 443 against RFC 9110, the HTTP semantics specification, with a modification date of 2021-10-01.

Email ports

PortProtocolIANA service nameUsed for
25TCPsmtpMail delivery between mail servers
110TCPpop3POP3 mail download, plain text or STARTTLS
143TCPimapIMAP mailbox access, plain text or STARTTLS
465TCPsubmissionsSending mail from a client, TLS from the first byte
587TCPsubmissionSending mail from a client, upgraded with STARTTLS
993TCPimapsIMAP over TLS
995TCPpop3sPOP3 over TLS

Port 465 has an unusual history. In the registry it carries two TCP entries: urd (URL Rendezvous Directory for SSM) and submissions. RFC 8314 added the second as a one-time exception because mail clients were already using 465 for TLS submission. The same RFC says that on 993, 995 and 465 "a TLS handshake begins immediately", and that clients and servers should support both 587 with STARTTLS and 465 with implicit TLS.

When you configure a mail app, the provider's own settings page is the authority. The usual pairs are 993 for receiving (IMAP) and 465 or 587 for sending.

Network infrastructure ports

PortProtocolIANA service nameUsed for
53UDP, TCPdomainDNS queries (UDP normally, TCP for large responses and zone transfers)
67, 68UDPbootps, bootpcDHCP: 67 is the server, 68 the client
69UDPtftpTrivial File Transfer, used for network boot and device firmware
123UDPntpNetwork Time Protocol, clock synchronisation
161, 162UDPsnmp, snmptrapSNMP device monitoring; 162 receives traps
500, 4500UDPisakmp, ipsec-nat-tIPsec VPN key exchange and NAT traversal
853TCP, UDPdomain-sDNS over TLS (TCP) and DNS over DTLS or QUIC (UDP)
1194UDP, TCPopenvpnOpenVPN
1900UDPssdpSSDP, UPnP device discovery on local networks
3478UDP, TCPstun, turnSTUN and TURN, NAT traversal for video calls and WebRTC
5353UDPmdnsMulticast DNS, .local name discovery

Windows and directory service ports

Microsoft's own port reference for Windows lists these, and they match the IANA entries:

PortProtocolIANA service nameUsed for
88TCP, UDPkerberosKerberos authentication (Active Directory sign-in)
135TCPepmapRPC endpoint mapper
137, 139UDP, TCPnetbios-ns, netbios-ssnNetBIOS name and session services (legacy file sharing)
389TCP, UDPldapLDAP directory queries
445TCPmicrosoft-dsSMB file and printer sharing
636TCPldapsLDAP over TLS

SMB on 445 and RDP on 3389 are the two you should never expose directly to the internet. Reach them through a VPN instead.

Database and application ports

PortProtocolIANA service nameUsed for
1433TCPms-sql-sMicrosoft SQL Server
1883TCPmqttMQTT messaging (IoT devices)
3306TCPmysqlMySQL
5432TCPpostgresqlPostgreSQL
6379TCPredisRedis (TCP only; UDP 6379 is reserved)
11211TCP, UDPmemcacheMemcached
27017TCPmongodbMongoDB (TCP only; UDP 27017 is reserved)

Database ports should normally listen on 127.0.0.1 or a private network only. If netstat -an or ss -ltn shows one of them on 0.0.0.0, it accepts connections from every interface, and only a firewall stands between it and the network.

Ports where the registry and real life disagree

Developers pick round numbers, and round numbers were registered long ago. These registry entries surprise people:

PortWhat IANA has on record
3000hbci, plus a remoteware-cl entry noted as "an unassigned but widespread use". It is still a common default for local development servers.
5000commplex-main, with no description or contact
8000irdmi (iRDMI)
8888ddi-tcp-1 (NewsEDGE server), flagged "Known Unauthorized Use on port 8888"
1521ncube-lm (nCube License Manager), flagged "Unauthorized Use Known on port 1521"
9200wap-wsp, the WAP Forum's connectionless session service
2049nfs (Network File System), alongside a shilp entry with the note "Conflict on 2049"

Some ports that people assume are registered aren't. In the 2026-10-22 registry, 5173, 25565 and 51820 have no entry at all. That doesn't make them wrong to use; it just means nothing official reserves them.

Look up any port yourself

Your OS ships a short local copy of the registry. On Linux and macOS it is /etc/services; on Windows it is C:\Windows\System32\drivers\etc\services. Search it with:

grep -w 5432 /etc/services
findstr /c:" 3389/" C:\Windows\System32\drivers\etc\services

Example output on Windows 11 (the file header says it dates from 1993 to 2004, so recent registrations are missing):

ms-wbt-server    3389/tcp                           #MS WBT Server
ms-wbt-server    3389/udp                           #MS WBT Server

Python's socket module can do the same lookup:

python -c "import socket; print(socket.getservbyport(22, 'tcp'), socket.getservbyname('https', 'tcp'))"
ssh 443

For the current, complete list, download the CSV from the IANA registry page and search it:

curl -s -o ports.csv https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv
grep -E '^[^,]*,6379,' ports.csv

Example output (trimmed):

redis,6379,tcp,An advanced key-value cache and store,...
,6379,udp,Reserved,...

To find out which program is using a port on your own machine rather than what the port is registered for, see how to find the process using a port.

Frequently asked questions

What port does HTTPS use?
HTTPS uses TCP port 443. IANA registers 443 as 'https', described as 'http protocol over TLS/SSL', on both TCP and UDP. Plain HTTP uses port 80.
What is port 8080 used for?
IANA registers 8080 as 'http-alt', an alternative HTTP port. It is popular for development servers, proxies and admin interfaces because, unlike port 80, an ordinary user on Linux can listen on it without root.
Which email port should I use, 465 or 587?
Both are registered for sending mail from a client to a mail server. Port 465 starts TLS immediately; port 587 starts in plain text and upgrades with STARTTLS. RFC 8314 says the two are equally secure when both sides require TLS, so use whichever your provider documents. Port 25 is for server-to-server delivery.
Where can I download the full list of port numbers?
IANA publishes the full registry as a web page, a CSV file and an XML file at iana.org/assignments/service-names-port-numbers. Your computer also has a short local copy: /etc/services on Linux and macOS, and C:\Windows\System32\drivers\etc\services on Windows.

Sources