A computer port is a a physical or virtual interface that enables external devices to be connected to the computer system. Ports are essential for communication between devices. Imagine you have a personal computer at home. This computer has a unique IP address that identifies it on the network, much like a postal address for your home.
Now, on that computer, you can run multiple programmes or services: a web browser, an email client, an online game, amongst others. Each of these programmes needs a way to receive data from the network and send data back. This is where ports come into play.
How does a port work?
Whenever a programme or service is launched on a device, it reserves a specific port to receive data. This port acts as a sort of “window” on the device through which it can receive information. For example, a web server may reserve port 80 to receive requests for web pages, whilst an email server may reserve port 25 to receive incoming emails.
When other devices on the network wish to communicate with a specific service on your device, they send data via the device’s IP address, along with the port number associated with the desired service. This is similar to writing a house address along with the flat number to address a letter specifically to someone living there.
Port numbering
The ports are numbered from 0 to 65,535, and each number represents a unique port that can be used by a programme or service. Some port numbers are reserved for specific uses and are known as well-known ports.
For example, port 80 is reserved for HTTP traffic, which is the protocol used to load web pages, whilst port 443 is reserved for HTTPS traffic, which is a secure version of HTTP used for secure online transactions.
Most common ports
The most common ports are:
-
Port 80 (HTTP): Used for unsecured web traffic. It is the standard port for accessing web pages.
-
Port 443 (HTTPS): Used for secure web traffic. It is the standard port for accessing web pages via the HTTPS protocol, which encrypts communications for greater security.
-
Port 25 (SMTP): Used to send outgoing emails. SMTP (Simple Mail Transfer Protocol) is the standard protocol for sending emails.
-
Port 110 (POP3): Used to receive email. POP3 (Post Office Protocol version 3) is a protocol used to retrieve emails from a mail server.
-
Port 143 (IMAP): Another port used to receive email. IMAP (Internet Message Access Protocol) is a more advanced protocol than POP3 and allows for more comprehensive management of emails stored on the server.
-
Port 22 (SSH): Used to securely access a remote server. SSH (Secure Shell) is a protocol that enables secure connection to and remote control of a device.
-
Port 21 (FTP): Used to transfer files over the Internet. FTP (File Transfer Protocol) is a protocol used to transfer files between a client and a server on a network.
-
Port 23 (Telnet): Used to access a device remotely. Telnet is a protocol that enables remote connection to network devices for administration purposes.


