Home Ports and Services
Post
Cancel

Ports and Services

What Is a Port?

  • A port is just a number ranging from 0 to 65535.
  • It works with the transport layer protocols (TCP and UDP) to identify services.
  • Think of it like:

    • IP address = the house address.
    • Port number = the specific room or person inside.

Types of Ports

  • Well-Known Ports (0–1023): Assigned to core services (HTTP, SSH, DNS, etc.).
  • Registered Ports (1024–49151): Used by software/apps (like databases, game servers).
  • Dynamic/Ephemeral Ports (49152–65535): Temporary ports picked by your OS for client connections.

The Big Services and Their Ports

Here’s the reference list of the most important (and most asked about) services and their default ports:

PortProtocolService
20TCPFTP Data Transfer
21TCPFTP Control
22TCPSSH (Secure Shell)
23TCPTelnet
25TCPSMTP (Simple Mail Transfer Protocol)
53TCP/UDPDNS (Domain Name System)
67UDPDHCP Server
68UDPDHCP Client
69UDPTFTP (Trivial File Transfer Protocol)
80TCPHTTP (Hypertext Transfer Protocol)
110TCPPOP3 (Post Office Protocol v3)
119TCPNNTP (Network News Transfer Protocol)
123UDPNTP (Network Time Protocol)
135TCPRPC (Microsoft RPC)
137-139TCP/UDPNetBIOS
143TCPIMAP
161UDPSNMP
162UDPSNMP Trap
179TCPBGP (Border Gateway Protocol)
194TCPIRC (Internet Relay Chat)
389TCP/UDPLDAP
443TCPHTTPS (Secure HTTP)
445TCPMicrosoft SMB/CIFS
465TCPSMTPS (SMTP over SSL)
514UDPSyslog
515TCPLPD (Line Printer Daemon)
520UDPRIP (Routing Information Protocol)
546UDPDHCPv6 Client
547UDPDHCPv6 Server
587TCPSMTP (Mail Submission)
636TCPLDAPS (LDAP over SSL)
873TCPRsync
993TCPIMAPS (IMAP over SSL)
995TCPPOP3S (POP3 over SSL)
1080TCPSOCKS Proxy
1433TCPMicrosoft SQL Server
1521TCPOracle Database
1701UDPL2TP (Layer 2 Tunneling Protocol)
1723TCPPPTP (Point-to-Point Tunneling Protocol)
1812UDPRADIUS Authentication
1813UDPRADIUS Accounting
2049TCP/UDPNFS (Network File System)
2082TCPcPanel
2083TCPcPanel (SSL)
2181TCPApache Zookeeper
2222TCPDirectAdmin
2375TCPDocker REST API (Unencrypted)
2376TCPDocker REST API (SSL)
2483TCPOracle DB (unsecure)
2484TCPOracle DB (SSL)
3306TCPMySQL
3389TCPRDP (Remote Desktop Protocol)
3690TCPSubversion (SVN)
4000TCP/UDPICQ
4369TCPErlang Port Mapper
5000TCPUPnP / Flask Dev Server
5060TCP/UDPSIP (VoIP Signaling)
5432TCPPostgreSQL
5631TCPpcAnywhere (data)
5632UDPpcAnywhere (status)
5900TCPVNC (Virtual Network Computing)
5984TCPCouchDB
6379TCPRedis
6667TCPIRC
8000TCPCommon Web Servers / Proxy
8080TCPHTTP Proxy / Alternate Web
8443TCPHTTPS Alternate
8888TCPAlternate Web Services
9200TCPElasticsearch
11211TCP/UDPMemcached

(This list can keep going, but these are the ones you’ll run into the most in networking, pentesting, and sysadmin work.)

Why Does This Matter?

  • Troubleshooting → If a service isn’t working, check if the right port is open.
  • Security → Attackers scan ports to find weak spots (hello, Nmap).
  • Configuration → Firewalls, NAT, and routers need correct port rules.
This post is licensed under CC BY 4.0 by the author.