# 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](https://envhaven.com/glossary/preview-url) is the shareable alternative: a public HTTPS address for the port, reachable from any device.

## Keep reading

- [Preview URL](https://envhaven.com/glossary/preview-url)
- [Localhost tunnel](https://envhaven.com/glossary/localhost-tunnel)
- [SSH](https://envhaven.com/glossary/ssh)

Source: https://envhaven.com/glossary/port-forwarding
