Be clear about the fact that two actor systems can't have the same port. See #2389
(cherry picked from commit 0bd9aa1a6a48c84a73d7827b15a5178c1b616f43)
This commit is contained in:
parent
ab3c8e7ee4
commit
5b35438e65
3 changed files with 11 additions and 0 deletions
|
|
@ -43,6 +43,11 @@ As you can see in the example above there are four things you need to add to get
|
|||
communicate across the network.
|
||||
* Add port number - the port the actor system should listen on, set to 0 to have it chosen automatically
|
||||
|
||||
.. note::
|
||||
The port number needs to be unique for each actor system on the same machine even if the actor
|
||||
systems have different names. This is because each actor system has its own network subsystem
|
||||
listening for connections and handling messages as not to interfere with other actor systems.
|
||||
|
||||
The example above only illustrates the bare minimum of properties you have to add to enable remoting.
|
||||
There are lots of more properties that are related to remoting in Akka. We refer to the following
|
||||
reference file for more information:
|
||||
|
|
|
|||
|
|
@ -40,6 +40,11 @@ As you can see in the example above there are four things you need to add to get
|
|||
communicate across the network.
|
||||
* Add port number - the port the actor system should listen on, set to 0 to have it chosen automatically
|
||||
|
||||
.. note::
|
||||
The port number needs to be unique for each actor system on the same machine even if the actor
|
||||
systems have different names. This is because each actor system has its own network subsystem
|
||||
listening for connections and handling messages as not to interfere with other actor systems.
|
||||
|
||||
The example above only illustrates the bare minimum of properties you have to add to enable remoting.
|
||||
There are lots of more properties that are related to remoting in Akka. We refer to the following
|
||||
reference file for more information:
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ akka {
|
|||
|
||||
# (I) The default remote server port clients should connect to.
|
||||
# Default is 2552 (AKKA), use 0 if you want a random available port
|
||||
# This port needs to be unique for each actor system on the same machine.
|
||||
port = 2552
|
||||
|
||||
# (O) The address of a local network interface (IP Address) to bind to when creating
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue