dest-unreach / socat

socat - Multipurpose relay


what: "netcat++" (extended design, new implementation)
OS:   AIX, BSD, HP-UX, Linux, Solaris e.a. (UNIX)
lic:  GPL2
inst: tar x...; ./configure; make; make install
doc:  README; socat.html, socat.1;
ui:   command line
exa:  socat TCP6-LISTEN:8080,reuseaddr,fork
keyw: tcp, udp, ipv6, raw ip, unix-socket, pty, pipe, listen, socks4, socks4a,
      proxy-connect, ssl-client, filedescriptor, readline, stdio,
      exec, system, file, open, tail -f, termios, setsockopt, chroot,
      fork, perm, owner, trace, dump, dgram, ext3, resolver, datagram,
      multicast, broadcast, interface, socket, sctp, generic, ioctl

What's new?

2022-10-30: Socat version is another bug fix release. It fixes UDP-RECVFROM failures and a couple of other bugs.

2022-01-08: Socat version fixes the TCP_INFO issue that broke building on non-Linux platforms. Furthermore, building on AIX works again. A few more corrections and improvements have been added.

2021-10-31: Socat version fixes a lot of bugs, e.g., for options -r and -R.

2021-01-10: Socat version fixes compilation on 32 bit systems and file transfer with OpenSSL.

2021-01-04: Socat version fixes a couple of bugs including a very theoretical security issue, restauration of DTLS using UDP, some porting issues, and last but not least several new features: VSOCK support, OpenSSL SNI, raw data dump, and more. See file CHANGES and Release Notes.
Thanks to all contributors for their invaluable patches!


2020-01-05: Socat version fixes a few bugs most of which were regressions, see CHANGES. All people that sent feature contributions or recommended new features: Sorry, this is only a bug fix and porting release. Please be patient!

2015-04-06: Socat version 2 beta 8 (or bz2) fixes the possible denial of service attack (CVE-2015-1379), contains all fixes introduced up to and corrects a few version 2 specific issues.

Get it!

You can download socat in source form (.gz, .bz2). Feel free to check the md5 or sha256 hashes.

Git repository containing socat and all later version 1 releases is available.

There is a page with socat patches and contributions.


Classical documentation:

Mini tutorials:


If you have more questions, please contact