mARK bLOORE
mARK bLOORE

Reputation: 176

can i access a unix domain socket on a remote machine?

I have a Python process on a single box which creates a flock of mini servers, small Python processes which provide some specialized computation. Each of those creates and listens on a Unix domain socket using multiprocessing.connection.Listener ("file_path"), each with a different path, of course.

Is it possible to access a socket on a remote machine, with something like a path of unix://remote/file_path, or file://remote/file_path?

Using port numbers is not practical, since the set of mini servers is dynamic.

Upvotes: 7

Views: 5303

Answers (1)

nradk
nradk

Reputation: 700

Unix domain sockets are meant for inter-process communication within the same host machine. Data sent through these sockets are handled entirely inside the kernel. For communication between processes in different machines, you should use network sockets.

Upvotes: 11

Related Questions