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://email@example.com:2551#-4630113785883271967] addressed to unknown local address [akka://firstname.lastname@example.org:2551]. Local address is [akka://email@example.com: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?