// glossary

Reverse tunnel

aka: reverse-proxy tunnel · inbound tunnel

A reverse tunnel makes a private server reachable from the public internet by having it dial outbound to a relay.

A reverse tunnel inverts the normal direction of network setup. Instead of waiting for inbound connections (which firewalls and NAT block), a process on the private server dials outbound to a public relay. The relay accepts inbound HTTP from the internet and ships those bytes back through the open outbound connection. From the public internet's perspective, your localhost is now reachable at a public URL.

Reverse tunnels are how services like ngrok and lrok work. The agent runs on your laptop, holds a long-lived connection to the relay, and proxies requests in real time. They're the right tool for webhook testing, OAuth-callback dev, and one-off "share my localhost" workflows.

Distinct from a forward tunnel (e.g. a VPN), where you initiate outbound to reach a private resource. Reverse means the private side initiates so a public resource can reach IT.

Read more

// shipping?

lrok gives your localhost a public HTTPS URL with a reserved subdomain on the free plan. Useful when this term comes up in a real integration:

$ curl -fsSL https://lrok.io/install.sh | sh
$ lrok http 3000

← all glossary terms