14 common network ports you should know

Here are some of the most often-encountered network ports and their associated services.
284 readers like this.
An introduction to GNU Screen


The physical ports on your computer allow communicate with peripheral devices such as your keyboard and mouse and to connect with internet devices via Ethernet cables.

Witin computer networking, ports serve a similar purpose. When a computer system seeks to connect to another computer, the port serves as a communication endpoint. It is also possible for different services running on the same computer to expose various ports and communicate with one another using these ports. In simple terms, if a software application or service needs to communicate with others, it will expose a port. Ports are identified with positive 16-bit unsigned integers, ranging from 0 to 65535. Other services use this port number to communicate with the service or app. Port numbers are divided into three ranges: well-known ports, registered ports, and dynamic or private ports.

Well-known ports (also known as system ports) are numbered from 0 through 1023. For example, to connect to the host example.com via SSH, I would use this command:

ssh username@example.com -v

In this example, -v stands for verbose, and you should see output similar to this:

debug1: Connecting to example.com [<IP Addr>] port 22

As shown, SSH is trying to connect to example.com using port number 22. You may use the -p option to specify another port number; otherwise, SSH will default to 22.

The Internet Assigned Numbers Authority (IANA) has assigned port numbers to commonly used services like SSH, FTP, HTTP, HTTPS, and others. Here are some of the most common ones:

Port Number



File Transfer Protocol (FTP) Data Transfer


File Transfer Protocol (FTP) Command Control


Secure Shell (SSH)


Telnet - Remote login service, unencrypted text messages


Simple Mail Transfer Protocol (SMTP) E-mail Routing


Domain Name System (DNS) service


Hypertext Transfer Protocol (HTTP) used in World Wide Web


Post Office Protocol (POP3) used by e-mail clients to retrieve e-mail from a server


Network News Transfer Protocol (NNTP)


Network Time Protocol (NTP)


Internet Message Access Protocol (IMAP) Management of Digital Mail


Simple Network Management Protocol (SNMP)


Internet Relay Chat (IRC)




In my work, I most commonly come across ports 80, 443, 20, 21, 22, 23, 25, and 53. Knowing these ports can help you work more efficiently.

What ports do you use the most, and why?

Learn more about Linux networking

What to read next

How to configure networking in Linux

Connecting your Linux computer to a network is pretty straightforward, except when it is not. In this article I discuss the main network configuration files for Red Hat-based…

User profile image.
Kedar is a Software Quality Engineer at Red Hat working with CloudForms(upstream ManageIQ) project and primarily looking at deployment/management of our internal infrastructure. Interested in Jenkins Pipeline and Ansible for automating deployments. Also writing Shinken modules for Monitoring and Alerting.


Nice article. Thanks for sharing.

Nowadays, 465(SMTPS), 993(IMAPS) and 995(POPS) are necessary too

How about port 631 for the internet printing protocol?

67(dhcp server) and 68(dhcp client) are also important for many sites.

69(tftp) is also important in many situations.

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.