Get Simple Remote Akka Application Running

后端 未结 1 644
借酒劲吻你
借酒劲吻你 2021-01-05 17:56

I am trying to set up a simple server/client akka (using Akka 2.0.3) application, but it failed to connect. Beforehand here is the basic code:

import com.ty         


        
1条回答
  •  情话喂你
    2021-01-05 18:08

    localhost usually means 127.0.0.1, which is only one of the possibly many interfaces (cards) in a computer. The server binding to localhost won't receive connections connecting to the other interfaces (including the one with the external address).

    You should either specify the external address in the server, or 0.0.0.0 which means "bind to all interfaces".

    0 讨论(0)
提交回复
热议问题