Connect to RabbitMQ from a different machine

IMPORTANT: Bitnami Native Installers do not modify the firewall configuration of your computer, therefore the RabbitMQ ports could be open which is a significant security risk. You are strongly advised to close the RabbitMQ ports (refer to the FAQ for more information on this).

If you want to use a transport connector to use RabbitMQ from a different machine, stop your RabbitMQ server and edit the installdir/rabbitmq/etc/rabbitmq/rabbitmq.config file, setting the bind address from to

   %% Network Connectivity
   %% ====================

   %% By default, RabbitMQ will listen on all interfaces, using
   %% the standard (reserved) AMQP port.
    {tcp_listeners, [5672]},

If you don’t want to connect to the management console from a different machine, edit the same file with the following configuration:

[%% Pre-Load schema definitions from the following JSON file. See
 %% {load_definitions, "/path/to/schema.json"},

 %% Log all requests to the management HTTP API to a file.
 %% {http_log_dir, "/path/to/access.log"},

 %% Change the port on which the HTTP listener listens,
 %% specifying an interface for the web server to bind to.
 %% Also set the listener to use SSL and provide SSL options.
  {listener, [{port, 15672},{ip, ""}]}

Restart the server for the changes to come into effect.

Once you have an active SSH tunnel or if you did not close the port for remote access, you can connect to RabbitMQ from a different machine, use a command like the one below:

$ rabbitmqadmin -H localhost -u USER_NAME -p PASSWORD list vhosts
Last modification October 1, 2018