Ports

Ports allow computers to send and receive data over a network and facilitate communication between different applications or devices.

Ports are typically associated with the Transmission Control Protocol (TCP) and User Datagram Protocol (UDP), which are two fundamental protocols in computer networking. Each of these protocols has its own set of ports. TCP is used for reliable, connection-oriented communication, while UDP is used for connectionless, unreliable communication.

Ports are identified by numbers ranging from 0 to 65535. They are divided into three ranges:

Well-known ports (0 to 1023): These ports are reserved for specific services or applications, such as HTTP (port 80), HTTPS (port 443), FTP (port 21), SSH (port 22), and more. They are standardized and commonly used for widely known services.

Registered ports (1024 to 49151): These ports are used by various applications and services, but they are not as well-known or standardized as the well-known ports. They are typically assigned by the Internet Assigned Numbers Authority (IANA) upon request.

Dynamic or private ports (49152 to 65535): These ports are available for dynamic allocation by applications and services. They are used for temporary purposes and are not assigned to any specific application or service.

When a computer wants to communicate with a specific service on another computer, it needs to know the IP address of the destination machine and the port number associated with the service it wants to access. Together, the IP address and port number create a unique address, allowing the data to reach the correct application or service on the target device.

Port NumberNameService
Port 20ftp-dataFile Transfer Protocol data
Port 21ftpFile Transfer protocol port
Port 22sshSecure Shell service
Port 23telnetThe telnet service
Port 25smtpSimple Mail transfer Protocol
Port 49tactacsTerminal Access Controller
Port 53domainDNS
Port 69tftpTrivial File Transfer Protocol
Port 80httpHyper Text Transfer Protocol
Port 88kerberosKerberos Authentication
Port 110pop3Post Office Protocol Version 3
Port 119nntpNetwork News Transfer Protocol
port 123ntpNetwork Time Protocol
Port 137netbiosNETBIOS Name Service
Port 143imapInternet Message Access Protocol
Port 161snmpSimple Network Managment
Port 162snmtrapTraps for SNMP
Port. 389ldapLightweight Directory Access Protocol
Port 443httpsSecure Hypertext Transfer Protocol
Port 444snppSimple Network Paging Protocol
Port 445microsoftServer Message Block
Port 500isakmpInternet Key Exchange
Port 514syslogUNIX System Logging Service
Port 636idapsSecure LDAP
Port 1433ms-sql-sMicrosoft SQL Server
Port 1512winsMicrosoft Internet Name Server
Port 1701l2tpLayer 2 Tunneling Protocol
Port 1723PPTPPoint to Point Transfer Protocol
Port 1812radiusRadius Authentication & Accounting
Port 3389rdpRemote Desktop Protocol