What ports does RabbitMQ use? Default AMQP and management UI ports
Codemia Knowledge Hub ·
By default RabbitMQ listens on 5672 for AMQP clients (5671 with TLS) and on 15672 for the management UI and HTTP API (15671 with TLS). Clustered nodes also use 4369 for EPMD peer discovery and 25672 for Erlang inter-node and CLI tool communication. Those are the ports to open in your firewall.
Default RabbitMQ ports
- 4369: EPMD (Erlang Port Mapper Daemon), used for node discovery in RabbitMQ clustering.
- 5672: AMQP client connections without TLS.
- 5671: AMQP client connections secured with TLS.
- 25672: Erlang inter-node and CLI tools communication within the cluster (the Erlang distribution server port). The actual port number depends on how RabbitMQ was started and can differ.
- 15672: HTTP API clients and the RabbitMQ management UI without TLS.
- 15671: HTTP API clients and the management UI with TLS, if configured.
| Port | Protocol | Usage | Secure (TLS) |
| 4369 | TCP | Erlang Port Mapper Daemon (EPMD) | No |
| 5672 | TCP | AMQP clients | No |
| 5671 | TCP | AMQP clients | Yes |
| 25672 | TCP | Erlang distribution for clustering | Configurable |
| 15672 | TCP | Management interface and HTTP API clients | No |
| 15671 | TCP | Management interface and HTTP API clients | Yes |
AMQP ports (5672 and 5671)
AMQP (Advanced Message Queuing Protocol) is RabbitMQ's core messaging protocol. Port 5672 carries connections without TLS, which suits internal networks where security is handled by other means. Port 5671 carries TLS-encrypted traffic for the internet or other untrusted networks.
Example configuration:
Management UI and HTTP API (port 15672)
The RabbitMQ Management Plugin serves a web UI and HTTP API on port 15672 by default. Use it to monitor and manage the broker's resources, queues, bindings and connections.
Example access:
Clustering and node communication (port 25672)
RabbitMQ clustering uses Erlang distribution, primarily over port 25672, for communication between nodes (Erlang processes) in the cluster. This carries work such as synchronizing queue state and mirroring.
Cluster configuration example:
Securing the exposed ports
Be careful about exposing these ports, especially on public networks. Restrict access to trusted IPs with a firewall, and enable TLS (port 5671 for AMQP and 15671 for the management UI) to prevent unauthorized access and data breaches.
Related reading
- What should be the best way to filter the kafka message
- What should I use Kafka Stream or Kafka consumer api or Kafka connect
- What ways can a Consumer consume message in Kafka?
- What's a typical versioning strategy for RabbitMQ?
- What's the best way to design message key in Kafka?
- What's the best way to monitor rabbitmq to make sure everything is running smoothly?
- What's the best way to push kafka messages from my edge nodes?
- What's the difference between kafka.javaapi.* and org.apache.kafka.*?
System design interview problems on this topic
- Design a Distributed Messaging System: solution and walkthrough
- Design a Log Collection and Analysis System: solution and walkthrough
- Design an Ad Click Aggregation System: solution and walkthrough
- Design a Webhook Notification Service: solution and walkthrough

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseSystem Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.