# Ports

Most common services and their ports (all TCP unless stated otherwise):

| Port(s) | Service |
| :---: | :---: |
| `21` | FTP |
| `22` | SSH |
| `23` | Telnet |
| `25` | SMTP (mail) |
| `587` | secure SMTP |
| `53` (UDP) | DNS |
| `67` (UDP) and `68` (UDP) | DHCP |
| `69` (UDP) | TFTP |
| `80` | HTTP |
| `443` | HTTPS |
| `110` | POP3 (mail) |
| `111` | ONC RPC |
| `143` | IMAP (mail) |
| `161` (UDP) | SNMP |
| `139` and `445` | SMB |
| `1433` | MSSQL |
| `1978` | WiFi Mouse |
| `2049` | NFS |
| `3306` | MySQL |
| `3389` | Windows Remote Desktop (RDP) |
| `5900` | VNC |
| `5985` | WinRM HTTP |
| `5986` | WinRM HTTPS |

Most common Active Directory (AD) services and their ports:

| Port(s) | Service |
| :---: | :---: |
| `53` | DNS |
| `88` | Kerberos Authentication |
| `135` | WMI RPC |
| `138`, `139`, and `445` | SMB |
| `389` | LDAP |
| `636` | LDAPS |
| `5355` | LLMNR |
| `8530` and `8531` | WSUS |
