Port 9092 is the default Apache Kafka broker port for plaintext client connections. Kafka also uses port 9093 for TLS (SSL) connections and port 9094 for SASL+TLS. ZooKeeper-based Kafka clusters use port 2181 for coordination. KRaft mode (Kafka 3.3+) eliminates ZooKeeper. Port 9092 traffic should be restricted to trusted application servers.
Port Number
9092
Protocol
TCP
Service
Kafka Broker
Range
IANA Registered (1024–49151)
Test connectivity and show broker API versions
kafka-broker-api-versions.sh --bootstrap-server host:9092List all consumer groups (check for unauthorized consumers)
kafka-consumer-groups.sh --bootstrap-server host:9092 --listShow topic partitions, replicas, and ISR status
kafka-topics.sh --bootstrap-server host:9092 --describe --topic mytopicDetect Kafka broker remotely (should fail if properly firewalled)
nmap -sV -p 9092 targetkafka-topics.sh --bootstrap-server localhost:9092 --list
kafka-console-producer.sh --broker-list localhost:9092 --topic test
kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginningKafka was created at LinkedIn by Jay Kreps, Neha Narkhede, and Jun Rao in 2010, open-sourced in 2011. Named after Franz Kafka. Port 9092 was the arbitrary default. Confluent (founded 2014) commercializes it. KRaft mode (2022) removes the ZooKeeper dependency. Redpanda (2020) provides a Kafka-compatible alternative in C++.
Kafka vs RabbitMQ?
Kafka: durable event log, consumer groups read at their own pace, replay capability, high throughput (millions msg/sec), best for event streaming and ETL. RabbitMQ: traditional message broker, per-message acknowledgment, complex routing (exchanges/bindings), best for task queues and request-reply patterns. Kafka retains messages; RabbitMQ deletes after consumption.
Should I use port 9092 or 9093 in production?
Use 9093 (SSL) or 9094 (SASL_SSL) for all production traffic. Port 9092 (PLAINTEXT) is acceptable only within a fully trusted private network where you control all hosts. Any cross-network or multi-tenant environment must use encrypted+authenticated listeners.