You must also specify the hostname config property that the remoting will bind to.
akka.remote.netty.tcp.port.hostname=127.0.0.1 127.0.0.1 or localhost will of course only work if you run all nodes on the same host. The default is to use `InetAddress.getLocalHost.getHostAddress` if that property is not specified. The value of that is very environment specific. In your case it resolves to 192.168.0.108 Cheers, Patrik On Thu, Jan 9, 2014 at 4:26 AM, Peter Wolf <[email protected]> wrote: > Hi, > > I am experimenting with Remote Actors, and I want to run two systems on > the same machine-- Ping and Pong. > > I am using these properties for Pong > > -Dakka.actor.provider=akka.cluster.ClusterActorRefProvider > -Dakka.remote.netty.tcp.port=2553 > > Pong wants to talk to Ping. If I use a raw IP address it works fine > > val ping = system.actorSelection("akka.tcp:// > [email protected]:2552/user/ping") > > But it doesn't work if I use localhost or 127.0.0.1 > > val ping = system.actorSelection("akka.tcp://Ping@localhost > :2552/user/ping") > > What is the correct way to implement this so that it would run on any > machine? > > Thanks > Peter > > > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: http://akka.io/faq/ > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
