Not able to connect to a remote node


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@ --cookie somecookie

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

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


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.