I am trying to perform port forwarding towards my Akka program where the client can communicate with the server over the Internet. I have configured my router and the port forwarding mechanism is working but there seems to be a problem with Akka.
The problem is that the client is unable to obtain the remote actor from the server. It keep coming out error at the server side that the recipient are different. The client is obtaining the remote actor through
loglevel = "INFO"
provider = "akka.remote.RemoteActorRefProvider"
enabled-transports = ["akka.remote.netty.tcp"]
hostname = ""
port = 5150
public-hostname = "22.214.171.124"
log-sent-messages = on
log-received-messages = on
The config parameter is "bind-hostname" for the interface you want to bind to, and "hostname" for the public IP. You also need to set "bind-port" for the local port to bind to, and "port" for the public IP.
Consult the documentation for more details: http://doc.akka.io/docs/akka/snapshot/scala/remoting.html