Common Networks Ports you Should Know

What is a network port?

The physical port on your laptop lets you communicate with peripheral devices such as a keyboard and mouse to connect with internet devices via Ethernet cables.

A port is a location on the recipient computer where data is received. In simple terms, if a software application needs to communicate with each other, 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 knows ports also known as system ports are numbered 0 to 1023. For example, the SSH port which uses port 22.

ssh teslimodumuyiwa@gmail.com -v

image.png

debug1: Connecting to gmail.com [216.58.223.197] port 22.

From the text above SSH is trying to connect to gmail.com using port 22. You can use -p to specify the port you will like to use but by default, SSH will use port 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 NumberUsage
20File Transfer Protocol (FTP) Data Transfer
21File Transfer Protocol (FTP) Command Control
22Secure Shell(SSH)
23Telnet - Remote login service, unencrypted text messages
25Simple Mail Transfer Protocol (SMTP) E-mail Routing
53Domain Name System (DNS) service
67Dynamic Host Configuration Protocol Server (DHCP Server)
68Dynamic Host Configuration Protocol Client (DHCP Client)
80Hypertext Transfer Protocol (HTTP) used in the World Wide Web
110Post Office Protocol (POP3) used by e-mail clients to retrieve e-mail from a server
119Network News Transfer Protocol (NNTP)
123Network Time Protocol (NTP)
143Internet Message Access Protocol (IMAP) Management of Digital Mail
161Simple Network Management Protocol (SNMP)
194Internet Relay Chat(IRC)
443HTTP Secure (HTTPS) HTTP over TLS/SSL
5432Database Systems