Home › Guides › Reference › Common TCP and UDP Port Numbers

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

22 (SSH), 25 (SMTP), 53 (DNS), 80 (HTTP), 123 (NTP), 143 (IMAP), 443 (HTTPS), 587 (mail submission), 3306 (MySQL), 3389 (Remote Desktop), 5432 (PostgreSQL).

Web

PortTransportServiceBasisNotes
80TCPHTTPIANAUnencrypted web traffic. Usually redirects to HTTPS.
443TCP, UDPHTTPSIANAWeb traffic over TLS. HTTP/3 uses QUIC on UDP 443.
8080TCPHTTP alternateIANACommon for development servers, proxies and application servers behind a front end.
8443TCPHTTPS alternateDefaultA usual choice for a second or non-privileged HTTPS service.

Remote access and administration

PortTransportServiceBasisNotes
22TCPSSHIANAEncrypted remote shell, also carries SFTP and SCP file transfer and port forwarding.
23TCPTelnetIANAUnencrypted remote shell. Avoid it; use SSH.
3389TCP, UDPRemote Desktop ProtocolIANAMicrosoft Windows remote desktop. Should not be exposed directly to the internet.
5900TCPVNC (RFB)IANARemote framebuffer. Display number 1 usually uses 5901, and so on.

File transfer and sharing

PortTransportServiceBasisNotes
20TCPFTP dataIANAData channel of active-mode FTP.
21TCPFTP controlIANAFTP commands. Unencrypted unless wrapped in TLS.
69UDPTFTPIANATrivial file transfer with no authentication. Used for network booting and device configs.
139TCPNetBIOS sessionIANAOlder Windows file sharing over NetBIOS.
445TCPSMBIANAWindows file and printer sharing. Block it at the network edge.
873TCPrsyncIANARsync daemon. Rsync over SSH uses port 22 instead.
990TCPFTPS (implicit TLS)IANAFTP that is encrypted from the first byte.
2049TCP, UDPNFSIANANetwork File System for Unix and Linux file sharing.

Email

PortTransportServiceBasisNotes
25TCPSMTPIANAServer-to-server mail transfer. Many ISPs block outbound 25 from home networks.
465TCPSMTPS (submissions)IANAMail submission over implicit TLS.
587TCPMail submissionIANAClients send mail to their provider, normally with STARTTLS and authentication.
110TCPPOP3IANADownloads mail to one device. Unencrypted unless upgraded.
995TCPPOP3SIANAPOP3 over TLS.
143TCPIMAPIANAMailbox access that keeps mail on the server. Unencrypted unless upgraded.
993TCPIMAPSIANAIMAP over TLS.

Names, addresses and time

PortTransportServiceBasisNotes
53TCP, UDPDNSIANAName resolution. UDP for most queries, TCP for large answers and zone transfers.
853TCPDNS over TLSIANAEncrypted DNS queries.
67UDPDHCP serverIANAServers listen on 67 and clients on 68. Hands out IP addresses.
68UDPDHCP clientIANAThe client side of DHCP.
123UDPNTPIANANetwork Time Protocol for clock synchronisation.
5353UDPmDNSIANAMulticast DNS, used for local .local name discovery.
1900UDPSSDPIANASimple Service Discovery Protocol, used by UPnP.

Directory, authentication and monitoring

PortTransportServiceBasisNotes
88TCP, UDPKerberosIANATicket-based authentication, for example in Active Directory.
389TCP, UDPLDAPIANADirectory access. Upgrade with STARTTLS or use 636.
636TCPLDAPSIANALDAP over TLS.
1812UDPRADIUS authenticationIANANetwork access authentication. Accounting uses 1813.
161UDPSNMPIANAQuery network devices. Traps arrive on 162.
162UDPSNMP trapIANANotifications sent from devices to a manager.
514UDPSyslogIANAClassic log forwarding. Unencrypted.

VPN and routing

PortTransportServiceBasisNotes
500UDPIKE (ISAKMP)IANAKey exchange for IPsec VPNs.
4500UDPIPsec NAT traversalIANAIPsec traffic when NAT sits in the path.
1194UDP, TCPOpenVPNIANADefault for OpenVPN.
51820UDPWireGuardDefaultThe default in WireGuard examples. It is a convention, and the port is configurable.
179TCPBGPIANABorder Gateway Protocol between internet routers.

Databases, caches and messaging

PortTransportServiceBasisNotes
1433TCPMicrosoft SQL ServerIANADefault instance. Named instances use dynamic ports.
1521TCPOracle Database listenerDefaultThe usual default of the Oracle listener.
3306TCPMySQL, MariaDBIANADefault for both servers.
5432TCPPostgreSQLIANADefault for PostgreSQL.
6379TCPRedisDefaultIn-memory data store. Should never be exposed to the internet without authentication.
11211TCP, UDPMemcachedIANADistributed memory cache.
27017TCPMongoDBDefaultDefault for the MongoDB server.
9200TCPElasticsearch HTTPDefaultREST API of Elasticsearch. This is the product default.
5672TCPAMQPIANAUsed by RabbitMQ and other AMQP 0-9-1 brokers.
1883TCPMQTTIANALightweight messaging for IoT. Port 8883 is MQTT over TLS.
9092TCPApache KafkaDefaultThe 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

Sources