socat
Verified for current stable LTS
Socat Command: Forward Local Port To Remote
Use for forward local port to remote with Socat. Exact CLI syntax to forward local port to remote using Socat.
When to use this: Use for forward local port to remote with Socat.
Command Syntax
sudo socat TCP-LISTEN:80,fork TCP4:www.example.com:80 sudo socat TCP-LISTEN:80,fork TCP4:www.example.com:80 Live Command Builder
Final Command
sudo socat TCP-LISTEN:80,fork TCP4:www.example.com:80 Command Breakdown
sudo is the base executable for this command.
FAQ
Purpose: Exact syntax to forward local port to remote using Socat.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Socat Command: Create Connection Transfer Stdin
sudo socat - TCP4:www.example.com:80 Socat Command: Listen Port Ssl Print Stdout sudo socat OPENSSL-LISTEN:4433,reuseaddr,cert=./cert.pem,cafile=./ca.cert.pem,key=./key.pem,verify=0 STDOUT Socat Command: Listen Port Transfer Stdin sudo socat - TCP-LISTEN:8080,fork Socat Command: Receive Data From Multicast socat - UDP4-RECVFROM:<5000> Socat Command: Send Data Multicast Routing <echo "Hello Multicast"> | socat - UDP4-DATAGRAM:<224.0.0.1>:<5000>