Messaging & Cache
Risk: Medium

Port 5672 β€” RabbitMQ AMQP Protocol

Port 5672 is the default standard port for the Advanced Message Queuing Protocol (AMQP 0-9-1 and 1.0) utilized by RabbitMQ.

PORT NUMBER

5672

PROTOCOL

TCP

DEFAULT PROCESS

beam.smp, rabbitmq

FIREWALL TARGET

5672/tcp

Instant Terminal Fixes for Port 5672

macOS & Linux Terminal
1. Check who is listening on port 5672:
sudo rabbitmq-diagnostics check_port_connectivity
2. Kill process occupying port 5672 (EADDRINUSE fix):
sudo systemctl stop rabbitmq-server
3. UFW Firewall Allow rule:
sudo ufw allow 5672/tcp
Windows PowerShell (Admin)
1. Check listening port:
Get-NetTCPConnection -LocalPort 5672
2. Force kill process on port 5672:
Stop-Service RabbitMQ -Force
3. Docker Port Forwarding Mapping:
docker run -p 5672:5672 -p 15672:15672 -d rabbitmq:3-management

Common Error Encountered

AMQP connection failed: Connection refused at localhost:5672

Security Advisory & Hardening

Disable the default `guest/guest` account for remote access or restrict it strictly to localhost.

Frequently Asked Questions

Port 5672 Questions & Answers

Common questions regarding default services, kill commands, and firewall configurations.

Port 5672 is commonly used for RabbitMQ AMQP Protocol. Port 5672 is the default standard port for the Advanced Message Queuing Protocol (AMQP 0-9-1 and 1.0) utilized by RabbitMQ.