Skip to main content

Port Cheatsheet

Port reference — 35 of 35
PortProtoServiceWhy support cares
20TCPFTP dataPassive FTP. Blocked by most firewalls.
21TCPFTP controlCleartext credentials — avoid.
22TCPSSHLinux/Unix remote administration.
23TCPTelnetCleartext. Your JD names it as a test tool.
25TCPSMTPOutbound mail from a mail client.
53TCP/UDPDNSUDP for lookups, TCP for zone transfers.
67UDPDHCP serverOffers and acknowledgements.
68UDPDHCP clientDiscover and Request.
69UDPTFTPUsed during PXE network boot.
80TCPHTTPUnencrypted web.
88UDP/TCPKerberosAD authentication ticket exchange.
123UDPNTPTime sync — Kerberos fails without it.
137UDPNetBIOS nameLegacy Windows name service.
139TCPNetBIOS sessionLegacy file sharing.
143TCPIMAPMail retrieval.
161UDPSNMPNetwork monitoring polling.
162UDPSNMP trapUnsolicited device alerts.
389TCP/UDPLDAPAD directory queries.
443TCPHTTPSAlso RDP-over-Gateway, SQL Server TLS.
464TCP/UDPKerberos password change
500UDPIKE (IPsec)VPN negotiation phase 1.
514UDPSyslogCentralised log shipping.
636TCPLDAPSLDAP over TLS.
3389TCP/UDPRDPRemote Desktop. Almost guaranteed in a support call.
4500UDPNAT-T / IPsecVPN when UDP 500 is blocked.
3268TCPGlobal CatalogAD global catalogue search.
3269TCPGlobal Catalog TLS
5985TCPWinRM (HTTP)PowerShell Remoting.
5986TCPWinRM (HTTPS)Remoting over TLS.
1433TCPMS SQL Server
3306TCPMySQL
5432TCPPostgreSQL
27017TCPMongoDB
8080TCPHTTP alternateProxies, Tomcat.
8443TCPHTTPS alternate

The ports you must know with no hesitation​

PortServiceWhy it comes up
20/21FTPCleartext — usually "should be blocked"
22SSHLinux remote admin
23TelnetNamed in your JD as a testing tool
25SMTPOutbound mail
53DNSUDP queries, TCP transfers
67/68DHCPServer / client
69TFTPPXE boot
80HTTPUnencrypted web
88KerberosAD authentication
123NTPTime sync — Kerberos depends on it
161/162SNMPMonitoring / traps
389LDAPAD directory queries
443HTTPSAlso TLS-wrapped services
445SMBFile and print sharing
500/4500IKE / NAT-TIPsec VPN
1433MSSQL
3306/5432/27017MySQL / PostgreSQL / MongoDB
3389RDPThe single most asked port in support
5985/5986WinRMPowerShell remoting
3268/3269Global CatalogAD multi-DC searches

UDP vs TCP — the difference that matters​

TCPUDP
Connection3-way handshakeNone
ReliabilityRetransmits, orderedFire and forget
SpeedSlowerFaster
Used byHTTP, SSH, SMB, RDPDNS, DHCP, SNMP, NTP
The handshake

TCP: client sends SYN, server replies SYN-ACK, client sends ACK. That is a connection. If you can complete it, the port is open. This is exactly what Test-NetConnection and telnet are testing.

Private IP ranges​

RangeMeaning
10.0.0.0/8Private, Class A
172.16.0.0/12Private, Class B (172.16–172.31)
192.168.0.0/16Private, Class C
127.0.0.0/8Loopback
169.254.0.0/16APIPA — DHCP failed
224.0.0.0/4Multicast

Subnet prefixes​

PrefixMaskUsable hosts
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522

Default gateways commonly seen​

Port / interfaceTypical value
Consumer router LAN192.168.0.1 or 192.168.1.1
pfSense192.168.10.1
Server SVI192.168.10.1

Troubleshooting in one line each​

Test-NetConnection <host> -Port <n> # is the port open?
netstat -ano | findstr :<n> # who is listening here?
nslookup <name> # does the name resolve?
Resolve-DnsName <name> # richer DNS output
arp -a # IP to MAC on this segment
tracert <host> # where does the path stop?
ss -tulpn # Linux sockets
nc -zv <host> <port> # port test
dig +short <name> # DNS
ip r # routing table
Was this page helpful?