[erlang-questions] Erlang inter node communication issue

Erik Søe Sørensen <>
Sat Aug 31 01:59:02 CEST 2013


For one thing, you should be aware that while EPMD is part of the the
process, and therefore that it's true that its port should be accessible,
the inter-node connection does not go through EPMD.
For you, this probably means that you need to open other ports.
Erlang can be told to use a port in a specific range - the "how" is
described, for instance, here:

https://sites.google.com/site/gettingalongwitherlang/home/distributed-programming/port-range-for-erlang-distribution-protocol
the short version being: add the parameters
  -kernel inet_dist_listen_min ${FROM} inet_dist_listen_max ${TO}
If I'm guessing correctly, you'll need to pick a port range, add those
parameters to "erl", and open for the ports in that range.

(To find out if I'm guessing correcly: run "epmd -names" on host A; this
will tell you the port number of your Erlang node. Then, on host B, check
if you can connect to that port, using e.g. "telnet A <port>".)

Hoping this helps
/Erik


2013/8/30 David Chamard <>

> Hi Everyone,
>
> I am unable to get 2 erlang nodes to talk to each other through
> net_adm:ping.
> I am running on centos 6.3 and I am on amazon ec2.
>
> Port 4369 is open and I can telnet to it from both servers
>
> The cookies are the same when I do a get_cookie.
> When I try to do a net_adm:ping it hangs for a while and return a pang.
> I can resolve the hostname properly.
>
> Anyone could guide me on what the issue could be?
>
> Thank you,
>
> David
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130831/e06a15fd/attachment.html>


More information about the erlang-questions mailing list