CompTIA Security+: Ports and Protocols

A port is a logical endpoint on a system that directs communication to a specific application or process. There 65536 ports in use. There numbers range from 0 to 65535:
- ports 0-1023 are reserved for well-known services
- ports 1024-49151 are reserved for registered services
- ports 49152-65535 are reserved for dynamic use
Well-known ports
Well-known ports are associated with known protocols and services
Port 21 - FTP data - TCP
File Transfer Protocol data channel
Port 21 - FTP control - TCP
File Transfer Protocol control channel
Port 22 - SSH, SCP, SFTP - TCP
Secure Shell
Port 23 - Telnet - TCP
Teleprompt Network
Port 25 - SMTP - TCP
Simple Mail Transport Protocol
Port 53 - DNS - TCP/UDP
Domain Name System
Port 67 - DHCP - TCP
DHCP server
Port 68 - DHCP - TCP
DHCP client
Port 69 - TFTP - UDP
Trivial File Transfer Protocol
Port 80 - HTTP - TCP
HyperText Transport Protocol
Port 88 - Kerberos - TCP/UDP
Kerberos authentication protocol
Port 110 - POP3 - TCP
Post Office Protocol v3
Port 119 - NNTP - TCP
Network News Transfer
Port 123 - NTP- UDP
Network Time Protocol
Port 137 - NetBIOS name - UDP
NetBIOS
Port 138 - NetBIOS datagram - UPD
NetBIOS
Port 139 - NetBIOS session - TCP
NetBIOS
Port 143 - IMAP - TCP
Internet Message
Port 161 - SNMP - UDP
Simple Network Manageemnt Protocol
Port 161 - SNMP trap - UDP
Simple Network Manageemnt Protocol
Port 179 - BGP - TCP
Border Gateway Protocol
Port 389 - LDAP - TCP/UDP
Lightweight Directory Access Protocol
Port 443 - HTTPS - TCP
Secure HTTP
Port 445 - SMB - TCP
Server Message Block
Port 465 - SMTPS - TCP
Secure SMTP
Port 400 - ISAKMP/IKE - TCP
IPSec VPN
Port 514 - Syslog - UDP
Syslog
Port 515 - LPD - TCP
Line Printer Deamon
Port 520 - RIP - UDP
Routing Information Protocol
Port 587 - SMTP - TCP
SMTP submission
Port 636 - LDAPS - TCP
Secure LDAP
Port 989 - FTPS data - TCP
Secure FTP data
Port 990 - FTPS control - TCP
Secure FTP control
Port 993 - IMAPS - TCP
Secure IMAP
Port 995 - POP3S - TCP
Secure POP3
Registered ports
Registered ports are associated with registered applications or services by the Internet Assigned Numbers Authority (IANA). Unassigned registered ports can be used without owning.
Port 1433 - Microsoft SQL - TCP
Microsoft SQL server
Port 1521 - Orable DB - TCP
Oracle database server
Port 2049 - NFS - TCP/UDP
Port 2082 - cPanel - TCP
Web hosting control panel
Port 2083 - cPanel over SSL - TCP
Secure cPanel
Port 2086 - WHM - TCP
Web host manager
Port 2087 - WHM over SSL - TCP
Secure WHM
Port 2181 - Zookeeper - TCP
Zookeeper
Port 2483 - Oracle Database (SSL) - TCP
Oracle Database Listener over SSL
Port 2484 - Oracle Database (TCPS) - TCP
Oracle Database Secure Listener
Port 3000 - Development Web Server - TCP
Common port for development frameworks (Node.js, React, Express)
Port 3306 - MySQL - TCP
MySQL Database Server
Port 3389 - RDP - TCP
Remote Desktop Protocol (Microsoft Windows Remote Access)
Port 3690 - Subversion - TCP
Apache Subversion Version Control System
Port 4444 - Metasploit Listener - TCP
Metasploit Default Reverse Shell / Handler Port
Port 5432 - PostgreSQL - TCP
PostgreSQL Database Server
Port 5601 - Kibana - TCP
Kibana Web Interface for Elasticsearch
Port 5900 - VNC - TCP
Virtual Network Computing Remote Desktop
Port 5985 - WinRM - TCP
Windows Remote Management (HTTP)
Port 5986 - WinRM (HTTPS) - TCP
Windows Remote Management Secure
Port 6379 - Redis - TCP
Redis In-Memory Data Store
Port 6667 - IRC - TCP
Internet Relay Chat Server
Port 7001 - WebLogic - TCP
Oracle WebLogic Application Server
Port 8000 - HTTP Alternate - TCP
Alternative HTTP Port / Development Servers
Port 8008 - HTTP Proxy - TCP
Alternative HTTP / Web Proxy
Port 8080 - HTTP Proxy - TCP
Alternative HTTP Web Server / Proxy
Port 8081 - HTTP Alternate - TCP
Alternative HTTP Web Server
Port 8443 - HTTPS Alternate - TCP
Secure HTTP Alternative Port
Port 9000 - SonarQube / Development - TCP
SonarQube Code Analysis or Development Services
Port 9042 - Cassandra - TCP
Apache Cassandra NoSQL Database
Port 9092 - Kafka - TCP
Apache Kafka Messaging Broker
Port 9200 - Elasticsearch - TCP
Elasticsearch REST API
Port 9418 - Git - TCP
Git Native Protocol
Port 27017 - MongoDB - TCP
MongoDB NoSQL Database Server
Important ports
The following ports are worth memorizing in regard to their importance to networking and security: