Send to Kindle
home » snippets » socat

See Also


Mini tutorials


Forwarding http from VirtualBox Host Only interface to localhost

sudo socat TCP6-LISTEN:80,reuseaddr,bind=,fork TCP6:localhost:80

Tunneling the Unix sockets via SSH

From: Tunneling the Unix sockets via SSH

# Connect STDIO of one program to a unix socket.
socat STDIO UNIX-CONNECT:/home/services/vms/vnc-socket

# Forward local port to remote unix socket.
socat TCP-LISTEN:5500 EXEC:'ssh "socat STDIO UNIX-CONNECT:/home/services/vms/vnc-socket"'
xtightvncviewer -encodings "copyrect tight hextile zlib corre rre raw" localhost:5500