[erlang-questions] problem setting up multi-node comm on Windows 7

Kresten Krab Thorup krab@REDACTED
Sat Jun 18 23:15:23 CEST 2011


Erlang will do a dns lookup and it must match the reverse; so if you don't control dns then it usually works to use name@REDACTED<mailto:name@REDACTED>.

On 18/06/2011, at 21.27, "Vlad Dumitrescu" <vladdu55@REDACTED<mailto:vladdu55@REDACTED>> wrote:

Hi,

On Sat, Jun 18, 2011 at 09:55, Icarus Alive <<mailto:icarus.alive@REDACTED>icarus.alive@REDACTED<mailto:icarus.alive@REDACTED>> wrote:
What I would like to do is to set up communication between these 2 instances --

C:> erl -name <mailto:abc@REDACTED> abc@REDACTED<mailto:abc@REDACTED> -setcookie erlide
C:> erl -name <mailto:xyz@REDACTED> xyz@REDACTED<mailto:xyz@REDACTED> -setcookie erlide

however, when I try --

(<mailto:abc@REDACTED>abc@REDACTED<mailto:abc@REDACTED>)6>
net_adm:ping('<mailto:xyz@REDACTED>xyz@REDACTED<mailto:xyz@REDACTED>').
pang
(<mailto:abc@REDACTED>abc@REDACTED<mailto:abc@REDACTED>)7> nodes().
[]

I can successfully do this:-
C:> ping -4 <http://FELIX.somedomainsomewhere.com> FELIX.somedomainsomewhere.com<http://FELIX.somedomainsomewhere.com>
C:> tracert <http://FELIX.somedomainsomewhere.com> FELIX.somedomainsomewhere.com<http://FELIX.somedomainsomewhere.com>
which shows that the domain-name resolves fine.

Instead of "-name" if I do the same experiment with "-sname" and drop
the usage of host.FQDN, the result is same, i.e. a "pang" !

How do I get it to ping successfully ?

I checked on my machine and I got the same problem between two Erlang nodes. The Java node connects fine because it doesn't care about a long name being a FQDN or not.

In my case, the problem was that I have the Home edition and I'm not connected to any domain. I fixed it by editing c:\windows\system32\drivers\etc\hosts and adding an entry like
192.168.1.2 mypc mypc.localdomain

This lets me connect Erlang nodes that use mypc.localdomain as -name.

My guess is that it is something similar in your case, please check this file and see what it contains.

regards,
Vlad


_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED<mailto:erlang-questions@REDACTED>
http://erlang.org/mailman/listinfo/erlang-questions


More information about the erlang-questions mailing list