Home / Port numbers / Port 2181
Port 2181: Apache ZooKeeper
Coordination service used by Kafka, Hadoop and others. Port 2181 uses TCP.
- Port
- 2181
- Commonly used for
- Apache ZooKeeper
- Transport
- TCP
- Encrypted
- No (by default)
- Range
- User (registered) port, 1024 to 49151
- Our advice
- Keep it closed to the internet
- IANA registration
eforwardeforward (TCP, UDP)
Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.
What port 2181 is used for
Port 2181 is the client port of Apache ZooKeeper, a service that distributed systems use to hold shared configuration and decide which node is in charge. Older Kafka versions, Hadoop and Solr depend on it.
Should port 2181 be open?
ZooKeeper holds the control data of the cluster built on it and, by default, lets any client read and change it. It should be reachable only by the cluster's own machines.
Related ports
- Port 9092 (Apache Kafka): Kafka event streaming brokers
- Port 2379 (etcd): the key-value store behind Kubernetes
See all port numbers for the full list and how ports, TCP and UDP work.
Previous: Port 2087 (WHM (HTTPS)) · Next: Port 2222 (SSH alternate (unofficial))