erl -name server@johnsonlau.net -setcookie cookievalue
1. functions
rpc:call(RemoteNode, Module, Method, [Params]).
nl(Mod). % loads the module Mod on all connected nodes.
net_adm:ping(Node).
disconnect_node(Node).
nodes(). % returns a list of all other nodes on the network to which I'm connecting.
nodes(Arg).
2. epmd: Erlang Port Mapper Daemon
-names: List names registered with the currently running epmd
-port 4369: epmd runs on port 4369(TCP and UDP) by default
3. Register distributed Erlang to run on specified rang of ports
erl -name client@johnsonlau.net -setcookie my_cookie_value -kernel inet_dist_listen_min 30001 inet_dist_listen_max 30001