Port forwarding

Making a port on one machine reachable from another, usually through an SSH connection or a tunnel.

Updated November 23, 2026

ssh -L 3000:localhost:3000 server makes a server’s port 3000 open on your laptop. It works for one person at a time and only while the connection is up.

A preview URL is the shareable alternative: a public HTTPS address for the port, reachable from any device.