Alex,

Indeed you are overlooking something: the loopback interface (localhost aka 
127.0.0.1) is only for local access, i.e. from the local machine. Why don’t you 
bind to 0.0.0.0 instead?

Cheers
Heiko

--

Heiko Seeberger
Home: heikoseeberger.de <http://heikoseeberger.de/>
Twitter: @hseeberger <https://twitter.com/hseeberger>
Public key: keybase.io/hseeberger <https://keybase.io/hseeberger>
> On 15 Nov 2015, at 14:33, Alex Wouda <[email protected]> wrote:
> 
> Hi,
> 
> I'm trying to get a simple app running in docker, this works. But then I'm 
> not able to access the remote akka system from the host. 
> 
> 
> Using scala 2.11.7 and Akka 2.4.0
> Whole project is available here: https://github.com/awouda/akka-docker.git
> 
> 
> My 'server system'  configuration:
> 
> akka {
>   actor {
>     provider = "akka.remote.RemoteActorRefProvider"
>   }
>   remote {
>       enabled-transports = ["akka.remote.netty.tcp"]
>       netty.tcp {
>        hostname = ${dockerIp}
>        port = 9100
> 
>        bind-hostname = "localhost" # internal (bind) hostname
>        bind-port = 2551              # internal (bind) port
> 
>       }
>     }
>   }
> 
> dockerIp is provided by a start.sh script.
> 
> The provided ip is resolved in the host and passed to the client application.
> 
> Also the port in docker is exposed by putting -p 9100:9100.
> 
> I must overlook something, or still have misconfiguration, if anyone has some 
> pointers; appreciated.
> 
> tia,
> 
> Alex
> 
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/akka-user 
> <http://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      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/d/optout.

Reply via email to