Ports in Networking (original) (raw)

Last Updated : 9 Feb, 2026

A port is a logical identifier used to distinguish different applications or services on a device, allowing network traffic to reach the correct program.

networks_ports_

**How Ports Work

When a device communicates over a network, data packets are sent to its IP address. Each packet also includes a port number, which tells the operating system which application or service should receive that data.

Ports act like entry doors for data — the IP brings the data to the device, and the port directs it to the correct application.

**Port Number Range

A port number is a 16-bit number used to identify network services on a device. Since it is 16 bits, it can have values from 0 to 65535, giving enough unique numbers to support many applications running simultaneously.

Types of Ports

Ports are mainly classified into the following types:

**1. Physical Ports

2. Logical/Network Ports

3. Serial and Parallel Ports

4. Virtual Ports

For a detailed explanation of all port types, see our article on Types of Ports.

**Common Port Numbers

Many network services use default port numbers so that communication between clients and servers is standardized and predictable. These commonly used ports allow applications to identify services easily without requiring additional configuration.

**Port Number **Application / Service
20, 21 FTP (File Transfer Protocol)
22 SSH (Secure Shell)
23 Telnet (Terminal Network)
25 SMTP (Simple Mail Transfer Protocol)
53 DNS (Domain Name System)
67 / 68 DHCP (Dynamic Host Configuration Protocol)
80 HTTP (Hypertext Transfer Protocol)
110 POP3 (Post Office Protocol version 3)
143 IMAP (Internet Message Access Protocol)
443 HTTPS (Hypertext Transfer Protocol Secure)
3306 MySQL (My Structured Query Language)
3389 RDP (Remote Desktop Protocol)

**Importance of Ports