To config my Akka cluster, I’d like to use “0.0.0.0” to config hostname to avoid bother what specific local IP address is. But when I set hostname to “0.0.0.0” and set seed-nodes pointing to a local IP address, like the following screenshot shows:
then I got the following error output, showing seed node can’t be connected:
Dropping Handshake Request from [akka://director-engine@0.0.0.0:2551#-4630113785883271967] addressed to unknown local address [akka://director-engine@10.34.19.162:2551]. Local address is [akka://director-engine@0.0.0.0:2551]. Check that the sending system uses the same address to contact recipient system as defined in the ‘akka.remote.artery.canonical.hostname’ of the recipient system.
It only works if I use specific IP address in hostname as follows:
Though it works, it’s very tedious as I have to use different config file for different cluster nodes. I’d like to use “0.0.0.0” to avoid it. Can I?
Thanks!