Nick Saw
Nick Saw

Reputation: 507

Erlang node communication - port forwarding

I have two erlang clients:

And one remote erlang server with global IP address “externalIP1”:

server@“externalIP1”

To connect the clients and the server by a two-way communication, I’m going to forward client machines through the second global IP address “externalIP2” on my router.

  1. Which ports do I have to forward for The clients?
  2. How to name erlang client nodes? After the forwarding actually they’ll be at one IP address for remote nodes!
  3. How to tell to the server something like “work with ports .., .., .., during communication with node X”?

Thanks in advance!

Upvotes: 1

Views: 381

Answers (1)

Port forwarding ? you mean NAT or SSH ?

I feel using SSH port forwarding is a way more easier to setup for erlang distribution . Please check the third answer in Run Erlang Observer with ssh port forwarding

Or else you alternatively try epmdless Erlang environment using Docker and this aviods making any addational network setup other than Docker's one

For it, Please check this

https://www.erlang-solutions.com/blog/erlang-and-elixir-distribution-without-epmd.html

Upvotes: 2

Related Questions