Common Ports Cheat Sheet: Essential Ports Every Network Administrator Should Know

Ready to start learning? Individual Plans →Team Plans →

When a user says “the network is down,” the fastest way to narrow it down is often a port check. Common ports tell you whether the problem is a blocked firewall rule, a dead service, a protocol mismatch, or simply traffic landing on the wrong endpoint.

Featured Product

CompTIA N10-009 Network+ Training Course

Discover essential networking skills and gain confidence in troubleshooting IPv6, DHCP, and switch failures to keep your network running smoothly.

Get this course on Udemy at the lowest price →

Quick Answer

Common Ports are the standard TCP and UDP port numbers administrators use to identify services like SSH, DNS, HTTP, HTTPS, SMB, RDP, and PostgreSQL. Knowing them speeds up troubleshooting, firewall configuration, packet capture analysis, and incident response because you can move from vague symptoms to a specific service, protocol, and rule change in minutes.

Definition

Common Ports are standardized numeric endpoints used by the Transport Protocol to deliver network traffic to the correct application or service on a host. A port number, combined with a protocol such as TCP or UDP, identifies exactly which service should receive the traffic.

Primary FocusCommon Ports for network troubleshooting and firewall review
Core ProtocolsTCP and UDP
Typical UseService validation, firewall analysis, packet capture, and incident response
Key ExamplesSSH 22, DNS 53, HTTP 80, HTTPS 443, SMB 445, RDP 3389, PostgreSQL 5432
Operational ValueFaster root-cause analysis and cleaner access control
Security ValueSmaller attack surface and tighter least-privilege rules

What Network Ports Are and Why They Matter

Network ports are numbered endpoints that let TCP and UDP deliver traffic to the right application on a host. A single IP Address can support dozens or hundreds of services because each service listens on its own port.

This is why port knowledge matters in real troubleshooting. If a web server is reachable on port 443 but not on 80, you already know the issue is probably tied to HTTP exposure, redirect behavior, or firewall policy rather than the host being completely offline.

A port is not the service itself. The service is the application, daemon, or process; the port is the doorway it listens on. SSH usually runs over TCP 22, while DNS uses UDP 53 for most lookups and TCP 53 for larger responses, zone transfers, and some fallback cases.

Port numbers turn a vague complaint into a precise question: “Is the service listening, is the port allowed, and is the protocol correct?”

That question is useful during Incident Response, during routine Firewall Configuration, and when validating changes after patching or migration. It is also a practical skill in the CompTIA N10-009 Network+ Training Course, where troubleshooting IPv6, DHCP, and switch failures depends on understanding how services move across the network.

Key Takeaway

Ports let one IP address carry many services, and that makes them one of the fastest ways to isolate whether a failure is caused by the application, the protocol, or the network path.

Port awareness also improves security posture. If you know exactly which services should be exposed, you can reduce unnecessary openings, spot rogue listeners, and catch misconfigured rules before they become incidents.

How Port Ranges Work

Port ranges are divided into three practical groups: well-known ports, registered ports, and ephemeral ports. These ranges help admins understand what is standard, what is vendor-specific, and what is temporary client-side traffic.

  1. Well-known ports run from 0 to 1023 and are usually reserved for standardized services such as SSH, HTTP, HTTPS, and DNS.
  2. Registered ports run from 1024 to 49151 and are often used by vendor applications, enterprise tools, databases, and custom services.
  3. Ephemeral ports are temporary client-side ports used for outbound connections and return traffic.
  4. Stateful firewalls track sessions so return traffic can flow back without opening the entire port range.
  5. Operating system defaults for ephemeral ranges vary, so troubleshooting should verify the active range on the host rather than assume a universal value.

Ephemeral port behavior matters more than many admins expect. If a remote client opens a connection to HTTPS on 443, the client usually picks a temporary source port from its ephemeral range. If that range is blocked, exhausted, or translated badly by NAT, you can see resets, failed handshakes, or one-way connectivity that looks random until you inspect the session state.

This is why port troubleshooting is never just about the destination port. It is also about the source port, the return path, and how devices like load balancers and firewalls handle state.

For deeper operational understanding, NIST guidance on network boundary control and access restriction is useful background. The NIST Computer Security Resource Center provides standards and publications that help administrators design tighter control points around exposed services.

Essential Common Ports Every Administrator Should Know

If you only memorize a few ports, start with the ones that show up constantly in tickets, audits, and packet captures. These are the ports that most often separate a quick fix from a long outage.

SSH on 22 SSH is the standard secure remote administration protocol for Linux, Unix, network devices, and many appliances. It uses TCP 22 and is one of the first ports to check when CLI access fails.
DNS on 53 DNS uses UDP 53 for most queries and TCP 53 for larger responses and zone transfers. If DNS breaks, almost every application starts to look broken too.
HTTP on 80 HTTP on TCP 80 is still common for redirects, legacy apps, and reverse proxy front ends, even though most production traffic should move to HTTPS.
HTTPS on 443 HTTPS on TCP 443 is the standard encrypted web service port and the default target for browsers, APIs, and many cloud services.
SMB on 445 SMB is the file sharing and Windows networking protocol that commonly uses TCP 445. It is heavily used in domains and also heavily targeted by attackers.
RDP on 3389 RDP provides remote desktop access over TCP 3389 and is a frequent target for brute-force attempts and exposure reviews.
NTP on 123 NTP keeps systems synchronized with time over UDP 123. Bad time can break authentication, logging, certificates, and incident timelines.
PostgreSQL on 5432 PostgreSQL commonly listens on TCP 5432 and is a frequent database connectivity target in enterprise troubleshooting.

These ports matter because they map directly to operational questions. If SSH is blocked, remote recovery becomes harder. If DNS is unreliable, users may report “the internet is broken” when the actual problem is name resolution. If RDP is exposed too widely, security teams have a completely different problem to solve.

A practical admin does not just memorize the numbers. The better habit is to tie each port to a service behavior, a protocol, and a likely failure mode.

The official protocol and service documentation from vendors is worth keeping close. For web and API traffic, Microsoft’s service documentation on Microsoft Learn is a good example of how vendors describe service behavior, prerequisites, and network dependencies in a supportable way.

Common Ports Cheat Sheet by Service Category

Grouping Common Ports by service category is faster than scanning a long alphabetical list. During an outage, you rarely ask, “What port is PostgreSQL?” You ask, “Is the database category affected, and which rules or listeners should I check first?”

Remote access

  • SSH 22 for secure command-line access
  • RDP 3389 for Windows desktop access
  • Telnet 23 may still appear in legacy environments, but it should be treated as a high-risk protocol because it is unencrypted

Web services

  • HTTP 80 for redirects, legacy apps, and front-door proxies
  • HTTPS 443 for encrypted web apps and APIs
  • Web Services often expose additional ports internally, but 443 is the user-facing standard for most modern environments

Directory and authentication

  • Kerberos 88 for ticket-based authentication in many Windows domains
  • LDAP 389 for directory queries
  • LDAPS 636 for encrypted directory access

File sharing

  • SMB 445 for Windows shares and domain operations
  • NFS 2049 for Unix and Linux file sharing

Mail

  • SMTP 25 for server-to-server mail transfer
  • Submission 587 for authenticated client mail submission
  • IMAP 143 / 993 for mailbox access, with 993 used for encrypted IMAP
  • POP3 110 / 995 for mail retrieval, with 995 used for encrypted POP3

Databases and monitoring

  • PostgreSQL 5432
  • MySQL 3306
  • SNMP 161/162 for monitoring and trap delivery
  • Syslog 514 for centralized logging in many environments

This kind of grouping is useful for firewall audits because it helps you think in terms of business function. If the mail category is unexpectedly open to the internet, the problem is not a single port number. The problem is a policy mistake.

Common Ports become easier to manage when you classify them by purpose, transport, and exposure level. That approach aligns well with documentation-heavy operational work and with the habit of validating services rather than trusting assumptions.

For administrators working through exposure control and segmentation, the Cybersecurity and Infrastructure Security Agency (CISA) publishes practical guidance on reducing attack surface and hardening externally reachable services.

How Do Common Ports Help in Troubleshooting?

Common Ports help troubleshooting by turning broad symptoms into testable questions. If a service fails, you can check whether the process is listening, whether the local host firewall allows it, whether the network path is clear, and whether the remote client is using the correct protocol.

The fastest method is usually to work from the host outward. First, confirm the service is bound to the expected port. Then test whether the port is reachable locally. After that, check the firewall, routing, NAT, and any security groups or ACLs between the client and server.

  1. Check the listener with tools such as ss, netstat, or lsof.
  2. Validate local access with curl, nc, or a service-specific client.
  3. Test from another host to see whether the problem is local or network-based.
  4. Review logs for resets, refused connections, or authentication failures.
  5. Correlate the port with the application before escalating to routing or ISP issues.

Here is the practical payoff: a failed browser session on TCP 443 points you toward TLS, certificates, web server health, or a firewall rule. A failed DNS lookup on UDP 53 points you toward name resolution, resolver reachability, or protocol handling. A failed SSH session on TCP 22 could be a bad ACL, an sshd service failure, or a network path issue.

The port number is often the difference between guessing and proving.

This same logic helps during escalation. If you can prove that the service listens locally but is unreachable from the client, the evidence already narrows the problem to the path between hosts. That makes change control, firewall review, and incident documentation much cleaner.

Firewall Configuration and Access Control Best Practices

Port knowledge makes firewall rules smaller, clearer, and easier to defend. The goal is not to “allow ports.” The goal is to allow only the required service, only from the required source, and only in the direction that business use requires.

That means separating inbound, outbound, and east-west traffic. A database may need inbound access from an application subnet, but never from user VLANs. A management port may need access from an admin jump host, but not from the internet. The same port can be safe in one zone and dangerous in another.

  • Use least privilege so each rule matches a specific service and source.
  • Avoid broad ranges unless the application truly requires them.
  • Document return traffic requirements so stateful inspection does not get mistaken for a missing exception.
  • Review external exposure regularly after changes, patching, and new deployments.
  • Match rules to business need rather than to convenience.

Common mistakes are easy to spot once you know the ports. Teams open a whole range because they are unsure which port an app uses. They leave RDP exposed to every subnet. They allow SMB where only a single file server should be reachable. They forget that a migration changed the backend port, so the firewall rule no longer matches the service.

Warning

Opening a port for testing and forgetting to close it is one of the most common ways temporary troubleshooting becomes a long-term security issue.

For policy and control alignment, the COBIT governance model is a useful reference point for organizations that want documented control ownership, review cycles, and change accountability around exposed services.

What Security Risks Come From Open Ports?

Open ports expand the attack surface because they advertise services to anyone who can reach them. Even when the service is hardened, an exposed port can reveal product type, software version, authentication behavior, or a useful path for reconnaissance.

Remote administration ports are especially sensitive. SSH, RDP, and management interfaces are high-value targets because they can lead directly to administrative access. File sharing ports such as SMB are also common exposure points because they often tie into identity, permissions, and lateral movement opportunities.

  • Port scans help attackers find live services quickly.
  • Banner grabbing can reveal software versions and configuration clues.
  • Weak defaults on web, database, or remote access services can be exploited once discovered.
  • Unused services create risk simply by staying online.
  • Misplaced exposure can make an internal-only system reachable from untrusted networks.

Security teams should treat exposed ports as a recurring review item, not a one-time checklist. Every infrastructure change can introduce a new listener, a new firewall exception, or a new indirect path through a load balancer or reverse proxy.

Attackers also care about which protocol sits behind the port. A service that accepts plaintext traffic may be easier to intercept, tamper with, or impersonate. That is why modern environments push hard toward encrypted protocols and tighter access boundaries.

For threat and vulnerability context, the OWASP Foundation publishes widely used guidance on application and exposure risks, and its security principles reinforce the importance of reducing unnecessary service exposure.

What Has Changed in Current-Year Port Usage?

Cloud, hybrid, and containerized environments changed how administrators think about ports. A service may be reachable on one port inside a cluster, another port behind a service mesh, and a third port at the public edge after load balancer translation.

Zero trust and microsegmentation also changed the question from “Can this port be open?” to “Who should reach this service, from where, and under what identity or policy?” That shift matters because network access is no longer the only control. Identity-aware access, device posture, and application-layer checks now decide whether traffic is allowed.

Modern exposure is also more layered. A reverse proxy may accept HTTPS on 443 while forwarding traffic to an internal application on 8443 or 8080. To the user, the public port looks simple. Behind the scenes, the internal design can be much more complex.

Today’s port review is not a static inventory task. It is a continuous validation task.

That means current admin practice should include routine checks of firewall rules, cloud security groups, container port mappings, and service discovery records. If a team assumes the public port list is still accurate after a migration, it will eventually miss a gap.

For current guidance on secure architecture and access modeling, the National Institute of Standards and Technology (NIST) remains a core reference for control design, especially when mapping exposed ports to broader security policy.

Which Tools Should You Use to Find and Verify Ports?

The best port tools are the ones that let you confirm both the local listener and the remote path. A good cheat sheet is useful, but it should never replace verification.

On Linux systems, ss -tulpn is one of the fastest ways to see listening TCP and UDP sockets. netstat still appears in older documentation and older environments. lsof -i is useful when you want to map a port back to a process ID and binary.

  • nc or netcat for simple reachability checks
  • curl for HTTP and HTTPS validation
  • telnet for quick TCP port testing in legacy workflows
  • tcpdump or packet capture tools for handshake analysis
  • firewall logs to confirm whether traffic is being denied or simply never arriving

For example, if a web app is unreachable, you might test locally with curl -vk https://localhost to see whether the service is alive. If that works, test from another host with nc -vz servername 443. If the remote test fails, the next step is usually a firewall or routing review.

Packet captures are especially useful when the symptom is ambiguous. If you see SYN packets arrive but no SYN-ACK return, the service may not be listening or a local rule may be dropping the response. If you see no traffic at all, the issue may be upstream or unrelated to the server.

Official Linux command behavior and network stack details are documented across the man-pages project, which is a practical reference when you need to confirm how socket tools behave on the host you are actually touching.

How Do You Read a Port and Protocol Cheat Sheet Efficiently?

The fastest way to use a cheat sheet is to start with service category, then drill down to the exact port and protocol. That is more reliable than hunting through a giant list from top to bottom during an outage.

Read the sheet in this order: service category, port number, protocol, direction, and expected exposure. That pattern helps you decide whether the service should be internet-facing, internal-only, or limited to an admin subnet.

  1. Identify the service family, such as web, remote access, or database.
  2. Confirm the correct port and whether it uses TCP, UDP, or both.
  3. Check whether the service should be reachable from the source you are testing.
  4. Compare the live configuration to your internal standards.
  5. Validate the service with a live connection test instead of trusting the list alone.

A cheat sheet works best when it includes your organization’s exceptions. If a legacy app uses a nondefault port, write it down. If a database lives behind a proxy and listens on 15432 internally, document that too. The generic internet list is not enough for real operations.

This is where a well-maintained internal reference becomes more useful than a generic poster. Your team needs the ports that actually matter in your environment, plus the firewall exceptions and owners tied to them.

Pro Tip

Keep a local copy of your approved port list with owners, source subnets, and change history. That turns a cheat sheet into an operational control.

What Are Special Cases and Nonstandard Port Assignments?

Nonstandard port assignments are common in real environments. Teams change defaults to avoid conflicts, support legacy applications, separate test and production services, or reduce obvious exposure patterns.

That choice is not automatically bad, but it creates risk if the change is undocumented. A technician might see an open port and assume it is the expected service, when in fact the port was reused after a migration and now belongs to something else entirely.

  • Security through obscurity is not a substitute for access control.
  • Port reuse after decommissioning can confuse both admins and scanners.
  • Certificates and banners help confirm service identity when the port number alone is misleading.
  • Application logs often tell the truth faster than the firewall table.

Example: a team may move PostgreSQL away from 5432 to avoid a conflict with another database instance. That is fine if the team updates the documentation, firewall rules, monitoring, and client connection strings. It becomes a problem if only one of those layers is updated.

Another common case is a reverse proxy or load balancer that exposes 443 externally but forwards to a nondefault backend port internally. The public port is normal, but the backend design is not. You need to know both sides to troubleshoot effectively.

For identity and validation, do not rely on port number alone. Validate with TLS certificates, service banners, app behavior, and logs. A port is a clue, not proof.

How Should You Maintain an Internal Port Reference?

An internal port reference should be a living document, not a static spreadsheet that nobody opens. The best version lists approved services, owners, source and destination zones, exceptions, and the business reason for each rule.

That document becomes more valuable every time the environment changes. During patching, you can compare expected exposure against the live firewall state. During incidents, you can quickly identify who owns the listener and which change might have altered it. During audits, you can show why a rule exists and when it was last reviewed.

  • Include ownership so someone is accountable for each service.
  • Track change history so old rules can be retired cleanly.
  • Link to monitoring so alerts map back to the correct service.
  • Match asset inventory so the reference reflects reality.
  • Review it during security audits so stale exceptions do not survive by accident.

A tailored reference is often more useful than a generic public list because it answers the question your team actually faces: “What ports should exist here, and why?” That is the difference between a study aid and an operational control.

Teams that keep this reference current usually resolve incidents faster and make fewer firewall mistakes. They also spend less time guessing which port belongs to which service after staff turnover or infrastructure changes.

For workforce and role alignment, the U.S. Bureau of Labor Statistics Occupational Outlook Handbook remains a solid source for understanding how networking and security responsibilities are evolving across IT roles, even when the day-to-day work is as practical as validating a port.

Key Takeaway

  • Common Ports speed troubleshooting by linking symptoms to a specific service, protocol, and rule set.
  • SSH 22, DNS 53, HTTP 80, HTTPS 443, SMB 445, RDP 3389, NTP 123, and PostgreSQL 5432 are high-value ports every network administrator should know.
  • Firewall rules are safer when they are specific, documented, and limited to the exact source, destination, and direction required.
  • Open ports increase attack surface, so exposure review should be a recurring security task, not a one-time checklist.
  • Verification matters more than memory; always confirm listeners, traffic flow, and service identity before making a change.
Featured Product

CompTIA N10-009 Network+ Training Course

Discover essential networking skills and gain confidence in troubleshooting IPv6, DHCP, and switch failures to keep your network running smoothly.

Get this course on Udemy at the lowest price →

Conclusion

Common Ports are one of the fastest tools a network administrator can use to troubleshoot, secure, and validate a network. When you know which service belongs on which port, you can isolate connectivity issues faster, write cleaner firewall rules, and reduce unnecessary exposure.

The most useful ports to keep in mind are SSH 22, DNS 53, HTTP 80, HTTPS 443, SMB 445, RDP 3389, NTP 123, and PostgreSQL 5432. Just as important, remember that the port number is only part of the answer. You still need to verify listeners, confirm protocol behavior, and review logs before declaring the issue solved.

Keep a current internal port reference, update it during changes, and use it alongside packet captures, firewall logs, and service tests. That habit saves time during outages and makes your security controls more accurate.

If you want to build this skill into daily troubleshooting practice, the CompTIA N10-009 Network+ Training Course is a strong fit because it reinforces the kind of network validation work administrators do every day.

CompTIA® and Network+™ are trademarks of CompTIA, Inc.

[ FAQ ]

Frequently Asked Questions.

What are common network ports and why are they important?

Common network ports are standardized numerical identifiers assigned to specific services and protocols that run over TCP or UDP. Each port number corresponds to a particular type of network communication, such as web traffic, file sharing, or remote login.

These ports are crucial because they help network administrators quickly identify and manage traffic, troubleshoot connectivity issues, and configure firewall rules. Knowing which ports are typically used by services like HTTP (port 80), HTTPS (port 443), or SSH (port 22) enables faster diagnosis of network problems and ensures that legitimate traffic is allowed while unauthorized access is prevented.

How can checking common ports help diagnose network issues?

Checking common ports is often the first step in troubleshooting network problems because it reveals whether essential services are reachable. For example, if a user reports that a website isn’t loading, testing port 80 or 443 connectivity can determine if the web server is accessible or if a firewall is blocking those ports.

Additionally, port checks can help distinguish between different causes of network failures, such as:

  • Blocked firewall rules preventing traffic
  • Services that have stopped running on the server
  • Protocol mismatches where traffic is sent to the wrong port

By systematically verifying port availability, administrators can pinpoint the root cause more efficiently and apply targeted fixes.

What are some examples of the most commonly used ports every network administrator should know?

Network administrators frequently encounter a set of well-known ports that correspond to essential services. Some of the most common include:

  • Port 22 (TCP) – Secure Shell (SSH) for encrypted remote access
  • Port 53 (UDP/TCP) – Domain Name System (DNS) for resolving domain names
  • Port 80 (TCP) – Hypertext Transfer Protocol (HTTP) for unencrypted web traffic
  • Port 443 (TCP) – HTTP Secure (HTTPS) for encrypted web traffic
  • Port 3389 (TCP) – Remote Desktop Protocol (RDP) for remote Windows sessions
  • Port 5432 (TCP) – PostgreSQL database connections

Familiarity with these ports allows administrators to quickly verify service availability and configure network devices accordingly.

Can common ports be changed, and what are the implications?

Yes, many services allow administrators to configure them to listen on non-standard ports instead of their default ones. For instance, an SSH server might be set to use port 2222 instead of the default port 22 to reduce exposure to automated attacks.

While changing ports can provide a layer of security through obscurity, it is important to document these changes thoroughly. Misconfigured or undocumented port changes can cause confusion during troubleshooting and lead to service interruptions. Additionally, firewall and network device rules must be updated to accommodate any non-standard port assignments to ensure traffic flows correctly.

What is the difference between TCP and UDP ports in networking?

TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) are two fundamental transport protocols that use port numbers to differentiate services. TCP is connection-oriented, establishing a reliable session between sender and receiver, which ensures data arrives intact and in order.

UDP, on the other hand, is connectionless and does not guarantee delivery or order, making it faster and more efficient for applications like streaming or DNS queries. Ports are assigned for both protocols, and some services use the same port number over TCP and UDP but for different purposes. Understanding the distinction helps administrators troubleshoot issues related to specific protocols and optimize network performance.

Related Articles

Ready to start learning? Individual Plans →Team Plans →
Discover More, Learn More
Essential Network Protocols Every Server Administrator Must Know Learn essential network protocols every server administrator must know to troubleshoot issues… Essential Ports And Protocols: Your Cheat Sheet For Network Security Learn essential ports and protocols to enhance network security, troubleshoot issues efficiently,… The Top 10 Common Ports Used By Network Protocols Discover the top 10 essential network ports and learn how mastering them… Cisco CCNA vs Cisco CCNP: Key Differences Every Network Professional Should Know Explore the key differences between Cisco CCNA and CCNP to choose the… What Every IT Pro Should Know About Large Language Models Discover how mastering large language models can streamline IT workflows, improve accuracy,… Threat Hunting Techniques Every Security+ Aspirant Should Know Discover essential threat hunting techniques to enhance your security skills and proactively…
FREE COURSE OFFERS