What is socat?
socat is made by Gerhard Rieger. Command-line utility for creating and relaying bidirectional byte streams between two endpoints (e.g., TCP/UDP sockets, UNIX domain sockets, files, pipes, PTYs/serial devices, or programs), enabling flexible proxying, port forwarding, and protocol bridging including optional SSL/TLS support.
What socat does
Command-line utility for creating and relaying bidirectional byte streams between two endpoints (e.g., TCP/UDP sockets, UNIX domain sockets, files, pipes, PTYs/serial devices, or programs), enabling flexible proxying, port forwarding, and protocol bridging including optional SSL/TLS support.
- Relays data between two independent endpoints as bidirectional byte streams
- Supports many endpoint/address types including TCP, UDP, IP (v4/v6), UNIX domain sockets, files, pipes, devices/serial lines, and programs
- Can operate as client or listener/server (including handling multiple connections via fork)
- Supports SSL/TLS via OpenSSL address types/options
- Provides traffic dumping and debugging/tracing options
Category: Network Management Tools. socat is open source and free to use.
What teams use it for
- Port forwarding and relaying between TCP/UDP endpoints
- Proxying/bridging between different transport types (e.g., TCP to UNIX socket, TCP to serial/PTTY)
- Testing and troubleshooting network services by simulating clients/listeners and piping data
What it overlaps with
These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.
Questions buyers ask
What does socat do?
Command-line utility for creating and relaying bidirectional byte streams between two endpoints (e.g., TCP/UDP sockets, UNIX domain sockets, files, pipes, PTYs/serial devices, or programs), enabling flexible proxying, port forwarding, and protocol bridging including optional SSL/TLS support.
How common is socat in large enterprises?
Samplify finds socat in about 2 in 10 of the large enterprise software estates it has analysed.
Is socat free?
socat is open source and free to use.
What can replace socat?
Other tools in the same category include Wireshark, PingInfoView, Advanced IP Scanner, Finger.
Do we already own something that does what socat does?
Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.
Paying twice for the same job?
Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.
Where this comes from
Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with Gerhard Rieger.