[erlang-questions] receiving pang from net_adm:ping/1 even though net_adm:names/0 shows the other node

Dennis Byrne <>
Sun Apr 19 19:03:57 CEST 2009


I tried that as well but went with the simpler example to the list.
Here's what -name does ...

>From Console A ...

$ erl -name foo -setcookie c

>From Console B ...

$ erl -name bar -setcookie c
()1> net_adm:names().
{error,nxdomain}
()2> net_adm:ping().
pong
()3> net_adm:ping().
pang

>From Console C ...

$ /usr/local/lib/erlang/erts-5.6.4/bin/epmd -names
epmd: up and running on port 4369 with data:
name bar at port 51557
name foo at port 51555

Same problem, but notice that net_adm:names/0 no longer works correctly.

Dennis Byrne

On Sun, Apr 19, 2009 at 11:54 AM, Per Melin <> wrote:
> On Sun, Apr 19, 2009 at 4:46 PM, Dennis Byrne <> wrote:
>> >From console A ...
>>
>> $ erl -sname foo -setcookie c
>> ()1>
>>
>> >From console B ...
>>
>> $ erl -name bar -setcookie c
>> ()1>
>
> What if you don't start one node with -sname and the other with -name?
>



-- 
Dennis Byrne



More information about the erlang-questions mailing list