Ok, it seems that specifying
loc_proc = addprocs(4; restrict = false)
solves the issue.
As stated in the documentation
addprocs(np::Integer; restrict=true, kwargs...)
Launches workers using the in-built
LocalManagerwhich only launches workers on the local host. This can be used to take advantage of multiple cores.addprocs(4)will add 4 processes on the local machine. Ifrestrictistrue, binding is restricted to127.0.0.1. Keyword argsdir,exename,exeflags,topology,lazyandenable_threaded_blashave the same effect as documented foraddprocs(machines).