1. Ports
  2. Port 2182

Port 2182 isn't in IANA's registry. No RFC defines it. But if you run Apache Kafka in production with security enabled, you know this port. It's the encrypted half of ZooKeeper.

The 2181/2182 Pair

Apache ZooKeeper is the coordination service that distributed systems depend on — it tracks cluster membership, leader election, configuration, and shared state. By default, it listens on port 2181 for client connections.1

When ZooKeeper added TLS support, it needed a second port. The secureClientPort configuration option lets you run encrypted and plaintext connections simultaneously — one port for each.2 The community converged on 2182 as the conventional choice for the secure side:

clientPort=2181
secureClientPort=2182

Port 2181 handles plaintext. Port 2182 handles TLS. Same ZooKeeper, two doors — one open, one locked.

Where You'll See It

Port 2182 shows up wherever ZooKeeper security is taken seriously:

  • Amazon MSK (Managed Streaming for Apache Kafka) uses port 2182 for TLS connections to ZooKeeper3
  • Confluent Platform configures 2182 as the secure client port in hardened deployments4
  • Cloudera specifies 2182 as the ZooKeeper TLS port in CDP environments5
  • ArcGIS GeoAnalytics Server uses it for inter-node ZooKeeper communication6

It also appears in local multi-node setups where multiple ZooKeeper instances run on one machine. If you're running three nodes locally, they often bind to 2181, 2182, and 2183 — one port per instance.

What Range This Port Belongs To

Port 2182 falls in the registered port range (1024–49151). IANA maintains this range for services that want an official assignment, but registration isn't mandatory. Plenty of software uses registered ports by convention without ever filing with IANA. ZooKeeper's 2181 is officially registered; 2182 is just the neighbor it moved into informally.

Checking What's on Port 2182

To see if anything is listening on port 2182 on your machine:

# macOS / Linux
lsof -i :2182

# Linux (alternative)
ss -tlnp | grep 2182

# Windows
netstat -ano | findstr :2182

If you see ZooKeeper (or a Java process from a Kafka/Hadoop stack), that's expected. If you see something you don't recognize, that's worth investigating.

Why Unassigned Ports Matter

The registered port range has about 48,000 slots. IANA has formally assigned a fraction of them. The rest exist in a practical gray zone: no official owner, but often claimed by convention through software that millions of people run.

Port 2182 is a good example of how that actually works. ZooKeeper didn't file for it — it just became the de facto TLS port because everyone needed one and someone had to pick a number. Now it appears in cloud documentation, firewall rules, and security audits worldwide.

The port number itself means nothing. The convention is everything.

Frequently Asked Questions

Was this page helpful?

😔
🤨
😃
Port 2182: ZooKeeper (TLS) — The Encrypted Side of the Coordinator • Connected