RabbitMQ
Ports
Network Communication
Message Queuing
Server Configuration

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.
PortProtocolUsageSecure (TLS)
4369TCPErlang Port Mapper Daemon (EPMD)No
5672TCPAMQP clientsNo
5671TCPAMQP clientsYes
25672TCPErlang distribution for clusteringConfigurable
15672TCPManagement interface and HTTP API clientsNo
15671TCPManagement interface and HTTP API clientsYes

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:

plaintext
# Connection URI for a RabbitMQ client
amqp://user:password@host:5672/vhost

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:

plaintext
http://your-rabbitmq-server:15672/

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:

plaintext
# Assuming RabbitMQ is installed and running on all nodes
rabbitmqctl join_cluster rabbit@node1

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.


Course
Beginner
27 lessons
10 hours
System Design Fundamentals

Build a strong foundation in designing scalable, reliable distributed systems.

View the course
System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design