Tutorial :Nodes not talking



Question:

I am using Ubuntu 9 and I start two nodes with:

erl -name node1 -setcookie demo

and

erl -name node2 -setcookie demo

yet when I run "nodes()" the nodes do not see each other and it returns an empty list. Anyone know why?


Solution:1

Because they are not connected unless they communicate with each other, e.g. by one pinging the other:

(node1@<host>)> net_adm:ping(node2@<host>).

Note that if you checked the nodes with net_adm:names(), they would have been visible via epmd.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »