HTTPfy

Port 5672 (AMQP (RabbitMQ))

AMQP 0-9-1 / 1.0 message broker port used by RabbitMQ, Qpid and Azure Service Bus clients.

Registered (user) port, 1024-49151 TCP Message queues Do not expose to the internet

What port 5672 is used for

AMQP 0-9-1 / 1.0 message broker port used by RabbitMQ, Qpid and Azure Service Bus clients.

Security: should port 5672 be open?

Do not expose to the internet. Keep internal. RabbitMQ's default guest/guest account only works from localhost; do not re-enable it remotely.

IANA assignment

Service nameProtoDescriptionAssigneeReference
amqp TCP AMQP Pieter Hintjens -
amqp UDP AMQP Pieter Hintjens -
amqp SCTP AMQP Martin Sustrik -

Registry dates for this port: registered 2006-01.

Check what is listening on port 5672

Linux: is anything listening on TCP 5672?
sudo ss -tlnp 'sport = :5672'
Linux / macOS: which process owns the port
sudo lsof -nP -i :5672
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':5672 '
Windows (Command Prompt)
netstat -ano | findstr :5672
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5672 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 5672
From Windows
Test-NetConnection HOST -Port 5672

Block port 5672 in the firewall

ufw
sudo ufw deny 5672/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 5672 -j DROP
nftables
sudo nft add rule inet filter input tcp dport 5672 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'Block TCP 5672' -Direction Inbound -Protocol TCP -LocalPort 5672 -Action Block

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.