javaakkaremote-actors

Akka remote actors from different networks


I have 2 systems on 2 different networks. One system is in a public cloud and the other system is on a PC. The problem is that i can't access the PC system remotely because, the PC system it has local ip as hostname (e.g. 192.168.1.140) and on cloud system i specified as destination system ip the ip from my public ip. And in the router i made a port forwarding to redirect the traffic that came on a specified port to the actor system. Below is the error that occurs on PC actors system:

[ERROR] [03/27/2015 14:57:54.712] [slave-port-akka.remote.default-remote-dispatcher-6] [akka.tcp://pc-system@192.168.1.140:20007/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Fxxx%40192.168.1.183%3A2005-0/endpointWriter] dropping message [class akka.actor.ActorSelectionMessage] for non-local recipient [Actor[akka.tcp://pc-system@my_public_ip:20007/]] arriving at [akka.tcp://pc-system@my_public_ip:20007] inbound addresses are [akka.tcp://pc-system@192.186.1.140:20007] 

Thank you, Marius!


Solution

  • Solved by creating a VPN and now is more secure and it's working perfectly!