Home / Localhost / localhost:5672

localhost:5672: RabbitMQ AMQP connection fixes

Port 5672 is RabbitMQ’s AMQP port. Check the broker, create a user and fix ACCESS_REFUSED and connection errors.

A database client connects to localhost:5672, which is port 5672 on your computer, where RabbitMQ is running

Not a web pagePort 5672 belongs to RabbitMQ’s AMQP protocol. Use port 15672 for the admin page.

localhost:5672 is where RabbitMQ accepts connections from apps. It is not a web page: use port 15672 for the admin page.

What runs on localhost:5672

Commands to start and test port 5672

Check the broker (Linux)
sudo rabbitmqctl status
Docker: broker with the admin page
docker run -p 5672:5672 -p 15672:15672 rabbitmq:3-management
Create a user (instead of guest)
sudo rabbitmqctl add_user myuser change-me

Find what is using port 5672

Run these in a terminal on your computer. Nothing is sent to this site.

If localhost:5672 will not open

ACCESS_REFUSED: login was refused
The default guest user can only connect from localhost. Create your own user, give it permissions and use that.
Connection refused
RabbitMQ is not running. Start the service or the container.
Heartbeat or connection timeouts
Check firewalls and that the app uses port 5672, not 15672.
Port 5672 is in use
Another broker is running. Find it with the tool below.

Other ports like 5672

PortUsually used by
localhost:11434Ollama (AI models)
localhost:5601Kibana
localhost:11501Not a standard port: check what is using it
localhost:9200Elasticsearch
localhost:15672RabbitMQ admin page
localhost:9090Prometheus
localhost:9229Node.js debugger

Questions about localhost:5672

What is port 5672?
The AMQP port of RabbitMQ.
How do I open the RabbitMQ web page?
Use port 15672 with the management plugin enabled. See the localhost:15672 page.
Is localhost:5672 safe?
Yes while it stays on localhost. Tools like this often show sensitive data, so keep them off the public internet and put a login in front of them if other people can reach the port.
Can I use a different port instead of 5672?
Yes. Pick a free port above 1024, set it in the program, and open that number instead. If other programs connect to this port, change it there as well.
How do I check what is using port 5672?
Use the port checker on this page. It shows the command for Windows, macOS and Linux and does not send anything to this site.

Updated 2026-10-03

Free tools that help

Related pages