Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which TCP port does Erlang use for connecting to a remote node?

Tags:

port

tcp

erlang

I need to open a firewall port so that I can connect from one Erlang node to another. Is there a standard port?

like image 514
yazz.com Avatar asked Mar 03 '10 07:03

yazz.com


People also ask

What is Erlang EPMD?

Erlang Port Mapper Daemon (EPMD) EPMD (Erlang Port Mapper Daemon) messages are the messages sent between Erlang nodes and the empd process. The message formats are derived from the * lib/kernel/src/erl_epmd.* files as part of the Erlang distribution available from http://www.erlang.org/

What is epmd application?

The erlang port mapper daemon is used to coordinate distributed erlang instances. His job is to keep track of which node name listens on which address. Hence, epmd map symbolic node names to machine addresses. This is used by default on RabbitMQ and CouchDB installations.


1 Answers

You can limit the TCP ports used by Erlang to a specified interval using the following kernel app. parameters:

erl -kernel inet_dist_listen_min 9001 inet_dist_listen_max 9005

You also need to enable the 4369 TCP port, as it is used by epmd. (This port can also be changed by the ERL_EPMD_PORT environment variable.)

like image 126
Zed Avatar answered Sep 28 '22 06:09

Zed