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
Copy-paste commands to check port 5672 (RabbitMQ / AMQP) from your terminal
Test connectivity
nc -zv example.com 5672
curl -v --max-time 5 http://example.com:5672/
telnet example.com 5672
nmap -p 5672 -sV example.com
(echo > /dev/tcp/example.com/5672) 2>/dev/null && echo "open" || echo "closed"
Open port in firewall
sudo ufw allow 5672/tcp
sudo iptables -A INPUT -p tcp --dport 5672 -j ACCEPT
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