Skip to main content

Command Palette

Search for a command to run...

๐Ÿ”Œ 15 Most Common Protocols & Ports Every DevOps Engineer Should Know

Published
โ€ข4 min read

Because if your service isnโ€™t listening on the right port, is it even alive?


One of the first things I had to figure out as I got deeper into DevOps was this:

What protocols run where, and why does every tool ask about ports?!

So I made a cheat sheet โ€” not just to remember the ports, but to understand why these protocols matter in DevOps day-to-day work.

This blog is that cheat sheet, cleaned up and shared. If you're doing the #90DaysOfDevOps2025 like me โ€” here's your Protocols & Ports breakdown ๐Ÿ‘‡


๐Ÿ“– What Are Protocols & Ports?

Before diving in, letโ€™s get the basics out of the way:

  • A protocol is a set of rules for communication between devices. Think of it like a language (e.g., HTTP for web, SSH for remote login).

  • A port is like a channel inside a machine. Each protocol usually uses a default port โ€” so tools and services know where to listen or talk.

For example, if you're serving a website over HTTPS, the server listens on port 443, and clients automatically expect it there.


๐Ÿ“‹ Most Common Protocols & Ports in DevOps

Hereโ€™s the core list I use again and again in projects, cloud deployments, CI/CD tasks, and container setups:

ProtocolPortUse CaseDevOps Relevance
HTTP80Unsecured web trafficServing sites, APIs, probes
HTTPS443Secured web traffic (TLS/SSL)Hosting secure apps, frontend-backend comm
SSH22Remote terminal loginServer access, Git over SSH
FTP21File transferLegacy systems, rare in modern pipelines
SFTP22Secure FTP (over SSH)Transferring logs securely
DNS53Resolves domain namesCustom domains, service discovery
SMTP25Sending emailsAlerting, notification systems
POP3110Receiving emailsRare, legacy support
IMAP143Receiving emails (advanced)Email alerts integration
MySQL3306MySQL DB accessDatabase connections in apps
PostgreSQL5432PostgreSQL DB accessCommon in SaaS & cloud-native tools
MongoDB27017NoSQL DB accessStoring logs, events, analytics data
Redis6379In-memory data storeCaching, pub/sub, job queues
Elasticsearch9200Search engine queriesLog storage (e.g., ELK stack)
Kubernetes API6443Cluster managementUsed by kubectl, CI tools, etc.

๐Ÿ” Why These Matter in DevOps Workflows

Letโ€™s break down where youโ€™ll actually touch these protocols:


1. ๐Ÿ” SSH (Port 22)

Used constantly for accessing remote servers or containers.

  • Set up automation scripts to SSH into EC2 or VPS

  • Connect GitHub/GitLab via SSH keys

  • Diagnose services directly from terminal


2. ๐ŸŒ HTTP / HTTPS (Ports 80/443)

Runs everything on the web โ€” your backend, frontend, dashboards, APIs.

  • Expose services in Docker/Kubernetes with ingress

  • Set up reverse proxies using NGINX

  • Monitor apps using HTTP health checks


3. ๐Ÿ›ข๏ธ Databases (3306, 5432, 27017)

Your apps need data โ€” securely and consistently.

  • Connect CI/CD pipelines to test DBs

  • Use managed DBs in AWS, GCP, Azure

  • Configure .env files with DB ports in containers


4. ๐Ÿง  Caching & Search (6379, 9200)

Used for performance tuning and log storage.

  • Redis queues for background jobs

  • Elasticsearch for central log monitoring (e.g., ELK/EFK stacks)

  • Observability tools like Grafana rely on these


5. ๐Ÿ“ฉ Email Protocols (25, 110, 143)

Used when your app or server needs to send or receive alerts.

  • SMTP for sending alert emails

  • Integrating tools like Postfix or Mailgun

  • Emailing build logs or failure reports


6. ๐Ÿงญ DNS (Port 53)

A misconfigured DNS record can break everything.

  • Setup DNS in Route 53 or Cloudflare

  • Use dig or nslookup during troubleshooting

  • Link custom domains to cloud services


๐Ÿงช Bonus: DevOps Port Troubleshooting Tip

When something isnโ€™t working, I always do this first:

bashCopyEdit# Check if port is open
nc -zv <hostname> 22

# Or test HTTP/HTTPS endpoint
curl -I http://your-api.com

# For DNS
dig yourdomain.com

Sometimes itโ€™s just a closed port in your firewall or security group.