Common TCP and UDP Port Numbers
A grouped reference of well-known TCP and UDP ports for web, email, remote access, file transfer, DNS, databases and messaging, with notes on use.
By the tools4free.dev team · Last reviewed 4 December 2026
How to read this reference
A port number is a 16-bit value, from 0 to 65535, that lets one machine run many network services at once. An IP address finds the host, and the port finds the service on it. A connection is identified by the two addresses and the two ports, and the transport protocol: TCP for reliable streams, UDP for individual datagrams.
The Internet Assigned Numbers Authority (IANA) keeps the official Service Name and Transport Protocol Port Number Registry. Under RFC 6335, ports are divided into three ranges: system or well-known ports 0 to 1023, user or registered ports 1024 to 49151, and dynamic or private ports 49152 to 65535. Operating systems pick a client-side source port from a dynamic range for each outgoing connection, so you rarely need to know those.
Each table has a Basis column. "IANA" means the port is assigned to that service in the registry. "Default" means the port is the widely used default of a product but is not assigned to it by IANA, or we could not confirm that it is. A default is only a convention: any service can be moved to another port, and a service running on a standard port is not guaranteed to be what the table says. Treat the list as a starting point for reading firewall rules, logs and configuration, and confirm in the official registry.
To find your own public address, use What Is My IP. To check how a name resolves, try the DNS lookup, and to measure the round trip to a host, the latency test.
The ports you will meet most
Web
| Port | Transport | Service | Basis | Notes |
|---|---|---|---|---|
80 | TCP | HTTP | IANA | Unencrypted web traffic. Usually redirects to HTTPS. |
443 | TCP, UDP | HTTPS | IANA | Web traffic over TLS. HTTP/3 uses QUIC on UDP 443. |
8080 | TCP | HTTP alternate | IANA | Common for development servers, proxies and application servers behind a front end. |
8443 | TCP | HTTPS alternate | Default | A usual choice for a second or non-privileged HTTPS service. |
Remote access and administration
| Port | Transport | Service | Basis | Notes |
|---|---|---|---|---|
22 | TCP | SSH | IANA | Encrypted remote shell, also carries SFTP and SCP file transfer and port forwarding. |
23 | TCP | Telnet | IANA | Unencrypted remote shell. Avoid it; use SSH. |
3389 | TCP, UDP | Remote Desktop Protocol | IANA | Microsoft Windows remote desktop. Should not be exposed directly to the internet. |
5900 | TCP | VNC (RFB) | IANA | Remote framebuffer. Display number 1 usually uses 5901, and so on. |
File transfer and sharing
| Port | Transport | Service | Basis | Notes |
|---|---|---|---|---|
20 | TCP | FTP data | IANA | Data channel of active-mode FTP. |
21 | TCP | FTP control | IANA | FTP commands. Unencrypted unless wrapped in TLS. |
69 | UDP | TFTP | IANA | Trivial file transfer with no authentication. Used for network booting and device configs. |
139 | TCP | NetBIOS session | IANA | Older Windows file sharing over NetBIOS. |
445 | TCP | SMB | IANA | Windows file and printer sharing. Block it at the network edge. |
873 | TCP | rsync | IANA | Rsync daemon. Rsync over SSH uses port 22 instead. |
990 | TCP | FTPS (implicit TLS) | IANA | FTP that is encrypted from the first byte. |
2049 | TCP, UDP | NFS | IANA | Network File System for Unix and Linux file sharing. |
| Port | Transport | Service | Basis | Notes |
|---|---|---|---|---|
25 | TCP | SMTP | IANA | Server-to-server mail transfer. Many ISPs block outbound 25 from home networks. |
465 | TCP | SMTPS (submissions) | IANA | Mail submission over implicit TLS. |
587 | TCP | Mail submission | IANA | Clients send mail to their provider, normally with STARTTLS and authentication. |
110 | TCP | POP3 | IANA | Downloads mail to one device. Unencrypted unless upgraded. |
995 | TCP | POP3S | IANA | POP3 over TLS. |
143 | TCP | IMAP | IANA | Mailbox access that keeps mail on the server. Unencrypted unless upgraded. |
993 | TCP | IMAPS | IANA | IMAP over TLS. |
Names, addresses and time
| Port | Transport | Service | Basis | Notes |
|---|---|---|---|---|
53 | TCP, UDP | DNS | IANA | Name resolution. UDP for most queries, TCP for large answers and zone transfers. |
853 | TCP | DNS over TLS | IANA | Encrypted DNS queries. |
67 | UDP | DHCP server | IANA | Servers listen on 67 and clients on 68. Hands out IP addresses. |
68 | UDP | DHCP client | IANA | The client side of DHCP. |
123 | UDP | NTP | IANA | Network Time Protocol for clock synchronisation. |
5353 | UDP | mDNS | IANA | Multicast DNS, used for local .local name discovery. |
1900 | UDP | SSDP | IANA | Simple Service Discovery Protocol, used by UPnP. |
Directory, authentication and monitoring
| Port | Transport | Service | Basis | Notes |
|---|---|---|---|---|
88 | TCP, UDP | Kerberos | IANA | Ticket-based authentication, for example in Active Directory. |
389 | TCP, UDP | LDAP | IANA | Directory access. Upgrade with STARTTLS or use 636. |
636 | TCP | LDAPS | IANA | LDAP over TLS. |
1812 | UDP | RADIUS authentication | IANA | Network access authentication. Accounting uses 1813. |
161 | UDP | SNMP | IANA | Query network devices. Traps arrive on 162. |
162 | UDP | SNMP trap | IANA | Notifications sent from devices to a manager. |
514 | UDP | Syslog | IANA | Classic log forwarding. Unencrypted. |
VPN and routing
| Port | Transport | Service | Basis | Notes |
|---|---|---|---|---|
500 | UDP | IKE (ISAKMP) | IANA | Key exchange for IPsec VPNs. |
4500 | UDP | IPsec NAT traversal | IANA | IPsec traffic when NAT sits in the path. |
1194 | UDP, TCP | OpenVPN | IANA | Default for OpenVPN. |
51820 | UDP | WireGuard | Default | The default in WireGuard examples. It is a convention, and the port is configurable. |
179 | TCP | BGP | IANA | Border Gateway Protocol between internet routers. |
Databases, caches and messaging
| Port | Transport | Service | Basis | Notes |
|---|---|---|---|---|
1433 | TCP | Microsoft SQL Server | IANA | Default instance. Named instances use dynamic ports. |
1521 | TCP | Oracle Database listener | Default | The usual default of the Oracle listener. |
3306 | TCP | MySQL, MariaDB | IANA | Default for both servers. |
5432 | TCP | PostgreSQL | IANA | Default for PostgreSQL. |
6379 | TCP | Redis | Default | In-memory data store. Should never be exposed to the internet without authentication. |
11211 | TCP, UDP | Memcached | IANA | Distributed memory cache. |
27017 | TCP | MongoDB | Default | Default for the MongoDB server. |
9200 | TCP | Elasticsearch HTTP | Default | REST API of Elasticsearch. This is the product default. |
5672 | TCP | AMQP | IANA | Used by RabbitMQ and other AMQP 0-9-1 brokers. |
1883 | TCP | MQTT | IANA | Lightweight messaging for IoT. Port 8883 is MQTT over TLS. |
9092 | TCP | Apache Kafka | Default | The usual default listener of a Kafka broker. |
Checking ports on your own machine
To see what is listening on a Linux host, run ss -tulpn. The flags ask for TCP and UDP sockets that are listening, with numeric ports and the owning process. On Windows, netstat -ano gives similar output with process IDs. On macOS, lsof -iTCP -sTCP:LISTEN -n -P does the job. These tools describe your own machine. Only scan hosts that you own or have permission to test.
Common mistakes
- Assuming a port implies a service. Anything can listen on 80 or 443, and SSH is often moved. Identify a service by what it speaks, not its number.
- Forgetting UDP. A rule for TCP 53 alone breaks large DNS answers, and a rule for TCP 443 alone does not cover HTTP/3.
- Exposing databases and caches. Services such as Redis, MongoDB and SQL databases should sit behind a firewall or private network.
- Mixing up 465 and 587. Both are for sending mail from a client, but one is implicit TLS and the other usually starts in plain text and upgrades with STARTTLS. Use what your provider documents.
- Using Telnet or plain FTP over untrusted networks. Credentials travel in clear text.