<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>In addition to Erik's comments, one thing we have found on ec2 instances is that you have to be particularly careful to ensure erlang nodes come up with the nodes' public IP addresses (for example we've never had any luck with erl -sname myname..., only explicitly using erl -name myname@mypublicipadsress...)</div><div><br></div><div>It's worth a little hassle at the start - erlang and ec2 were made for each other :)</div><div><br></div><div>Adrian<br><br>Sent from my iPhone</div><div><br>On 31 Aug 2013, at 00:59, Erik Søe Sørensen <<a href="mailto:eriksoe@gmail.com">eriksoe@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div><div><div><div>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.<br>
</div>For you, this probably means that you need to open other ports.<br>Erlang can be told to use a port in a specific range - the "how" is described, for instance, here:<br>  <a href="https://sites.google.com/site/gettingalongwitherlang/home/distributed-programming/port-range-for-erlang-distribution-protocol">https://sites.google.com/site/gettingalongwitherlang/home/distributed-programming/port-range-for-erlang-distribution-protocol</a><br>
</div>the short version being: add the parameters<br>  -kernel inet_dist_listen_min ${FROM} inet_dist_listen_max ${TO}<br></div>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.<br>
<br></div>(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>".)<br>
<br></div>Hoping this helps<br></div>/Erik<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/30 David Chamard <span dir="ltr"><<a href="mailto:david.chamard@ubisoft.com" target="_blank">david.chamard@ubisoft.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Everyone,<br>
<br>
I am unable to get 2 erlang nodes to talk to each other through net_adm:ping.<br>
I am running on centos 6.3 and I am on amazon ec2.<br>
<br>
Port 4369 is open and I can telnet to it from both servers<br>
<br>
The cookies are the same when I do a get_cookie.<br>
When I try to do a net_adm:ping it hangs for a while and return a pang.<br>
I can resolve the hostname properly.<br>
<br>
Anyone could guide me on what the issue could be?<br>
<br>
Thank you,<br>
<br>
David<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>