Reference
Common network ports
The well-known TCP and UDP ports the labs use. Each page says what runs on the port, names the standard that assigns it, and gives the Linux commands that check it.
| Port | Transport | Service | What it is |
|---|---|---|---|
| 21 | TCP | FTP | TCP port 21 is where an FTP server listens for commands: log in, list, get, put. The files themselves travel on a second connection, on another port. |
| 22 | TCP | SSH | TCP port 22 is SSH: encrypted remote login and remote commands. SFTP and scp copy files over the same port. |
| 25 | TCP | SMTP | TCP port 25 is SMTP between mail servers: the sending server finds the receiving one through the domain's MX record and connects to its port 25. |
| 53 | UDP and TCP | DNS | Port 53 is DNS. A question and its answer usually travel as one UDP packet each way; TCP port 53 carries the answers too big for that, and zone transfers. |
| 67 | UDP | DHCP | UDP port 67 is the DHCP server's port, and UDP port 68 the client's. A device with no address yet broadcasts from port 68 to port 67 and gets back its address, default gateway and DNS server. |
| 69 | UDP | TFTP | UDP port 69 is TFTP, the simplest file transfer: no login, no listing, no encryption. Network devices load images and configs with it. |
| 80 | TCP | HTTP | TCP port 80 is HTTP, the web without encryption: the default port of every http:// address. |
| 123 | UDP | NTP | UDP port 123 is NTP: a machine asks time servers what time it is and steers its own clock to match. |
| 143 | TCP | IMAP | TCP port 143 is IMAP: how a mail program reads mail that stays on its server, in folders, seen alike from every device. Port 993 is IMAP inside TLS from the first byte. |
| 161 | UDP | SNMP | UDP port 161 is SNMP: a monitoring station asks a device's agent for its counters and settings. UDP port 162 is where the station listens for traps, the messages a device sends without being asked. |
| 179 | TCP | BGP | TCP port 179 is BGP: two routers of neighbouring networks hold a TCP connection on it and exchange the routes of the internet. |
| 389 | TCP | LDAP | TCP port 389 is LDAP: servers ask one central directory who a user is and which groups they belong to. Port 636 is LDAP inside TLS (LDAPS). |
| 443 | TCP and UDP | HTTPS | TCP port 443 is HTTPS: HTTP inside TLS, the default port of every https:// address. HTTP/3 uses UDP port 443, over QUIC. |
| 445 | TCP | SMB | TCP port 445 is SMB: Windows-style file and printer sharing. A client logs in, connects to a named share, and reads or writes its files. |
| 500 | UDP | IKE (IPsec) | UDP port 500 is IKE: two IPsec gateways agree their keys on it. With a NAT between them they move to UDP port 4500, which then carries the encrypted traffic as well. |
| 514 | UDP | Syslog | UDP port 514 is syslog: devices send their log lines, one message each, to a collector that listens there. |
| 520 | UDP | RIP | UDP port 520 is RIP: every 30 seconds a router sends its whole routing table to its neighbours on this port, at the multicast address 224.0.0.9. |
| 1812 | UDP | RADIUS | UDP port 1812 is RADIUS authentication: a switch, access point or VPN gateway asks one central server whether to let a user in. UDP port 1813 carries the accounting: who was connected, and for how long. |
| 3389 | TCP | RDP | TCP port 3389 is RDP, the Remote Desktop Protocol: a graphical login to another machine's desktop. |
| 4789 | UDP | VXLAN | UDP port 4789 is VXLAN: Ethernet frames carried inside UDP across a routed network, so one segment can span racks or sites. |
| 5060 | UDP and TCP | SIP | Port 5060 is SIP, the signalling that sets up a VoIP call, over UDP or TCP. Port 5061 is SIP inside TLS. The audio itself flows separately, over RTP. |