Should work on windows too. It just checks if the worker TCP connection is on the same host. A non-exported function only used by DArray in shmem mode.