A simple host and client script written in Elixir. Hosting a little Elixir quiz.
Run the following in two Terminal windows:
iex -r host.ex
iex -r client.ex
Run the following in two Terminal windows:
iex -r host.lan.ex
iex -r client.lan.ex
Please note that you need to correct the @host
module attribute within the client script file.
Also, when encountering Protocol ‘inet_tcp’: register/listen error: econnrefused
please run the following command first.
epmd -daemon
Enjoy!