Contacting with net_adm:ping/1

Chandrashekhar Mullaparthi Chandru.Mullaparthi@REDACTED
Thu Nov 18 17:12:40 CET 1999

> I'm having a problem contacting nodes in Linux hosts.
> Imagine I launch node_1@REDACTED, node_2@REDACTED and node_1@REDACTED, being host_2 and host_2 linux based hosts.
> When I try the net_adm:ping(node_2@REDACTED) in node_1@REDACTED the result is pong. Ok!
> Then I try net_adm:ping(node_1@REDACTED) in node_1@REDACTED and (most of the times) the result is pang.
> If the same experience is done using host_2 as a Windows 98 based host, the ping result is ALWAYS pang.
> Both experiences consider using:
> - Always the same hosts;
> - The same network configuration;
> - 'nocookie' in all the nodes;
> - Exclusive short node names or exclusive long nodes names (no short/long node names simultaneously).
> Why?...

For ping to work across machines, you have to use long node names for both
your hosts. So, you will have to use:

host1> erl -name host1
host2> erl -name host2

If it still doesn't work, use the normal ping and see if the
machines are reachable from each other.


More information about the erlang-questions mailing list