# tunnl.gg

> A free localhost tunnel with a stable HTTPS URL. Test webhooks, share app previews and receive OAuth callbacks with one SSH command. No client install, and random URLs need no signup. Stable URLs are tied to your SSH key, registered to a free account; the server is open source (MIT).

## Quick start

Run this in any terminal, replacing `3000` with the port your app listens on:

```bash
ssh -t -R 80:localhost:3000 proxy.tunnl.gg
```

The server replies with a public URL such as `https://happy-tiger-a1b2c3d4.tunnl.gg` and prints a QR code so you can open it on a phone. The tunnel stays up while the SSH session is open.

- `-t` allocates a terminal so the server can show you the URL. It is required.
- `-R 80:localhost:3000` asks the SSH server to forward its port 80 to `localhost:3000` on your machine.
- `proxy.tunnl.gg` is the tunnl.gg SSH server.

## Stable URLs: the same URL every time

Connect as the `stable` user to get a URL tied to your SSH key that stays the same across reconnects:

```bash
ssh -t -R 80:localhost:3000 stable@proxy.tunnl.gg
```

- The key must be registered to a free tunnl.gg account (new keys now, keys already in use from December 1, 2026): run `ssh -t link@proxy.tunnl.gg`, open the link it prints and sign in with your email (no password). It takes about 30 seconds and the URL stays the same. Create a key with `ssh-keygen -t ed25519` if you don't have one.
- Stable URLs need an account so that every persistent URL has an accountable owner. Random URLs stay fully anonymous.
- The subdomain is derived from your public key with HMAC-SHA256 and a server-side secret, so it is stable but can't be computed from your public key alone.
- Only someone holding your private key can use your URL. Reconnecting with the same key replaces an older connection, so each key has one live tunnel at a time.
- The free name is generated (for example `brave-fox-7c41e09b.tunnl.gg`), not chosen. Pro lets you reserve a name such as `myapp.tunnl.gg`; domains outside tunnl.gg are not available.
- Use a separate key for each additional stable URL. With several keys loaded, pin one with `-i ~/.ssh/key -o IdentitiesOnly=yes`.
- Details: https://tunnl.gg/stable-urls.md

## Free request inspector and replay

See what hit your localhost and what your app answered. Create a free account, add your SSH key with `ssh -t link@proxy.tunnl.gg`, and connect as `pro@proxy.tunnl.gg` to inspect headers and payloads and replay requests from the dashboard. No subscription required. Random URLs still need no account.

The latest 50 requests are held in memory until the tunnel closes. Free tunnel limits apply. [Explore the request inspector](/request-inspector) or [get the free inspector](/dashboard/).

## How it works

1. You open an outbound SSH connection with reverse port forwarding (`-R`). No router ports, firewall rules or background daemon are needed.
2. tunnl.gg assigns a subdomain (random, or stable per SSH key) and serves it over HTTPS with its wildcard certificate.
3. Each request to that subdomain is checked (phishing interstitial, rate limits) at the tunnl.gg edge, then passed down your SSH connection to your local port.
4. Closing the terminal closes the tunnel and the URL stops working.

TLS terminates at the tunnl.gg edge. Traffic travels from the edge to your machine inside your SSH connection, so it is not end-to-end encrypted between the visitor and your app.

## Use cases

- **Webhook testing**: receive Stripe, GitHub or Slack webhooks on your own machine without deploying. Use a stable URL so the endpoint is registered once. `ssh -t -R 80:localhost:3000 stable@proxy.tunnl.gg`
- **Demo sharing**: send a client or teammate a live link to a dev server, hot reload included. `ssh -t -R 80:localhost:5173 proxy.tunnl.gg`
- **Testing on real phones**: open a dev build on a device over mobile data by scanning the QR code in your terminal. `ssh -t -R 80:localhost:8080 proxy.tunnl.gg`
- **OAuth and CI callbacks**: give OAuth providers and CI jobs a real HTTPS redirect URL that reaches your local environment. `ssh -t -R 80:localhost:4000 proxy.tunnl.gg`

## Features

- A random, memorable subdomain per connection (for example `https://happy-tiger-a1b2c3d4.tunnl.gg`)
- Stable URLs: the same subdomain on every connection, tied to your SSH key, with a free account (`stable@proxy.tunnl.gg`)
- HTTPS on every tunnel, with a wildcard certificate
- WebSocket support
- QR code of the URL printed in the terminal
- Phishing protection: first-time browser visitors see a warning page (once per day per site)
- Rate limiting and abuse protection
- No authentication for random URLs and no client configuration
- Open-source server you can self-host: https://github.com/klipitkas/tunnl.gg

## Limits

| Limit | Value |
| --- | --- |
| Tunnels per IP | 3 at once |
| Requests per visitor | 25/s, bursts up to 200 (per visitor IP, per tunnel) |
| Requests per tunnel | 50/s, bursts up to 400 (across all visitors) |
| Request and response body | 64 MB each |
| Daily transfer | 5 GB per IP, resetting at 00:00 UTC; stable URLs count against both the IP and the SSH key |
| Proxied request idle timeout | 2 minutes without data |
| WebSocket transfer | 1 GB per direction, per connection |
| WebSocket idle timeout | 2 hours |
| WebSockets | 100 per tunnel, 20 per visitor IP |
| New SSH connections | 10 per minute per IP |
| Inactivity timeout | 2 hours with no requests or open WebSockets |
| Tunnel lifetime | 24 hours at most |

Requests over a limit get HTTP 429. Repeated abuse leads to a temporary 1-hour IP block.

## Privacy and logging

tunnl.gg never stores the content of your traffic. Transient connection logs (IP addresses, timestamps, bandwidth) are kept for abuse prevention and deleted within 30 days. See the privacy policy: https://tunnl.gg/privacy.md

## Comparison

| Feature | tunnl.gg | ngrok | Cloudflare quick tunnel | localhost.run |
| --- | --- | --- | --- | --- |
| Nothing to install | Yes | No, needs its agent | No, needs cloudflared | Yes |
| No account needed | Random URLs only | No | Yes | Yes |
| HTTPS by default | Yes | Yes | Yes | Yes |
| WebSockets | Yes | Yes | Yes | Yes |
| Open-source server you can self-host | Yes | No | Client only | No |
| Same URL every time | Free, with an SSH key on a free account | Free assigned dev domain, account required | No; use a named tunnel instead | Paid plans |
| Choose your own subdomain name | Pro plan | Paid plans | No; use a named tunnel + own domain | Paid plans |
| Price | Free; Pro $6/mo or $60/year | Free tier + paid plans | Free | Free tier + paid plans |

Compare the setup, URL behavior and tradeoffs of [ngrok](/ngrok-alternative), [Pinggy](/pinggy-alternative), [Serveo](/serveo-alternative), [Cloudflare Tunnel](/cloudflare-tunnel-alternative) and [localhost.run](/localhost-run-alternative). Start with the [localhost tunnel comparison](/compare).

## FAQ

**What is tunnl.gg?** A free, open-source localhost tunnel. Running `ssh -t -R 80:localhost:3000 proxy.tunnl.gg` gives the web server on port 3000 of your machine a public HTTPS URL, such as `https://happy-tiger-a1b2c3d4.tunnl.gg`, for as long as the SSH session is open. It uses the SSH client built into macOS, Linux and Windows 10 or later: nothing to install, no auth token, and no account for a random URL.

**Is tunnl.gg free?** Yes: it's a free SSH tunnel, with fair-use limits: 3 tunnels at once per IP, 5 GB of transfer a day, and tunnels that close after 2 hours idle or 24 hours in all (see the [full list of limits](/docs#limits)). WebSockets and hot reload work too. [Pro](/pricing) removes the time limits and the warning page, doubles the daily transfer and lets you pick your own subdomain names. The server is [open source](https://github.com/klipitkas/tunnl.gg) under the MIT license, so you can also run your own.

**Can I keep the same URL, or choose the name?** Connect as `stable@proxy.tunnl.gg` and your SSH key gives you the same URL every time, for example `https://brave-fox-7c41e09b.tunnl.gg`, free with an SSH key registered to a free account ([how stable URLs work](/stable-urls)). To choose the name, like `myapp.tunnl.gg`, reserve it with [Pro](/pricing) and connect with `ssh -t -R myapp:80:localhost:3000 pro@proxy.tunnl.gg`.

**Is tunnl.gg a good ngrok alternative?** For HTTPS tunnels, webhook testing and sharing demos, yes: tunnl.gg needs no install or agent, needs no account for a random URL, and gives you a stable URL tied to your SSH key with a free account. ngrok is the better choice if you need your own domain or raw TCP tunnels. See the [full comparison](/ngrok-alternative).

**Why does my dev server say "Blocked request" or "Invalid Host header"?** Dev servers such as Vite, Next.js, webpack, Rails and Django reject hostnames they don't recognize. Add `host=localhost` to the end of the command so your app sees the host it expects, or add `.tunnl.gg` to its allowed hosts; the [guide on sharing a local dev server](/guides/share-localhost-dev-server#2-allow-the-tunnel-hostname) has the setting for each one.

**Is my traffic private?** Tunnels are served over HTTPS, and traffic reaches your machine inside your SSH connection. TLS ends at the tunnl.gg edge, so it isn't end-to-end encrypted, and account-connected tunnels keep their latest 50 requests in memory for the inspector until the tunnel closes. Random and `stable@` tunnels have no request inspector. Connection logs (IP addresses, timestamps) are kept for abuse prevention and deleted within 30 days. The [privacy policy](/privacy) has the details.

**Why do visitors see a warning page?** To protect people from phishing, browsers see a page once a day per site (once a week for stable URLs) explaining that it runs on someone's computer. Webhooks, `curl` and other non-browser clients go straight to your app, browser-like clients can [skip it](/docs#the-browser-warning-page) with the `tunnl-skip-browser-warning` header, and Pro tunnels don't show it.

## Links

- Website: https://tunnl.gg
- Documentation: https://tunnl.gg/docs.md
- Stable URLs: https://tunnl.gg/stable-urls.md
- Guides: https://tunnl.gg/guides.md
- ngrok alternative: https://tunnl.gg/ngrok-alternative.md
- Source code: https://github.com/klipitkas/tunnl.gg
- Terms of service: https://tunnl.gg/terms.md
- Privacy policy: https://tunnl.gg/privacy.md
- Contact: support@tunnl.gg · Abuse reports: abuse@tunnl.gg
