TCPRegistered PortFirewall: Usually Closed
5672

RabbitMQ / AMQP

What is Port 5672?

Port 5672 is the default port for AMQP (Advanced Message Queuing Protocol), most commonly associated with RabbitMQ, the world's most widely deployed open-source message broker. AMQP 0-9-1, the version implemented by RabbitMQ, provides a reliable, standard way for applications to exchange messages using queues, exchanges, and bindings. RabbitMQ supports multiple messaging patterns — point-to-point, publish/subscribe, request/reply, and routing. It's used to decouple application components, handle asynchronous processing, distribute workloads, and implement event-driven architectures. RabbitMQ is deployed at companies like Bloomberg, Goldman Sachs, and NASA. Other AMQP implementations include Apache Qpid, Azure Service Bus, and Amazon MQ.

Common Uses

  • Asynchronous message processing between services
  • Task queue and background job processing
  • Event-driven microservice communication
  • Real-time data streaming and distribution

Technical Details

Port Number5672
ProtocolTCP
CategoryRegistered
Service NameRabbitMQ / AMQP
Default FirewallUsually Closed
Port Test Commands

Copy-paste commands to check port 5672 (RabbitMQ / AMQP) from your terminal

Test connectivity

Netcat (nc)Check if TCP port is reachable
nc -zv example.com 5672
curl (HTTP)Test HTTP response on this port
curl -v --max-time 5 http://example.com:5672/
TelnetBasic TCP port connectivity check
telnet example.com 5672
nmapScan port 5672 with service detection
nmap -p 5672 -sV example.com
Bash /dev/tcpPure bash TCP check (no extra tools needed)
(echo > /dev/tcp/example.com/5672) 2>/dev/null && echo "open" || echo "closed"

Open port in firewall

UFW (Ubuntu / Debian)
sudo ufw allow 5672/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 5672 -j ACCEPT
firewalld (RHEL / CentOS)
sudo firewall-cmd --permanent --add-port=5672/tcp && sudo firewall-cmd --reload

Security Considerations

!

RabbitMQ's default guest/guest credentials should be changed or deleted immediately. Enable TLS on port 5671 for encrypted connections. Use virtual hosts and fine-grained permissions to isolate applications. Restrict management interface access (port 15672). Implement authentication via LDAP or x509 certificates. Monitor for queue buildup that may indicate issues.

Popular Ports Reference

The most commonly used and referenced network ports

Related Ports