> Markdown version of https://tuna.am/en/docs/troubleshooting/errors/temporal-token-is-bound-to-reserved-addresses/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Temporal token is bound to reserved addresses, specify one of them

```text
FATA[12:00:00] Failed to get connection settings: Temporal token is bound to reserved addresses, specify one of them
  Code: Forbidden
  Request ID: c03f8e6a1d9b42e75a0c3d8f6e1b9a24

```

Variants of the message:

```text
Temporal token is not bound to this address
Temporal token bound to addresses cannot be used for apps

```

tuna CLI and Tuna Desktop show this error when you start a tunnel. The client doesn't reconnect and exits right away.

## Cause

The tunnel was started with a key bound to specific domains or TCP ports. Such a key can start tunnels only on those addresses:

* `Temporal token is bound to reserved addresses, specify one of them` means no address was given: an HTTP tunnel has no `--subdomain` or `--domain`, a TCP tunnel has no `--port`;
* `Temporal token is not bound to this address` means the address isn't bound to the key or doesn't exist;
* `Temporal token bound to addresses cannot be used for apps` means a bound key can't start a tunnel for an [App](https://tuna.am/en/docs/apps.md).

Keys get bound in three cases: temporal tokens from [Terraform](https://tuna.am/en/docs/guides/terraform.md#scenario-temporal-tunnels-for-ci) with the `domains` and `endpoints` parameters, [API keys](https://my.tuna.am/api_keys?lang=en) created with address bindings, and [background service keys](https://tuna.am/en/docs/tunnels/guides/service.md#service-key) installed with `--subdomain`, `--domain` or `--port`.

## What to do

1. Find out which addresses the key is bound to: for a temporal token from Terraform, these are `domains` and `endpoints`; for a background service key, it's the address from the service command.

2. Specify one of them when you start the tunnel:

   ```shell
   tuna http 8080 --subdomain=myapp-preview

   ```

   For a TCP tunnel, pass `--port` with the alias or number of the bound port.

3. If you need a different address or a tunnel without one, issue a key without bindings or with the addresses you need.

4. For an App, use a key that isn't bound to addresses.
