Well-Known Port Numbers: FTP, TELNET, HTTP, and More

port number
network protocol
well known port
tcp udp
internet

This document describes well-known port numbers as defined in RFC 1700. It specifically covers port numbers for FTP, TELNET, HTTP, SMTP, POP3, IMAP, BIOS, SSH, and DHCP, all used within TCP, UDP, and IP protocols.

Port Numbers: The Basics

The endpoint of a logical network connection is known as a port. It’s essentially a 16-bit number, giving us a range from 0 to 65536.

The port numbers ranging from 0 to 1024 are designated as well-known ports. These are reserved for specialized or privileged services. For instance, as detailed in the table below, port 80 is commonly used for HTTP, while FTP typically uses port 21.

Table of Port Numbers for Common Protocols

Port numbers are pre-assigned by the Internet Assigned Numbers Authority (IANA). Their specifications are documented in RFC 1700.

The following table lists port numbers commonly used for FTP, TELNET, HTTP, SMTP, POP3, IMAP, BIOS, SSH, and DHCP. These protocols are fundamental to TCP or UDP connections within computer networks.

Port Number(s)Protocol Description
20, 21Port 20: FTP Data, Port 21: FTP Control
23TELNET
80, 8080HTTP
443HTTPS
25SMTP (Simple Mail Transfer Protocol)
110POP3
143IMAP (Interim Mail Access Protocol)
137, 138, 139137: NetBIOS Name Service, 138: NetBIOS-dgm, 139: NetBIOS Datagram Service
22SSH (Secure Shell) remote login protocol
67, 6868: DHCP Client, 67: DHCP Server
53DNS (Domain Name System)
69TFTP (Trivial File Transfer Protocol)
70Gopher services
79Finger
161SNMP
179BGP (Border Gateway Protocol)
389LDAP (Lightweight Directory Access Protocol)
5800, 5900VNC