Port Forwarding on Windows, Linux and macOS (with a Command Generator)

Local TCP/UDP port forwarding on all three platforms: Windows has it built in via netsh interface portproxy, while Linux and macOS use socat wrapped in a service so it survives reboots. A comparison table and a troubleshooting checklist are at the end. The parameters are easy to get wrong, so there is a command generator below — fill in the addresses and ports and copy the result. When you need port forwarding The cases I run into most often: ...

August 17, 2026 · 8 min · Vinkey