2

The RabbitMq Management Plugin appears to listen only on the IPV4 addresses if the ip is not configured. The typical configuration shown in the documentation is:

[
{rabbitmq_management, [{listener, [{port, 12345}]}]}
].

The documentation also states:

Use ip to specify an interface for mochiweb to bind to (giving an IP address as a string or tuple).

From that, if you specify the IPv6 loopback address, such as:

[
{rabbitmq_management, [{listener, [{port, 12345}, {ip, "::"}]}]}
].

it will listen on the IPV6 addresses, but not IPV4. Specifying an ip of "0.0.0.0" (or omitting the setting) listens on IPV4 only.

The documentation implies that you can use a tuple here, but I have been unsuccessful in understanding what an erlang tuple is well enough to make this setting and have the management plugin successfully start.

I've tried the following (and other variations) with error messages such as could_not_start_listener:

{ip, "::", "0.0.0.0"}
{ip, {"::", "0.0.0.0"}}

What is the magic necessary for hosting this on both IPV4 and IPV6 endpoints?

1 Answer 1

2

As per a thread in the rabbitmq-users mailing list responded to by @michaelklishin the RabbitMq_Management Plugin is unable to listen on two different endpoints due to the HTTP Server they are using. Therefore this question's answer is 'not possible' at present.

The plan is to change the underlying HTTP server in the RabbitMq 3.6.0 release, which will hopefully remove this limitation. For reference, this issue is #64 - Dual IP stack support and the issue to change the web server is #63 - Move from Webmachine to Cowboy

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.