A port number selects a service endpoint on an IP host. IANA registrations provide shared defaults, not proof of what a deployment actually runs. A service may listen elsewhere, another application may own the expected socket, and firewall policy still decides whether traffic reaches it. The listener and negotiated protocol are stronger evidence than a familiar number.

ServiceRegistered/default portUsual transportOperational caveat
FTP control21TCPData uses a separate negotiated connection. Prefer SSH-based or HTTPS transfer for new systems
SSH22TCPFrequently moved, but changing the port is noise reduction rather than authentication
Telnet23TCPUnencrypted. Use SSH
SMTP relay25TCPClient submission normally uses 587. Implicit TLS submission commonly uses 465
DNS53UDP and TCPTCP is required for AXFR and for IXFR responses that do not fit in one UDP message. Compact IXFR can use UDP.
DHCP server/client67 / 68UDPBroadcast behavior and relay agents matter across subnets
HTTP80TCPMay redirect to HTTPS. HTTP/3 is normally advertised on a secure origin instead
POP3110TCPImplicit TLS on 995
NTP123UDP primarilyIANA also registers TCP. Normal NTP exchanges use UDP
NetBIOS session139TCPName and datagram services use UDP 137/138. Modern Windows file sharing usually uses SMB directly on 445
IMAP143TCPImplicit TLS is registered on 993
HTTPS443TCP and UDPHTTP/1.1 and HTTP/2 use TLS over TCP. HTTP/3 uses QUIC over UDP
SMB445TCPNever expose directly without strict hardening
SMTP submission587TCPAuthenticated submission normally upgrades with STARTTLS
Oracle listener1521TCPA common registered listener port, still configurable
MySQL3306TCPKeep database listeners on private networks and require authenticated TLS where supported
RDP3389TCP and UDPModern RDP can use both. Public exposure attracts credential attacks
PostgreSQL5432TCPConfigurable. Network access and pg_hba.conf are separate gates
# A port says what accepted the connection, not what protocol is safe.
nc -vz db.internal.example 5432
openssl s_client -connect api.example.com:443 -servername api.example.com

References