> On 15 Nov 2015, at 16:01, Alex Wouda <[email protected]> wrote:
> 
> Thanks. 
> 
> Also I needed the bind-port and port to be the same.

That’s because of the way you forward the ports: 9100:9100. The second one is 
the container port. If you set that to 2552, you can use bind-port = 2552.

Heiko

> I do not get actually get why yet, but for now my app is working.
> 
> 
> This config works.
> 
> 
> akka {
>   actor {
>     provider = "akka.remote.RemoteActorRefProvider"
>   }
>   remote {
>       enabled-transports = ["akka.remote.netty.tcp"]
>       netty.tcp {
>        port = 9100
> 
>        bind-hostname = ${dockerIp} # internal (bind) hostname // or remote ip
>        bind-port = 9100              # internal (bind) port // must be same 
> as it seems to port
> 
>       }
>     }
>   }
> 
> 
> regards,
> 
> Alex
> 
> 
> 
> 
> On Sunday, November 15, 2015 at 2:59:16 PM UTC+1, Heiko Seeberger wrote:
> 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 <awo...@ <>gmail.com 
>> <http://gmail.com/>> 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 
>> <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 akka-user+...@ <>googlegroups.com <http://googlegroups.com/>.
>> To post to this group, send email to akka...@ <>googlegroups.com 
>> <http://googlegroups.com/>.
>> 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/ <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