You can limit the TCP ports used by Erlang to a specified interval using the following kernel application. Parameters:
erl -kernel inet_dist_listen_min 9001 inet_dist_listen_max 9005
You also need to enable the 4369TCP port since it is used by epmd . (This port can also be changed using an environment variable ERL_EPMD_PORT.)
source
share