I am running RabbitMQ on a virtual machine of a local server (for development, testing, and staging environments). When there is an electrical power instability, the server ends up restarting, and RabbitMQ changes its internal IP address. Consequently, I have to redo the connections of the apps that were already connected to it using the previous IP address. I would like to maintain the same IP address even if it restarts.
I haven't found any configuration in RabbitMQ to enable this. Has anyone done this before?
I hope that the RabbitMQ server maintains the same internal IP address. To achieve this, I've tried checking the settings within RabbitMQ itself and connections, but I haven't found anything that could satisfy this requirement.
RabbitMQ does not change any IP address. Maybe the server changes the IP due to dynamic IP.
In case you have multiple IP(s) on your machine, you can define the listener
IP:PortLike:
https://www.rabbitmq.com/docs/networking#interfaces