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.
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
- RabbitMQ message broker (AMQP, default port 5672)
- Used by apps and workers, not by browsers
- The web admin page is on port 15672
Commands to start and test port 5672
sudo rabbitmqctl statusdocker run -p 5672:5672 -p 15672:15672 rabbitmq:3-managementsudo rabbitmqctl add_user myuser change-meFind 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
| Port | Usually used by |
|---|---|
| localhost:11434 | Ollama (AI models) |
| localhost:5601 | Kibana |
| localhost:11501 | Not a standard port: check what is using it |
| localhost:9200 | Elasticsearch |
| localhost:15672 | RabbitMQ admin page |
| localhost:9090 | Prometheus |
| localhost:9229 | Node.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.
Free tools that help
- Common ports listSearch a list of common TCP and UDP port numbers: SSH 22, HTTP 80, HTTPS 443, MySQL 3306, PostgreSQL 5432 and more, with dev server ports.