[erlang-questions] Messenger example

Éric Pailleau <>
Thu Apr 23 07:09:28 CEST 2015


Hi,
You just need to give a different name for both nodes, let's say n1 and n2.
'erl -sname n1' for the first
'erl -sname n2' for the second
Verify both nodes has the same cookie. 

Regards


Le 23 avr. 2015 01:27, nat n <> a écrit :
>
> I am having trouble running the example from this tutorial:
> http://www.erlang.org/doc/getting_started/conc_prog.html#id67907
> In specifics, the "A Larger Example" and the one before that.
>
> I have two computers on the same network that are running Mininet/Ubuntu (using Virtual Box).
> What confuses me is this: "(Note: erl -sname assumes that all nodes are in the same IP domain and we can use only the first component of the IP address, if we want to use nodes in different domains we use -name instead, but then all IP address must be given in full.)"
> How should I then call "erl", what options need to be placed when starting erlang?  


More information about the erlang-questions mailing list