Common Ports in Computer Networking

Ariana Bibiano
6 min readMar 29, 2023

--

Photo by Joan Gamell on Unsplash

[If you’d like to get straight to the cheat sheet click here.]

In computer networking there are these things called ports. Ports are a logical opening on a system representing a service or application that is listening or waiting for traffic. Now what exactly does this mean in more simpler terms?

Let’s use an easy to understand example. Say you want to go to the post office to mail a package. The address of the post office is 123 Main Street, Unit 1 and there’s a coffee shop right next to it with the same address but is Unit 2. You know your goal is just to send out a package so you go to 123 Main Street, Unit 1.

This is basically what a port is, an address (or number in the port’s case) that represents a specific service you want to use.

In total, the number of ports ranges from 0–65,535. And there are different categories of ports depending on the range:

  • Well-known or Reserved Ports: 0–1023
  • Registered Ports: 1024–49,591
  • Dynamic Ports: 49,592–65,535

What are well-known ports?

Well-known ports are port numbers in the range of 0 to 1023. These port numbers were assigned by the Internet Corporation for Assigned Names and Numbers (ICANN). These ports are reserved for common TCP/IP applications and sometimes called privileged ports.

Each port has a specific application assigned to it. The Hypertext Transfer Protocol (HTTP) on port 80 is used for unencrypted web browsing. And the Post Office Protocol version 3 (POP3) on port 110 is used for receiving emails from a server.

What are registered ports?

Registered ports are port numbers in the range of 1024–49,591. These port numbers aren’t actually assigned or controlled, but they can be registered to avoid redundancy. The entity that can assign these ports is the Internet Assigned Numbers Authority (IANA) and before that they were assigned by ICANN.

What are dynamic ports?

Dynamic ports, also known as ephemeral ports, are short-lived ports since they are only open for a small period of time. They are short-lived because they are “opened and closed” for the duration a user uses an application.

For example, say I want to access the internet. Naturally the first step is to open up a web browser. The act of opening a web browser and connecting to the internet will connect you to port 80 (HTTP), or port 443 (HTTPS) depending on the encryption of that web page. In order to deliver that web page to you it will pick a random open port like 49,695. When you decide you’re done looking at the web page and close your web browser, the port on your end, 49,695, will close.

Common Ports and Services

  • Port 22: SSH & SFTP (Secure Shell & Secure File Transfer Protocol) — This protocol is used to provide remote access to another machine and generally, is encrypted using password authentication.
  • Port 23: Telnet (Telnet) — This network protocol is also used to remote access another machine but is not recommended to use because it is unencrypted and not secure.
  • Port 25: SMPT (Simple Mail Transfer Protocol) — This protocol is used for sending emails from server to server.
  • Port 53: DNS (Domain Name Service) — This is the service that converts domain names into IP addresses and vice versa.
  • Port 67: DHCP server (Dynamic Host Configuration Protocol) — This protocol is used by DHCP servers to dynamically assign the IP address, subnet mask, default gateway, and DNS server to clients.
  • Port 68: DHCP client (Dynamic Host Configuration Protocol) — This protocol is is used by client machines to obtain dynamic IP addressing information from a DHCP server.
  • Port 69: TFTP (Trivial File Transfer Protocol) — This protocol is used for lightweight file transfer, network booting of an operating system, or sending and receiving configuration files from a router or switch.
  • Port 80: HTTP (Hypertext Transfer Protocol) — This is the standard internet communication protocol that is used to send and receive unencrypted web pages.
  • Port 110: POP3 (Post Office Protocol) — This protocol is used for receiving emails from a server to a client.
  • Port 123: NTP (Network Time Protocol) — This protocol is used for the NTP server that allows for the synchronization of system clocks in order to keep time accurate and in sync with Coordinated Universal Time (UTC).
  • Port 139: NetBIOS (Network Basic Input/Output System) — This service is used for file and printer sharing on Windows devices.
  • Port 143: IMAP (Internet Mail Application Protocol) — This protocol is the newer version of POP3 that is used for retrieving emails from a server.
  • Port 161: SNMP (Simple Network Management Protocol) — This protocol is used to collect data from managed network devices and monitor their status.
  • Port 162: SNMPTRAP (Simple Network Management Protocol Trap) — This protocol is used to receive traps from managed devices.
  • Port 389: LDAP (Lightweight Directory Access Protocol) — This protocol is used to provide directory services to your network.
  • Port 443: HTTPS (Hypertext Transfer Protocol Secure) — This is the secure version of HTTP, where web traffic is encrypted via SSL/TLS.
  • Port 445: SMB (Server Message Block) — This protocol is used for Windows file sharing and printer services.
  • Port 514: Syslog (System Logging Protocol) — This protocol is used to send logging data back to a centralized server to store and analyze them.
  • Port 587: SMPT TLS (Simple Mail Transfer Protocol TLS) — This protocol is the secure version of SMPT that uses TLS for encryption.
  • Port 636: LDAPS (Lightweight Directory Access Protocol Secure) — This protocol is the secure version of LDAP that uses SSL/TLS encryption.
  • Port 993: IMAP over SSL (Internet Mail Application Protocol over SSL) — This protocol is the secure version of IMAP with SSL/TLS encryption.
  • Port 995: POP3 over SSL (Post Office Protocol over SSL) — This is the secure version of the POP3 protocol that uses SSL/TLS encryption.
  • Port 1433: SQL (Structured Query Language) — This is the default port used to connect to a Microsoft SQL database engine.
  • Port 1521: SQLnet (SQLnet Protocol — Oracle) — This port is used for communication from a client to an Oracle database.
  • Port 1720: H.323 (H.323 Hostcall) — This protocol is for providing audio-visual communication sessions like video calls.
  • Port 3306: MySQL (MySQL Protocol) — This is the default port for the MySQL protocol used for communication between a client and a MySQL database engine.
  • Port 3389: RDP (Remote Desktop Protocol) — This is Microsoft’s proprietary protocol that is used for remote control of another computer using a graphical user interface (GUI).
  • Port 5060: SIP (Session Initiation Protocol) — This protocol is used to initiate VoIP (Voice over IP) and video calls.
  • Port 5061: SIP TLS (Session Initiation Protocol TLS) — This is the secure version of SIP that uses TLS for encryption.

Cheat Sheet

+------+---------------+----------------------------------------------+
| Port | Service | Name |
+------+---------------+----------------------------------------------+
| 22 | SSH & SFTP | Secure Shell & Secure File Transfer Protocol |
| 23 | Telnet | Telnet |
| 25 | SMPT | Simple Mail Transfer Protocol |
| 53 | DNS | Domain Name Service |
| 67 | DHCP server | Dynamic Host Control Protocol |
| 68 | DHCP client | Dynamic Host Control Protocol |
| 69 | TFTP | Trivial File Transfer Protocol |
| 80 | HTTP | Hypertext Transfer Protocol |
| 110 | POP3 | Post Office Protocol |
| 123 | NTP | Network Time Protocol |
| 139 | NetBIOS | Network Basic Input/Output System |
| 143 | IMAP | Internet Mail Application Protocol |
| 161 | SNMP | Simple Network Management Protocol |
| 162 | SNMPTRAP | Simple Network Management Protocol Trap |
| 389 | LDAP | Lightweight Directory Access Protocol |
| 443 | HTTPS | Hypertext Transfer Protocol Secure |
| 445 | SMB | Server Message Block |
| 514 | Syslog | System Logging Protocol |
| 587 | SMPT TLS | Simple Mail Transfer Protocol TLS |
| 636 | LDAPS | Lightweight Directory Access Protocol Secure |
| 993 | IMAP over SSL | Internet Message Access Protocol over SSL |
| 995 | POP3 over SSL | Post Office Protocol over SSL |
| 1433 | SQL | Structured Query Language |
| 1521 | SQLnet | SQLnet Protocol - Oracle |
| 1720 | H.323 | H.323 Hostcall |
| 3306 | MySQL | MySQL Protocol |
| 3389 | RDP | Remote Desktop Protocol |
| 5060 | SIP | Session Initiation Protocol |
| 5061 | SIP TLS | Session Initiation Protocol TLS |
+------+---------------+----------------------------------------------+

--

--