socat 

Send to Kindle
home » snippets » socat



See Also

Documentation

Mini tutorials

Bag

Forwarding http from VirtualBox Host Only interface to localhost

sudo socat TCP6-LISTEN:80,reuseaddr,bind=192.168.56.1,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 root@tee.schottelius.org "socat STDIO UNIX-CONNECT:/home/services/vms/vnc-socket"'
xtightvncviewer -encodings "copyrect tight hextile zlib corre rre raw" localhost:5500