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
| Port | Protocol | IANA service name | Used for |
|---|---|---|---|
| 20, 21 | TCP | ftp-data, ftp | FTP: 21 is the control connection, 20 the data channel in active mode |
| 22 | TCP | ssh | SSH remote login, SFTP and scp file transfer, Git over SSH |
| 23 | TCP | telnet | Telnet, unencrypted remote login (avoid on any untrusted network) |
| 80 | TCP | http | Plain HTTP; most sites now redirect it to 443 |
| 443 | TCP, UDP | https | HTTPS (registered for both TCP and UDP) |
| 3389 | TCP, UDP | ms-wbt-server | Windows Remote Desktop (RDP) |
| 5900 | TCP | rfb | VNC remote desktop (Remote Framebuffer protocol) |
| 8080 | TCP | http-alt | Alternative HTTP port: proxies, dev servers, admin panels |
| 8443 | TCP | pcsync-https | Registered 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
| Port | Protocol | IANA service name | Used for |
|---|---|---|---|
| 25 | TCP | smtp | Mail delivery between mail servers |
| 110 | TCP | pop3 | POP3 mail download, plain text or STARTTLS |
| 143 | TCP | imap | IMAP mailbox access, plain text or STARTTLS |
| 465 | TCP | submissions | Sending mail from a client, TLS from the first byte |
| 587 | TCP | submission | Sending mail from a client, upgraded with STARTTLS |
| 993 | TCP | imaps | IMAP over TLS |
| 995 | TCP | pop3s | POP3 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
| Port | Protocol | IANA service name | Used for |
|---|---|---|---|
| 53 | UDP, TCP | domain | DNS queries (UDP normally, TCP for large responses and zone transfers) |
| 67, 68 | UDP | bootps, bootpc | DHCP: 67 is the server, 68 the client |
| 69 | UDP | tftp | Trivial File Transfer, used for network boot and device firmware |
| 123 | UDP | ntp | Network Time Protocol, clock synchronisation |
| 161, 162 | UDP | snmp, snmptrap | SNMP device monitoring; 162 receives traps |
| 500, 4500 | UDP | isakmp, ipsec-nat-t | IPsec VPN key exchange and NAT traversal |
| 853 | TCP, UDP | domain-s | DNS over TLS (TCP) and DNS over DTLS or QUIC (UDP) |
| 1194 | UDP, TCP | openvpn | OpenVPN |
| 1900 | UDP | ssdp | SSDP, UPnP device discovery on local networks |
| 3478 | UDP, TCP | stun, turn | STUN and TURN, NAT traversal for video calls and WebRTC |
| 5353 | UDP | mdns | Multicast DNS, .local name discovery |
Windows and directory service ports
Microsoft's own port reference for Windows lists these, and they match the IANA entries:
| Port | Protocol | IANA service name | Used for |
|---|---|---|---|
| 88 | TCP, UDP | kerberos | Kerberos authentication (Active Directory sign-in) |
| 135 | TCP | epmap | RPC endpoint mapper |
| 137, 139 | UDP, TCP | netbios-ns, netbios-ssn | NetBIOS name and session services (legacy file sharing) |
| 389 | TCP, UDP | ldap | LDAP directory queries |
| 445 | TCP | microsoft-ds | SMB file and printer sharing |
| 636 | TCP | ldaps | LDAP 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
| Port | Protocol | IANA service name | Used for |
|---|---|---|---|
| 1433 | TCP | ms-sql-s | Microsoft SQL Server |
| 1883 | TCP | mqtt | MQTT messaging (IoT devices) |
| 3306 | TCP | mysql | MySQL |
| 5432 | TCP | postgresql | PostgreSQL |
| 6379 | TCP | redis | Redis (TCP only; UDP 6379 is reserved) |
| 11211 | TCP, UDP | memcache | Memcached |
| 27017 | TCP | mongodb | MongoDB (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:
| Port | What IANA has on record |
|---|---|
| 3000 | hbci, plus a remoteware-cl entry noted as "an unassigned but widespread use". It is still a common default for local development servers. |
| 5000 | commplex-main, with no description or contact |
| 8000 | irdmi (iRDMI) |
| 8888 | ddi-tcp-1 (NewsEDGE server), flagged "Known Unauthorized Use on port 8888" |
| 1521 | ncube-lm (nCube License Manager), flagged "Unauthorized Use Known on port 1521" |
| 9200 | wap-wsp, the WAP Forum's connectionless session service |
| 2049 | nfs (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
- IANA: Service Name and Transport Protocol Port Number Registry
- RFC 6335: IANA Procedures for the Management of the Service Name and Transport Protocol Port Number Registry
- RFC 8314: Cleartext Considered Obsolete: Use of TLS for Email Submission and Access
- Microsoft Learn: Service overview and network port requirements for Windows