I have two processes (Client and server) that communicate with each other using a Unix socket
/tmp/tm.ipc. Both processes (Client and Server) don't support TCP.
/tmp/tm.ipc -> Server
Now, I want to separate both processes to run on two different machines that run in the same subnet. Therefore, I want to build sort of a TCP bridge in between.
/tmp/tm-machine1.ipc -> TCP port 15432 ->
/tmp/tm-tm-machine2.ipc -> Server
I was thinking to use Socat, but this looks like that it only covers the server listening part.
socat -d -d TCP4-LISTEN:15432,fork UNIX-CONNECT:/tmp/tm.ipc
Now I want to connect the client's Unix socket to that port. How can I do that?