> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/networking-fundamentals/well-known-ports.md).

# Well-Known Ports

## What is a port?

A **port** is a communication endpoint utilised in networking, allowing devices to manage data traffic. Each device on a network is assigned an IP address, and within this address, ports enable multiple applications to communicate concurrently. Servers typically use **fixed ports** to offer specific services, while clients are allocated **dynamic ports**, which are randomly assigned for each session to facilitate communication. There are a total of **65,536 ports.**

### **Web & Application Servers**

| No. | Service             | Port No. | Protocol |
| --- | ------------------- | -------- | -------- |
| 1   | HTTP                | 80       | TCP      |
| 2   | HTTPS               | 443      | TCP      |
| 3   | Tomcat Startup      | 8080     | TCP      |
| 4   | Tomcat SSL          | 8443     | TCP      |
| 5   | Apache HTTP Server  | 80       | TCP      |
| 6   | NGINX               | 80       | TCP      |
| 7   | GlassFish           | 8080     | TCP      |
| 8   | JBoss Admin Console | 8080     | TCP      |

### **File Transfer**

| No. | Service    | Port No. | Protocol |
| --- | ---------- | -------- | -------- |
| 1   | FTP        | 21       | TCP      |
| 2   | FTPS       | 990      | TCP      |
| 3   | SFTP       | 22       | TCP      |
| 4   | TFTP       | 69       | UDP      |
| 5   | CIFS/Samba | 445      | TCP      |
| 6   | NFS        | 2049     | TCP      |
| 7   | SCP        | 22       | TCP      |

### **Remote Connection**

| No. | Service              | Port No. | Protocol |
| --- | -------------------- | -------- | -------- |
| 1   | SSH                  | 22       | TCP      |
| 2   | Telnet               | 23       | TCP      |
| 3   | RDP                  | 3389     | TCP      |
| 4   | VNC                  | 5900     | TCP      |
| 5   | Remote Desktop (RDP) | 3389     | TCP      |

### **Database/Datastore**

| No. | Service       | Port No. | Protocol |
| --- | ------------- | -------- | -------- |
| 1   | MySQL         | 3306     | TCP      |
| 2   | PostgreSQL    | 5432     | TCP      |
| 3   | MongoDB       | 27017    | TCP      |
| 4   | MS SQL Server | 1433     | TCP      |
| 5   | Redis         | 6379     | TCP      |

### **Mail Transfer**

| No. | Service  | Port No. | Protocol |
| --- | -------- | -------- | -------- |
| 1   | SMTP     | 25       | TCP      |
| 2   | SMTP SSL | 465      | TCP      |
| 3   | IMAP     | 143      | TCP      |
| 4   | IMAP SSL | 993      | TCP      |
| 5   | POP3     | 110      | TCP      |
| 6   | POP3 SSL | 995      | TCP      |

### **Directory Services**

| No. | Service  | Port No. | Protocol |
| --- | -------- | -------- | -------- |
| 1   | LDAP     | 389      | TCP      |
| 2   | LDAP SSL | 636      | TCP      |

**Messaging & Transfer**

| No. | Service         | Port No. | Protocol |
| --- | --------------- | -------- | -------- |
| 1   | MQ Listener     | 1414     | TCP/UDP  |
| 2   | RabbitMQ Web UI | 15672    | TCP      |
| 3   | Tibco RV Daemon | 7474     | TCP/UDP  |

### **Miscellaneous**

| No. | Service              | Port No. | Protocol |
| --- | -------------------- | -------- | -------- |
| 1   | DNS                  | 53       | UDP      |
| 2   | HTTP Alternate Port  | 8080     | TCP      |
| 3   | HTTPS Alternate Port | 8443     | TCP      |
| 4   | SNMP                 | 161      | UDP      |
| 5   | SNMP Trap            | 162      | UDP      |

#### Reference

{% embed url="<https://github.com/InfoSecWarrior/Offensive-Pentesting-Resources/blob/main/Port-List.md>" %}
