socat is a flexible, multi-purpose relay tool. Its purpose is to establish a relationship between two data sources, where each data source can be a file, a Unix socket, UDP, TCP, or standard input.
This command line based utility that establishes two bidirectional byte streams and transfers
data between them. Because the streams can be constructed from a large set of different types of data sinks and sources (see address types), and because lots of address options may be applied to the streams, socat can be used for many different purposes.
This is free and open source software.
Features include:
- Many different types of channels socat can connect, including:
- Files.
- Pipes.
- Devices (serial line, pseudo-terminal, etc).
- Sockets (UNIX, IP4, IP6 – raw, UDP, TCP).
- SSL sockets.
- Proxy CONNECT connections.
- File descriptors (stdin, etc).
- The GNU line editor (readline).
- Programs.
- Combinations of two of these.
- TCP port forwarder (one-shot or daemon).
- External socksifier.
- Tool to attack weak firewalls (security and audit).
- Shell interface to Unix sockets.
- IP6 relay.
- Redirect TCP-oriented programs to a serial line.
- Logically connect serial lines on different computers.
- Establish a relatively secure environment (su and chroot) for running client or server shell scripts with network connections.
- Regarded as the advanced version of netcat.
Website: www.dest-unreach.org/socat
Support:
Developer: Gerhard Rieger
License: GNU General Public License v2.0
socat is written in C. Learn C with our recommended free books and free tutorials.
| Explore Linux | |
|---|---|
| Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category. | |
| In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality. | |
| The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions. | |
| Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others. | |
| Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems. | |
| Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks. | |
| Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems. | |
| Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux. | |
| Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools. | |
| Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux. | |
| Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux. | |

Please read our Comment Policy before commenting.