The default RabbitMQ username is guest and the default password is guest. These credentials are created automatically on a fresh installation, but the guest user can only log in from localhost. From any other machine the login is rejected.
| Item | Default |
|---|---|
| Username | guest |
| Password | guest |
| AMQP port | 5672 |
| Management UI port | 15672 |
| Management URL | http://localhost:15672 |
| Connection string | amqp://guest:guest@localhost:5672 |
What to do next:
guest / guest.guest will not work remotely (see below).RABBITMQ_DEFAULT_USER and RABBITMQ_DEFAULT_PASS (see Docker credentials).guest / guest, create a dedicated admin user and delete the default one.The guest user is not a restricted demo account. On a fresh install it has:
/localhost, 127.0.0.1, ::1)This is why guest / guest is fine for local development and dangerous anywhere else. The localhost restriction is the only thing preventing anyone who knows the default password from taking full control of the broker.
No, not by default. Since RabbitMQ 3.3, the guest user is restricted to localhost connections. This is controlled by the loopback_users setting, which contains guest out of the box.
When you try to use guest / guest from another machine, the password is correct but RabbitMQ refuses the connection anyway:
Login failed, with no further explanation.ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. Some client libraries report it as a generic connection error, which makes it look like a network or port problem.user 'guest' can only connect via localhost, which is the quickest way to confirm the cause.Create a dedicated user and give it the permissions it needs:
rabbitmqctl add_user admin 'a_strong_password'
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"You can now log in remotely with admin and your password, both in the Management UI and with any AMQP client. Once it works, remove the default user:
rabbitmqctl delete_user guestFor a throwaway development machine you can lift the restriction in rabbitmq.conf:
loopback_users = noneRestart RabbitMQ for the change to take effect. Never do this on a server reachable from the internet: the username and password are publicly known, and automated scanners try guest / guest on port 15672 constantly.
The Management UI is RabbitMQ's built-in web admin interface. To log in on a fresh installation:
rabbitmqctl status (or docker ps if you use Docker).rabbitmq-plugins enable rabbitmq_management. Docker images with the -management tag already have it.guest, password guest.
If the login page does not load, the problem is the plugin, the service or the port, not the credentials. If the page loads but shows Login failed, the problem is the user: you are connecting remotely as guest, the password was changed, or the user does not have a management tag. The troubleshooting table below covers each case.
The Management UI gets the job done for basic administration, but it is showing its age. If you spend a lot of time in it, have a look at a better RabbitMQ UI.
With the official Docker image, the defaults are the same: guest / guest, with the Management UI on port 15672 when you use a -management tag.
docker run -d --name rabbitmq \
-p 5672:5672 \
-p 15672:15672 \
rabbitmq:4-managementOne difference: the Docker image disables the localhost restriction for guest, because connections forwarded through a published port do not come from the container's loopback interface. That is why guest / guest works from your host at http://localhost:15672.
To use your own credentials instead, set them with environment variables:
services:
rabbitmq:
image: rabbitmq:4-management
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: a_strong_passwordA few things to keep in mind:
RABBITMQ_DEFAULT_USER is set, the guest user is not created. Log in with your own credentials.rabbitmqctl change_password or remove the volume.15672:15672 port mapping, the login page is unreachable from your machine even though RabbitMQ is running fine.The full setup, including volumes, health checks and clustering, is covered in how to set up RabbitMQ with Docker and Docker Compose.
| Problem | Likely reason | Fix |
|---|---|---|
guest / guest doesn't work remotely | guest is restricted to localhost | Create a new user with rabbitmqctl add_user |
localhost:15672 doesn't open | Management plugin disabled, RabbitMQ not running, or port blocked | rabbitmq-plugins enable rabbitmq_management, check rabbitmqctl status |
| Login page unavailable in Docker | Management port not published, or image without -management | Add -p 15672:15672 and use a -management tag |
| Credentials rejected in Docker | RABBITMQ_DEFAULT_USER is set, so guest doesn't exist | Log in with the credentials from your environment variables |
| Changed Docker credentials are ignored | Existing volume from a previous start | rabbitmqctl change_password or recreate the volume |
Login failed with a custom user | Wrong password, or user has no management tag | rabbitmqctl set_user_tags <user> administrator |
AMQP client gets ACCESS_REFUSED | Wrong credentials, guest used remotely, or no permissions on the vhost | rabbitmqctl set_permissions -p / <user> ".*" ".*" ".*" |
To see which users exist and their tags, run rabbitmqctl list_users. To check that the ports are actually listening, see RabbitMQ ports explained.
Once you can log in, you may want something more comfortable than the built-in Management UI. RabbitGUI is a RabbitMQ IDE that connects through the same management port, with the same credentials. To connect to a local instance, create a connection with:
| Field | Value |
|---|---|
| Display name | Local, or any name (local connections are automatically colored in green) |
| Host | http://127.0.0.1:15672 |
| Username | guest |
| Password | guest |
| AMQP connection string | amqp://guest:guest@localhost:5672 |
If you set custom credentials, in Docker or with rabbitmqctl, use those instead of guest / guest.

Save the connection and it appears in your list. You can add as many RabbitMQ instances as you want, local, staging and production, and switch between them in one click.

Managed brokers don't use guest / guest at all: the provider generates credentials for you. For example, see how to log into a CloudAMQP RabbitMQ instance.
The default password is guest, for the default user guest. It only works from localhost.
There is no separate admin account. The guest user is the administrator on a fresh install, with the password guest.
http://localhost:15672, once the rabbitmq_management plugin is enabled.
Most often because you are connecting from another machine and guest is restricted to localhost. In Docker, it can also mean RABBITMQ_DEFAULT_USER is set and the guest user was never created.
Run rabbitmqctl change_password guest 'new_password', or better, create a new administrator user and delete guest.
See how RabbitGUI can make your everyday RabbitMQ workflows easier.
Available on Windows, Mac, and Linux.

RabbitMQ tutorialRabbitMQ exponential backoff: how to retry messages with increasing delaysHow to implement exponential backoff retries in RabbitMQ with TTL retry queues and dead-letter exchanges. Track attempts with an x-retry-count header, choose retry delays, and send final failures to a DLQ.
RabbitMQ tutorialWhat is AMQP? The Advanced Message Queuing Protocol explainedLearn what AMQP (Advanced Message Queuing Protocol) is, how it works, its core concepts, why it powers RabbitMQ, and how it compares to alternatives like MQTT, STOMP, and Kafka.
RabbitMQ tutorialBuilding an event bus with RabbitMQLearn how to design a decoupled event bus using a RabbitMQ topic exchange, with practical routing key conventions, durable queues, and animated diagrams showing message flow.
RabbitMQ tutorialRabbitMQ Retry Pattern: How to Retry Failed MessagesHow to retry failed messages in RabbitMQ without infinite requeue loops. Compare retry queues with TTL, exponential backoff and the delayed message exchange, cap retry attempts, and send final failures to a dead-letter queue.
RabbitMQ tutorialRabbitMQ exchange types explained: direct vs topic vs fanout vs headersLearn the 4 RabbitMQ exchange types: direct, fanout, topic and headers. See how routing keys work, when to use each exchange, and examples with animations.
RabbitMQ tutorialRabbitMQ Delayed MessagesLearn how to implement delayed messages in RabbitMQ using the delayed message exchange plugin and the message TTL with dead-letter queue pattern.