There are two machines: M1 with two ip addresses 192.168.5.47, 192.168.1.250. And M2 with ip 192.168.5.250.
I launch an erlang node on M1:
nik@nik-PC:~/erlsrc/test_mk$ erl -name '[email protected]' -setcookie cook
Erlang/OTP 22 [erts-10.6.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
Eshell V10.6.2 (abort with ^G)
([email protected])1>
Then, I'm making another node on M2 and try to ping M1:
nik2@nik2-PC:~$ erl -name '[email protected]' -setcookie cook
Erlang/OTP 22 [erts-10.6.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
Eshell V10.6.2 (abort with ^G)
([email protected])1>
([email protected])1> net_adm:ping('[email protected]').
pang
([email protected])2>
How to make a communication between nodes on remote machines if one of them has several ip addresses and launched as 'name@localhost' or '[email protected]'? Or it's better to use domain names?