Livebook could not start distributed node (Windows)

I have this problem for a long time
But from time to time, restarting the Windows system solves the problem

> livebook server
ERROR!!! [Livebook] could not start distributed node: {{:shutdown, {:failed_to_start_child, :net_kernel, {:EXIT, :nodistribution}}}, {:child, :undefined, :net_sup_dynamic, {:erl_distribution, :start_link, [[:livebook_ivs6vf5a, :shortnames, 15000], false, :net_sup_dynamic]}, :permanent, false, 1000, :supervisor, [:erl_distribution]}}
> iex --sname foo
Protocol 'inet_tcp': register/listen error: econnrefused

I also checked different ports like 80 and …
But I still have problem
If you have a solution, thank you for letting me know
Thanks

I’ve had this too. IIRC, running epmd.exe -kill and possibly killing and restarting epmd does the trick.

1 Like

In case it helps someone (or a future version of myself), here’s what resolved this nodistribution error on Windows for me

> livebook server
ERROR!!! [Livebook] could not start distributed node: {{:shutdown, {:failed_to_start_child, :net_kernel, {:EXIT, :nodistribution}}}, {:child, :undefined, :net_sup_dynamic, {:erl_distribution, :start_link, [%{clean_halt: false, name: :livebook_uc3eboai, name_domain: :shortnames, net_tickintensity: 4, net_ticktime: 60, supervisor: :net_sup_dynamic}]}, :permanent, false, 1000, :supervisor, [:erl_distribution]}}

Running iex --sname foo prompted me to approve epmd.exe to my firewall and that fixed it.

Rerunning livebook server worked this time around.