--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/v7fQf4Mx77MJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Roland Kuhn
Typesafe – The software stack for applications that scale.
twitter: @rolandkuhn
Hi Dima,the usefulness of binding to 0.0.0.0 depends on why you are trying to do that. If you want to save yourself the hassle of configuring the actor systems with concrete IPs, then you can achieve that also by obtaining the “right” IP programmatically and passing that into the ActorSystem’s config parameter, e.g.ActorSystem("mySystem", ConfigFactory.parseString("akka.remote.netty.hostname=1.2.3.4").withFallback(ConfigFactory.load()))How to get the right IP is specific to your situation, depending on the circumstances it might work to use InetAddress.getLocalHost.getHostAddress.
Using 0.0.0.0 might work for binding to all interfaces, but it will not work when some other system tries to reply, because 0.0.0.0 is not a valid target IP. You have to tell the system which IP it should advertise to its partners.