[erlang-questions] Distributed Erlang

Ahmed Diaa ahmed.diaa@REDACTED
Mon Feb 25 18:28:06 CET 2008


Thanks Matthew
it was a problem of DNS , i solved it by editing the /etc/hosts file
adding entires for the 2 machines , ip address vs. host names
now it works
Thanks again
Best Regards 

-----Original Message-----
From: Matthew Dempsky [mailto:matthew@REDACTED] 
Sent: Monday, February 25, 2008 1:24 PM
To: Ahmed Diaa
Cc: Erlang Questions
Subject: Re: [erlang-questions] Distributed Erlang

(Please reply to the list so that others might answer as well.)

On 2/25/08, Ahmed Diaa <ahmed.diaa@REDACTED> wrote:
> Thanks mathew
>  i started erlang like this
>  On Machine 1 :
>  erl -name node1 -setcookie abc
>  On Machine 2 :
>  erl -name node2 -setcookie abc
>
>  so?

And what does node() return on each node?  Do the host name parts of
those resolve in DNS correctly?  Does IP allow traffic to pass between
them correctly?  E.g., if node() returns node1@REDACTED,
does "ping machine-1.ericsson.com" work on Machine 2?

Are there any firewalls between the machines that would block TCP
traffic to port 4369 or any higher ports?  E.g., does "telnet
machine-1.ericsson.com 4369" print "Connected to [something]." or does
it hang at "Trying [some IP]..."?

If TCP traffic to port 4369 is working, check the output of inet:i() on
machine 1, and look for a listening socket, something like:

    6    inet_tcp 0    0    <0.20.0> *:52549         *:*
ACCEPTING

In this case, what does "telnet machine-1.ericsson.com 52549"
(substituting 52549 as appropriate) do when run on Machine 2?



More information about the erlang-questions mailing list