Distributed Erlang with WSL
Checklist
- Set the same erlang cookies (
~/.erlang-cookie
or:erlang.set_cookie :abc
) - On the WSL machine, use
ifconfig
to find out the IP address of the WSL machine - Start nodes with FQDN using their IP address as hostname:
iex --name main@[ip] -S mix [command]
- On the WSL machine, run
epmd -names
to find the port of the erlang node that has just been started - On the WSL host, run these commands in powershell: