# HTTPS tunnels

Source: https://prontaro.com/docs/tunnels/https/

Make a local web server behind NAT or a firewall reachable over a permanent HTTPS address without touching router port forwarding or managing TLS certificates.

HTTPS tunnels work on every plan starting from Free. Free accounts receive a permanent `*.prontaro.dev` address, while paid plans add custom `*.prontaro.run` subdomains, [custom domains](https://prontaro.com/docs/tunnels/domains.md), and optional binding to your dedicated static IPv4.

## How it works

The `prontaro` CLI opens a single outbound TLS connection from your machine to the nearest Prontaro edge node. Incoming HTTPS requests hit the edge node, pass access and quota checks, and go over that tunnel to your local server:

```text
Visitor / Webhook
       │  HTTPS (TLS 1.3)
       ▼
Prontaro Edge Node  ── IP allowlist, Basic Auth, quotas
       │  outbound TLS tunnel
       ▼
prontaro CLI (behind NAT)
       │  HTTP or local HTTPS
       ▼
Local app (127.0.0.1:3000)
```

The edge node terminates public TLS with a certificate that is issued and renewed automatically.

### Local name and public address

Prontaro separates a tunnel’s name in your account from its public URL:

| Setting | Flag | Purpose |
| --- | --- | --- |
| Local name | `--name <name>` | Handle used by `run`, `stop`, `rename`, `rm`, and `access` (`1–40` lowercase letters, digits, or hyphens). Unique only within your account. |
| Public address | `--url <subdomain>` | Subdomain chosen at creation on paid plans (`--url demo` → `https://demo.prontaro.run`). Accepts a subdomain, `<subdomain>.prontaro.run`, or full `https://` URL. |

If you omit both flags, Prontaro assigns a permanent random name and address (`.prontaro.dev` on Free, `.prontaro.run` on paid plans). `prontaro rename` changes only the local name—its public URL, custom domains, certificates, and access rules stay intact.

### Shared Prontaro address and dedicated IP

| Entry point | `--to` flag | Behavior |
| --- | --- | --- |
| Shared Prontaro address (default) | `--to shared` or `--to shared@<IP>` | Works on all plans. `shared@<IP>` keeps the tunnel on the shared Prontaro address while billing its traffic against the selected dedicated IP’s allowance. |
| Dedicated IP `:443` | `--to <your-IP>` | Available on Dedicated and Pro. Multiple HTTPS tunnels share `:443` via SNI—useful when a partner firewall allows only one fixed IP. |

Port `443` on your IP holds either HTTPS tunnels or a single TCP tunnel—never both. A stopped tunnel still holds port `443`, so `prontaro stop` does not free it; remove the conflicting tunnel (`prontaro rm`) or move HTTPS tunnels to `--to shared@<your-IP>`.

Port `80` stays untouched on your IP (no automatic `http://` redirect) and remains free for TCP tunnels.

### Local HTTPS servers and `Host` headers

Your local address can be a port (`3000`), `host:port` (`10.0.0.5:8080`), or URL (`http://127.0.0.1:3000`, `https://localhost:8443`):

- If your local server uses `https://`, self-signed certificates are accepted by default. Pass `--verify-local-cert` to enforce strict certificate verification.
- The edge forwards the public hostname in the `Host` and `X-Forwarded-Host` headers by default. Override with `--host-header app.local` if your local server expects a specific virtual host.

> **Browser notice on the Free plan**
>
> Free `.prontaro.dev` tunnels show browsers a one-time notice page before loading your site. Webhooks and programmatic API requests pass straight through. Any paid plan removes the notice.

## Create, run, and manage

You can create, rename, move to your dedicated IP, stop, and delete tunnels in either the dashboard or the CLI. The tunnel itself is always started on your machine by `prontaro CLI` (`prontaro http` or `prontaro run`).

#### In the dashboard

1. Open **Tunnels** in the dashboard and click **Create tunnel** → **HTTPS**.
2. Set the local name, subdomain (or leave it random), location or dedicated IP, and local address (`127.0.0.1:3000`).
3. On the tunnel page, view online/offline status, host machine, real-time request feed, and hourly chart. From the same page you can rename, change the local address, move to a dedicated IP, stop, or delete the tunnel.
4. Start the tunnel on your machine—`prontaro` reads the saved local port from your account:

```bash
prontaro run api
```

Tunnels [Open in dashboard](https://my.prontaro.com/tunnels)

#### In the terminal (CLI)

Create and start a named HTTPS tunnel pointing at local port `3000`:

**Start an HTTPS tunnel**

```bash
prontaro http 3000 --name api --url webhooks-demo
```

**Live tunnel screen**

```text
prontaro 0.2.0                                          Ctrl+C to stop

  Tunnel     api                                     ● connected
  Address    https://webhooks-demo.prontaro.run  →  http://127.0.0.1:3000
  Access     everyone · no password   (as of launch)
  Server     <server> · <region> · 18 ms
  Account    user@example.com
  Slots      2 of 25 · plan "Dedicated"   (as of launch)

  Requests   seen 0 · 5xx 0
```

Without a TTY (pipes, CI, or background services), `prontaro` prints the bare URL to `stdout` and structured lines (`logfmt` or `--json`) to `stderr`.

List tunnels and current monthly usage:

**List tunnels**

```bash
prontaro ls
```

**Output**

```text
Traffic: 1.4 GB of 100 GB · HTTPS requests: 18420 of 3000000 until 2026-12-26
Plan "Dedicated" · 1 of 25 in use
  NAME  ADDRESS                             LOCAL           LOCATION  STATE         MACHINE  ACCESS
  api   https://webhooks-demo.prontaro.run  127.0.0.1:3000  <loc>     ● running 4m  devbox   everyone
```

For an own-IP HTTPS tunnel, the `ADDRESS` column appends the IP in parentheses, e.g. `https://webhooks-demo.prontaro.run (<your-IP>)`.

Day-to-day commands:

**Manage existing tunnels**

```bash
# Start several saved tunnels in one process
# (local addresses are read from each tunnel's saved settings)
prontaro run api admin

# Rename a tunnel without changing its URL or custom domains
prontaro rename api webhooks

# Stop a tunnel (frees an active tunnel slot; keeps the saved address)
prontaro stop webhooks

# Take over a tunnel running on another machine
prontaro http 3000 --name webhooks --takeover

# Delete a tunnel and immediately release its public URL
prontaro rm webhooks
```

Once you attach a custom domain—the most reliable setup for web apps with sign-in or sessions—you can turn off the default `*.prontaro.run` address in the dashboard so visitors can reach the service only on your own hostname; see [Custom domains](https://prontaro.com/docs/tunnels/domains.md#turning-off-the-default-prontarorun-address).

## Limits and notes

- **HTTPS request quota.** Each HTTP request counts toward your monthly quota (a WebSocket counts as one upgrade request, with subsequent data counted toward traffic). When the request limit reaches `100%`, HTTPS tunnels return `429`.
- **Traffic quota.** Both inbound and outbound traffic count toward your monthly allowance; when usage reaches `100%`, new requests are no longer forwarded in either direction. See [Usage, limits & quotas](https://prontaro.com/docs/billing/limits.md).
- **Saved tunnel cap.** Each account can store up to 100 saved tunnels.
- **Concurrent online tunnels.** Free: 1, Tunnels: 5, Dedicated: 25, Pro: 100.
- **Free plan limits.** On Free, you get a permanent `.prontaro.dev` address (1 online tunnel); custom `--url` subdomains, custom domains, and binding to a dedicated IP require a paid plan.
- **Stopped tunnels return `503`.** On both the shared Prontaro address and your IP (`--to <IP>`), port `443` stays open and returns a `503` tunnel-off page while saved addresses stay reserved.
- **No payload logging.** Only metadata is logged (method, path without query string, status, bytes, and duration)—never request bodies, query parameters, cookies, or `Authorization` headers. See [Connection logs](https://prontaro.com/docs/billing/logs.md).

## FAQ

### 502 and 504 from local service

Errors `502 local_unreachable` and `504 local_timeout` mean `prontaro CLI` is connected to the edge, but your local app did not answer or timed out. Confirm the host and port (`127.0.0.1` vs. `::1`), or run `prontaro doctor` if the tunnel will not connect.

### Starting an HTTPS tunnel on my IP fails with `port_in_use`

A saved TCP tunnel holds port `443` on that IP. Find it with `prontaro ls --all`, then remove it (`prontaro rm`) or run the HTTPS tunnel on the shared Prontaro address (`--to shared@<your-IP>`).

### Moving a running tunnel to another machine

If a tunnel is active on another computer, starting it again on a new machine exits with an error so it does not disrupt the first host. Pass `--takeover` once in a terminal to end the previous session cleanly.

> **Never add --takeover to an OS service**
>
> Take over the tunnel manually in a terminal, stop that session, and then install the `systemd` or `launchd` service without `--takeover`.

## Next steps

- [Custom domains](https://prontaro.com/docs/tunnels/domains.md) — attach your own domain with automatic Let’s Encrypt TLS.
- [Access control & firewalls](https://prontaro.com/docs/tunnels/access.md) — restrict tunnel access with IP allowlists or Basic Auth passwords.
- [TCP tunnels](https://prontaro.com/docs/tunnels/tcp.md) — direct access to local PostgreSQL, SSH, and Redis services.
- [Webhooks: Stripe, GitHub, and Telegram](https://prontaro.com/docs/integrations/webhooks.md) — receive and debug incoming webhooks locally.
- [Background services (Linux & macOS)](https://prontaro.com/docs/cli/service.md) — start tunnels automatically after a server reboot.
