Common Network Port Numbers Cheat Sheet (TCP/UDP Ports Every IT Pro Should Know)

A quick cheat sheet of common TCP and UDP port numbers like 22, 53, 80, 443 and 3389, with the protocol, use case, and a secure vs insecure guide.

Ports tell a device which service a packet is meant for. If you work with firewalls, you use port numbers every day. Bookmark this cheat sheet of the most common ones, with notes on which are secure and which you should avoid.

What Is a Port Number?

An IP address finds the right device, and a port number finds the right service on that device. Ports range from 0 to 65535 and live at the Transport layer (TCP or UDP). See our TCP/IP model guide for background.

Web and Remote Access

PortProtocolUsed forSecure?
80TCP / HTTPWeb trafficNo (unencrypted)
443TCP / HTTPSSecure web trafficYes
22TCP / SSHSecure remote login, SFTPYes
23TCP / TelnetRemote loginNo, avoid
3389TCP / RDPWindows Remote DesktopRisky if exposed to the internet
8080TCP / HTTP-altAlternate web, proxiesNo (unless TLS added)

Name, Address, and Time Services

PortProtocolUsed for
53UDP/TCP / DNSName resolution
67, 68UDP / DHCPAutomatic IP addressing (server 67, client 68)
123UDP / NTPTime synchronization
161, 162UDP / SNMPNetwork monitoring (traps use 162)
514UDP / SyslogLog forwarding

DNS, DHCP, and NAT are explained in DNS vs DHCP vs NAT.

Email

PortProtocolUsed forSecure?
25SMTPServer-to-server mailNot by default
587SMTP submissionSending mail from clientsYes (with STARTTLS)
465SMTPSSending mail over TLSYes
110POP3Receiving mailNo
995POP3SReceiving mail over TLSYes
143IMAPReceiving mailNo
993IMAPSReceiving mail over TLSYes

File Transfer and Directory

PortProtocolUsed forSecure?
20, 21FTPFile transfer (data, control)No
69UDP / TFTPSimple file transfer, device configsNo
445SMBWindows file sharingNever expose to the internet
389LDAPDirectory servicesNo
636LDAPSDirectory services over TLSYes

Databases

PortService
1433Microsoft SQL Server
3306MySQL / MariaDB
5432PostgreSQL

Databases should almost never be reachable directly from the internet.

Port Ranges

  • 0 to 1023: well-known ports
  • 1024 to 49151: registered ports
  • 49152 to 65535: dynamic or ephemeral ports (used by clients)

Security Tips

  • Close every port you do not need.
  • Prefer encrypted versions (HTTPS, SSH, IMAPS, LDAPS).
  • Never expose RDP, SMB, or database ports directly to the internet.
  • Use firewall policies that allow only the needed ports. Read What Is a Firewall?
  • On your own network, check open ports with Nmap.

Frequently Asked Questions

Does changing a port make a service secure? No. It may reduce noise from automated scans, but it is not real security. Use strong authentication and access controls.

TCP or UDP? TCP is for reliable delivery, and UDP is for speed. Some services, like DNS, use both.

Conclusion

You do not need to memorize every port, but knowing the common ones makes firewall rules and troubleshooting much faster. Print this cheat sheet or bookmark it for your next lab or exam.

NextGen Digital... Welcome to WhatsApp chat
Howdy! How can we help you today?
Type here...