[erlang-questions] How configure and debug Erlang networking

Zoltan Lajos Kis <>
Sat Dec 19 10:43:49 CET 2009

The hosts file is .hosts.erlang, see: 
http://www.erlang.org/doc/man/net_adm.html#id2330060 .
net_adm:host_file(). (and net_adm:world().) will tell you if this file 
is used.

If you start epmd in debug mode ("epmd -d") you can see if the VMs 
properly connect.
erl_epmd:names() can also return the node names registered in epmd at 
any time.

Also you can try manually connecting to the other host by calling 


Hynek Vychodil wrote:
> Hello,
> I often stuck in problem with Erlang networking and I don't know how
> debug problem and solve it. For example I start VM with erl -sname
> server and than another one on same HW erl -sname client. I can see
>  and  node names in prompts and than I do
> ()1> net_adm:ping('').
> pang
> and got pang. What shall I do now? What is best practice to trace down
> networking problem? I know that there is some problem with my_host
> resolution but I would like know systematic way how to deal with it.
> Beside this I also remember that there is some Erlang specific
> networking and name resolving configuration and It was repeatly
> mentioned here in mailing list but I can't find proper search criteria
> to find it. I have spend more than hour searching documentation (erl,
> epmd, inets, ...) and this mailing list without success. It is really
> frustrating.
> I would appreciate any help with it. Also some mnemotechnic which help
> me in future will be welcome.
> With best regards

More information about the erlang-questions mailing list