[erlang-questions] How configure and debug Erlang networking

Hynek Vychodil <>
Sat Dec 19 15:15:21 CET 2009


Thanks, it was very helpful. It pointed me to proper documentation
including http://www.erlang.org/doc/apps/erts/inet_cfg.html which
cleared all of mine confusion.

On Sat, Dec 19, 2009 at 10:43 AM, Zoltan Lajos Kis <> wrote:
> 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
> net_kernel:connect(Host).
>
> Regards,
> Zoltan
>
> 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
>>
>>
>
>



-- 
--Hynek (Pichi) Vychodil

Analyze your data in minutes. Share your insights instantly. Thrill
your boss.  Be a data hero!
Try Good Data now for free: www.gooddata.com


More information about the erlang-questions mailing list