I am using hazelcast 3.3 in my software for caching in clusters. I based my code on the following example Stackoverflow tcp hazelcast example. (Update 2) Now I face the following problem: The host I run my program on has various network cards (=> multiple IP Numbers). I would like to start various instances of my program on the same machine using different interfaces (IP Numbers) The tcp config for this seems to be
network.getInterfaces().setEnabled(true).addInterface("<MY IP NUMBER>");
No matter what IP I give here, on the OS side hazelcast always binds to 0.0.0.0 (all IPs). Is this wanted? I would expect that hazelcast only binds to a specific IP. Does hazelcast do the packet filtering on its own and therefore binds to all interfaces the same time? That means I cannot use the same port number for my various running program instances since the binding to 0.0.0.0 will of course fail starting the second client (which actually happens)