socat TCP-LISTEN:8080,reuseaddr,fork TCP:192.168.1.10:80

Category: Local Network & Public Hosting

socat TCP-LISTEN:8080,reuseaddr,fork TCP:192.168.1.10:80

Forward a local port to another LAN host

socat is a Swiss-army data relay, and this listens on port 8080 locally and pipes every connection to the web server at 192.168.1.10:80. The fork option handles each client in its own process, and reuseaddr lets the port rebind instantly after a restart. It is a one-line port forwarder without firewall changes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.