Skip to content

Instantly share code, notes, and snippets.

@elcritch
Created October 14, 2019 05:53
Show Gist options
  • Save elcritch/254d9d9794a484a6db718666c8eda640 to your computer and use it in GitHub Desktop.
Save elcritch/254d9d9794a484a6db718666c8eda640 to your computer and use it in GitHub Desktop.
Establish an IEx shell to another node in a Elixir Node (Erlang Node)
iex(node-a@192.168.1.2)1> Node.list()
[:"node-b@192.168.1.3"]
iex(node-a@192.168.1.2)1> :rpc.call :"node-b@192.168.1.3", IEx, :start, []
@elcritch
Copy link
Author

Connect to first server node:
:rpc.call Enum.at(Node.list,0), IEx, :start, []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment