Not able to connect to a remote node

Hi,

i am using a Ubuntu image docker container and have installed elixir on container. I want to connect my local node with the remote node inside the container.

I have tried this

#local machine
iex --name machine1@192.168.1.6 --cookie somecookie

#docker container
iex --name machine2@172.17.255.255 --cookie somecookie

When i try to connect from machine1 via Node.connect(:"machine2@172.17.255.255") i get false. What am i doing wrong here ?

Thanks

1 Like

Make sure you can ping your local machine from the Docker container (not a Docker expert, but you need some config for that). Also make sure to expose the 4369 port for epmd to work.

2 Likes