In the LAN, the general use of short node name to complete the short nodes of the whole unicom.
One of the prerequisites for full unicom is that the cookie is identical and the cookie is recorded in a file.
Two Erlang nodes on the same physical machine can be fully connected without additional configuration.
For Erlang nodes that are not on the same physical machine, you need to configure a cookie.
Execute erl-sname [email protected]on the command line of one of the physical machines and execute erl-sname on the shell of another physical machine [email protected]
Perform Auth:get_cookie () on the shell, respectively, to see if it is the same, and if different, set it to the same by Auth:set_cookie (node (), ' Yourcookie ').
Then execute net_adm:ping (othernode), Othernode is [email protected] or [email protected].
If the execution result is pong, it is successful and can be viewed through nodes ().
Erlang Node Interoperability View