How Can We Help?

Most Common Network Port Numbers for Linux

Table of Content

A port is a logical address that is typically assigned to a specific service or running application on a computer , and more specifically, TCP/IP and UDP networks. It is a connection endpoint that directs traffic to a specific operating system service. Ports are software-based and are typically associated with the host's IP address.

A port's primary function is to ensure data transfer between a computer and an application. By default, specific services run on specific ports, such as web traffic on port 80 (443 for encrypted traffic), DNS on port 53, and SSH on port 22. Ports are typically linked to the IP addresses of the host systems that run the applications.

Port numbers range from 0-65535 and are divided into three network ranges as shown:

  • Ports that range from 1 to 1023 are known as system ports or well-known ports. These are ports that are reserved for running privileged services on a system.
  • Ports numbers in the range of 1024 to 49151 are referred to as registered ports and are mostly used by vendors for their applications. They are available for registration at IANA which is an authority that oversees global IP address allocation.
  • Ports numbers between 49151 and 65535 are referred to as dynamic ports. They cannot be registered with IANA and are mostly used for customized services.

Commonly Use Network TCP Ports

20FTP ( File Transfer Protocol ) port for data transfer between client and server.
21FTP ( File Transfer Protocol ) port for establishing a connection between two hosts. It’s referred to as the command or control port.
22SSH (Secure Shell) port. This is a secure remote login service where data is encrypted.
23Telnet. This is a remote login service that is unencrypted. Data is sent in plain text and is hence considered insecure. It was deprecated in favor of SSH.
25SMTP (Simple Mail Transfer Protocol). A protocol used by mail servers to send and receive mail.
53DNS (Domain Name Service) Responsible for resolving a domain name to machine-readable IP addresses.
67 (UDP)Used by the DHCP server (Dynamic Host Configuration Protocol).
68 (UDP)Used by a DHCP client.
80HTTP (Hyper Text Transfer Protocol) is used for unsecured web traffic.
443HTTPS (Hyper Text Transfer Protocol Secure) is used for encrypted web traffic.
110POP3 (Post Office Protocol). Protocol for unencrypted access to a mail server.
995POP3S (Post Office Protocol Secure). Provides encryption for POP3 protocol.
123 (UDP)NTP (Network Time Protocol).
137NetBIOS protocol used for File and Print Sharing.
143IMAP (Internet Messaging Application Protocol) Manages electronic mail messages on the mail server. Does not provide encryption.
161/162SNMP protocol is used for sending commands and messages.
993IMAPS (Internet Messaging Application Protocol Secure) Secure protocol for IMAP and provides SSL/TLS encryption.
445SMB (Server Message Block) Port. Used for file sharing.
465SMTPS (Simple Mail Transfer Protocol Secure). Provides encryption for the SMTP Protocol.
631Internet Printing Protocol.
Table of Contents