Hello,
Restarting the service won't restart epmd, plus epmd won't pick up the ERL_EPMD_ADDRESS environment variable since I'm assuming you are using systemd.
You should create the /etc/rabbitmq/rabbitmq-env.conf file with the following contents:
export ERL_EPMD_ADDRESS=<specific-ip>
Then, stop the RabbitMQ service, and kill any running epmd processes. Then, restart the RabbitMQ service. epmd should pick up the value of ERL_EPMD_ADDRESS from the environment.
If not, let me know.
Thanks,
Luke