Skip to main content

Common Ports Reference

Essential ports for DevOps, cloud infrastructure, and networking. Use this as a quick reference when configuring firewalls, security groups, and network policies.

🌐Web & HTTP

Port
Protocol
Service
Description
80
TCP
HTTP
Standard unencrypted web traffic
443
TCP
HTTPS
TLS-encrypted web traffic
8080
TCP
HTTP Alternate
Common alternative HTTP port for proxies, dev servers, and application servers
8443
TCP
HTTPS Alternate
Alternative HTTPS port for management UIs and admin panels
3000
TCP
Dev Server
Default port for Node.js, React, Grafana, and many dev frameworks
8888
TCP
HTTP Alternate
Jupyter Notebook, alternative web server port

🗄️Databases

Port
Protocol
Service
Description
5432
TCP
PostgreSQL
PostgreSQL database server
3306
TCP
MySQL
MySQL and MariaDB database server
27017
TCP
MongoDB
MongoDB database server (default)
6379
TCP
Redis
Redis in-memory data store and cache
9042
TCP
Cassandra
Apache Cassandra CQL native transport
5984
TCP
CouchDB
Apache CouchDB HTTP API
8529
TCP
ArangoDB
ArangoDB multi-model database
26257
TCP
CockroachDB
CockroachDB SQL interface
1433
TCP
MSSQL
Microsoft SQL Server
1521
TCP
Oracle DB
Oracle Database listener
9200
TCP
Elasticsearch
Elasticsearch HTTP API for search and analytics
11211
TCP/UDP
Memcached
Memcached distributed memory caching

📨Message Queues & Streaming

Port
Protocol
Service
Description
9092
TCP
Kafka
Apache Kafka broker (plaintext)
9093
TCP
Kafka SSL
Apache Kafka broker (SSL encrypted)
2181
TCP
ZooKeeper
ZooKeeper client connections (used by Kafka)
5672
TCP
RabbitMQ
RabbitMQ AMQP protocol
15672
TCP
RabbitMQ Management
RabbitMQ management UI and HTTP API
4222
TCP
NATS
NATS messaging system client port
6650
TCP
Pulsar
Apache Pulsar broker service
61616
TCP
ActiveMQ
Apache ActiveMQ OpenWire transport

📊Monitoring & Observability

Port
Protocol
Service
Description
9090
TCP
Prometheus
Prometheus server web UI and API
9093
TCP
Alertmanager
Prometheus Alertmanager web UI and API
9091
TCP
Pushgateway
Prometheus Pushgateway for batch jobs
3000
TCP
Grafana
Grafana dashboards and visualization
9411
TCP
Zipkin
Zipkin distributed tracing UI
14268
TCP
Jaeger
Jaeger collector HTTP endpoint
16686
TCP
Jaeger UI
Jaeger query and UI service
4317
TCP
OTLP gRPC
OpenTelemetry Collector gRPC receiver
4318
TCP
OTLP HTTP
OpenTelemetry Collector HTTP receiver
9100
TCP
Node Exporter
Prometheus Node Exporter for host metrics
8125
UDP
StatsD
StatsD daemon for application metrics

🔄CI/CD & DevOps Tools

Port
Protocol
Service
Description
8080
TCP
Jenkins
Jenkins CI/CD web interface
50000
TCP
Jenkins Agent
Jenkins JNLP agent communication
8929
TCP
GitLab Pages
GitLab Pages HTTPS
8929
TCP
GitLab
GitLab built-in web server (alternate)
9418
TCP
Git
Git protocol (native, unauthenticated)
8200
TCP
Vault
HashiCorp Vault API and UI
8500
TCP
Consul
HashiCorp Consul HTTP API and UI
8300
TCP
Consul Server
Consul server RPC communication
4040
TCP
Ngrok
Ngrok local tunnel inspection UI

🐳Container & Orchestration

Port
Protocol
Service
Description
2375
TCP
Docker (unencrypted)
Docker daemon API (unencrypted — avoid in production)
2376
TCP
Docker (TLS)
Docker daemon API with TLS encryption
5000
TCP
Docker Registry
Docker container image registry
6443
TCP
K8s API Server
Kubernetes API server (kubectl, client access)
2379
TCP
etcd Client
etcd client communication (K8s backing store)
2380
TCP
etcd Peer
etcd peer-to-peer communication for clustering
10250
TCP
Kubelet
Kubelet API for node management
10251
TCP
Kube Scheduler
Kubernetes scheduler health/metrics
10252
TCP
Kube Controller
Kubernetes controller manager health/metrics
30000-32767
TCP
K8s NodePort
Kubernetes NodePort service range
10255
TCP
Kubelet Read-Only
Kubelet read-only port (deprecated, disable in production)
6783
TCP/UDP
Weave Net
Weave Net CNI plugin communication
8472
UDP
Flannel VXLAN
Flannel CNI overlay network

🔑SSH & Remote Access

Port
Protocol
Service
Description
22
TCP
SSH
Secure Shell — remote server access, SCP, SFTP
3389
TCP/UDP
RDP
Remote Desktop Protocol for Windows servers
5900
TCP
VNC
Virtual Network Computing remote desktop
23
TCP
Telnet
Unencrypted remote access (avoid — use SSH instead)
2222
TCP
SSH Alternate
Common alternate SSH port to reduce brute-force attacks

🌍DNS & Networking

Port
Protocol
Service
Description
53
TCP/UDP
DNS
Domain Name System queries and zone transfers
67
UDP
DHCP Server
DHCP server — assigns IP addresses to clients
68
UDP
DHCP Client
DHCP client — receives assigned IP address
123
UDP
NTP
Network Time Protocol for clock synchronization
161
UDP
SNMP
Simple Network Management Protocol for monitoring
162
UDP
SNMP Trap
SNMP trap notifications from network devices
514
UDP
Syslog
Syslog protocol for centralized logging
1194
UDP
OpenVPN
OpenVPN tunnel default port
51820
UDP
WireGuard
WireGuard VPN tunnel
179
TCP
BGP
Border Gateway Protocol for routing between networks
443
UDP
QUIC / HTTP/3
QUIC protocol for HTTP/3 connections

🛡️ Security Best Practices

Principle of Least Privilege

Only open ports that are strictly necessary. Use security groups and network policies to restrict access to specific CIDR ranges.

Avoid Exposing Management Ports

Keep ports like 2375 (Docker), 10250 (Kubelet), and 2379 (etcd) internal. Never expose them to the public internet.

Use Non-Standard Ports for SSH

Moving SSH from 22 to a non-standard port (e.g., 2222) reduces automated brute-force attempts, though it is not a security measure on its own.

Encrypt Everything in Transit

Use TLS variants when available (2376 instead of 2375 for Docker, 9093 instead of 9092 for Kafka). Never send credentials over unencrypted ports.

Monitor Open Ports

Regularly audit open ports with tools like nmap, ss, or cloud provider security scanners. Unexpected open ports may indicate compromise.

Why Do Port Numbers Matter?

Port numbers are a fundamental concept in networking that allow multiple services to run on a single IP address. They range from 0 to 65535, divided into well-known ports (0-1023) reserved for standard services like HTTP and SSH, registered ports (1024-49151) used by specific applications, and dynamic/private ports (49152-65535) used for temporary connections. When configuring firewalls, security groups, Kubernetes network policies, or Docker port mappings, knowing the correct port for each service is essential.

DevOps engineers and cloud architects work with port numbers when designing network architectures, writing security group rules in Terraform, configuring Kubernetes ingress controllers, setting up monitoring with Prometheus exporters, and troubleshooting connectivity issues. Incorrect port configurations are one of the most common causes of service communication failures in distributed systems. This reference covers the ports you will encounter most frequently in modern cloud-native infrastructure.

Frequently Asked Questions

What port does HTTPS use?

HTTPS uses port 443 by default. This is the TLS-encrypted version of HTTP (which uses port 80). When you visit a website with https:// in the URL, your browser connects to port 443. In server configurations, you need port 443 open in your firewall and security groups for any service that serves HTTPS traffic, including web servers, APIs, and load balancers.

What port does PostgreSQL use?

PostgreSQL uses port 5432 by default. When configuring security groups for RDS instances or self-managed PostgreSQL, you need to allow inbound traffic on port 5432 from your application servers. MySQL uses 3306, MongoDB uses 27017, and Redis uses 6379. These should never be exposed to the public internet—restrict access to specific application subnets only.

How to check what is using a port?

On Linux, use ss -tlnp | grep :PORT or lsof -i :PORT to see which process is listening on a specific port. On macOS, use lsof -i :PORT. To scan remote hosts, use nmap -p PORT hostname. In Kubernetes, use kubectl get svc to see service port mappings, and kubectl port-forward to access services locally for debugging.