Periodically macOS decides that my Erlang apps are not to be allowed access to the local network. This is despite me marking iTerm2 as an allowed app – and indeed ping
in the terminal works just fine for local IPs. But running any Erlang app doesn’t. I get errors such as FailedToConnect(Posix("ehostunreach"), Posix("nxdomain"))
(if in Gleam), or:
4> httpc:request(get, {"http://192.168.xxx.yyy", []}, [], []).
{error,{failed_connect,[{to_address,{"192.168.xxx.yyy",80}},
{inet,[inet],ehostunreach}]}}
I’ve fixed this issue once already, back in April, but for the life of me I can’t recall how. I’ve already tried sudo tccutil reset All com.googlecode.iterm2
, to no avail. And as said, ping
works just fine, it’s Erlang inside the terminal that doesn’t.
I don’t see beam.smp
or anything Erlang related in the local network access settings panel.
I made this topic to:
- get help if anyone knows what to try,
- make this issue more searchable online, and
- document what I do for myself for next time, because I’m bound to forget again.
So if anyone has any ideas, let me know. Otherwise I’ll keep trying things and come back to this thread when I get it fixed.