What port forwarding does
Port forwarding lets you create a secure tunnel through your SSH connection so apps on your computer and services on a remote server can talk to each other without opening extra firewall ports on the internet:
- Local forwarding opens a private port on your device and sends anything that connects to it through SSH to a service on the remote network (great for reaching a private database or internal web app).
- Remote forwarding opens a port on the SSH server and sends traffic back to a service running on your device (helpful when testing a webhook or showing a local project to a teammate on the server).
- SOCKS5 proxy opens a local proxy port on your native device so compatible apps can route their network requests through the SSH server dynamically.
Local and SOCKS5 tunnels require a supported native app on your device because a web browser cannot open local network listener ports. If you only need to view an internal website or dashboard, you can also use the built-in Leap Browser and private network routing without setting up a manual port forward.

Start a tunnel in a few steps
- Connect to your server and open the Port Forwarding tab in the workspace.
- Pick Local, Remote or SOCKS5 depending on which direction traffic should flow.
- Fill in the local port and destination address. Local and SOCKS5 listeners stay bound to
127.0.0.1(loopback) on your device so other computers on your Wi-Fi cannot connect to them. - Start the tunnel and check that it appears under Active tunnels.
- Open your local app or browser and connect to the forwarded port.
- Click Stop tunnel when you are done. Tunnels also close automatically when you disconnect from the SSH session.
If you save a tunnel as a preset for future sessions, check the Auto-start on connect toggle so tunnels only start automatically when you want them to.
Helpful safety tips
When you use remote forwarding, LeapTerm asks the SSH server to listen only on its own local loopback address. However, the server's GatewayPorts setting in its SSH configuration can override this and expose the port more widely, so check with your server administrator before forwarding sensitive local services.
Remember that a port tunnel only carries network traffic—make sure the database, dashboard or app at the other end still uses its own password or sign-in protection.
SSH agent forwarding is a separate, optional setting for advanced workflows where a trusted remote server needs to use your SSH keys to reach another machine. Keep it turned off unless you specifically need it for a server you trust. See connection routes and privacy boundaries for more details.