Thus, I had a problem using the InetAddress.getLocalHost.getHostAddressspecified machine to get the external IP address.
I really do it in Scala in a way - in the configuration file for Akka Remote Actors, by default it is used InetAddress.getLocalHost.getHostAddressto get the IP address of the machine, which I want, since I will deploy the participants to several machines. However, it seems that instead of an external IP address I want to return 127.0.0.1(since the remote participants must communicate with each other over the network).
The problem is that I cannot use any methods that I found on Google to get around this, since all of them seem to require setting up the code itself, whereas here I have no code to set up, DSL automatically uses InetAddress.getLocalHost.getHostAddress.
I read a few threads from a google search, that you can get around this by editing the host file or something like that? How to do it?
Thank! -kstruct
source
share