Message Broker Ports: Kafka (9092), RabbitMQ (5672), MQTT (1883)

Port reference for message brokers and streaming platforms. Apache Kafka 9092, RabbitMQ 5672/15672, MQTT 1883, NATS 4222, and ZooKeeper 2181.

Message Brokers

Detailed Explanation

Message Broker and Streaming Ports

Message brokers enable asynchronous communication between services in distributed systems.

Apache Kafka

Port Service
9092 Kafka broker (client connections)
9093 Kafka broker (SSL/TLS)
2181 ZooKeeper (required for older Kafka versions)

Kafka is a distributed streaming platform used for real-time data pipelines. Since Kafka 2.8+, KRaft mode eliminates the ZooKeeper dependency.

RabbitMQ

Port Service
5672 AMQP protocol (unencrypted)
5671 AMQP with TLS
15672 Management UI and HTTP API
15692 Prometheus metrics endpoint
4369 EPMD (Erlang Port Mapper Daemon)
25672 Inter-node communication

MQTT

Port Service
1883 MQTT (unencrypted)
8883 MQTT with TLS
8083 MQTT over WebSocket

MQTT is the standard messaging protocol for IoT devices. Its lightweight design makes it ideal for constrained devices and low-bandwidth networks.

NATS

Port Service
4222 NATS client connections
6222 NATS cluster routing
8222 NATS HTTP monitoring

Security Recommendations

  1. Always use TLS-enabled ports in production
  2. Restrict management interfaces (15672, 8222) to internal networks
  3. Use SASL authentication for Kafka connections
  4. Enable access control lists (ACLs) for topic-level authorization

Use Case

Deploying a microservices architecture with Kafka as the event bus, requiring firewall rules for broker connections (9092), ZooKeeper coordination (2181), and monitoring endpoints.

Try It — Port Number Reference

Open full tool