Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 696 Bytes

Socat.md

File metadata and controls

26 lines (18 loc) · 696 Bytes

socat – multipurpose relay for bidirectional data transfer

Homepage: http://www.dest-unreach.org/socat/

Installation on Debian:

$ sudo apt install socat

Expose localhost-only things on network

For example if some service is bound only to the localhost interface:

$ sudo netstat -ntlp | grep 5900
tcp        0      0 127.0.0.1:5900          0.0.0.0:*               NASLOUCHÁ  119584/qemu-system- 

And you want to make it possible to connect to it from the network your computer is connected to:

$ socat TCP-LISTEN:5910,reuseaddr,fork TCP4:127.0.0.1:590