> Markdown version of https://tuna.am/en/docs/troubleshooting/errors/domain-limit-reached/. 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.

# Domain limit reached

```text
FATA[12:00:00] Failed to get connection settings: Domain limit reached
  Code: Forbidden
  Request ID: b6e0d2a97f3c15e48d9a0c6b2f7e1d54

```

The variant for TCP ports:

```text
FATA[12:00:00] Failed to get connection settings: Endpoint limit reached
  Code: Forbidden
  Request ID: 1d8c4f6e2a0b93d75e1f8a4c6b0d2e97

```

tuna CLI and Tuna Desktop show this error when you start a tunnel with a new name in `--subdomain` or `--port`. The client doesn't reconnect and exits right away. The same error, without the `Failed to get connection settings` prefix, can appear when you reserve an address with `tuna domain reserve` or `tuna endpoint reserve`, or in the dashboard.

## Cause

The first time you start a tunnel with a new name, the address gets reserved: `--subdomain=billing` reserves a subdomain, `--port=myport` reserves a [TCP port](https://tuna.am/en/docs/team/tcp_ports.md) by alias. Your plan limits the number of reserved addresses, including [additional licenses](https://tuna.am/en/blog/licenses.md):

* `Domain limit reached` means you've hit the subdomain limit. [Custom domains](https://tuna.am/en/docs/tunnels/http.md#custom-domain) have a separate limit, and hitting it produces the same error;
* `Endpoint limit reached` means you've hit the TCP port limit.

Only addresses you reserved yourself in this team count. The [free permanent subdomain](https://tuna.am/en/docs/tunnels/http.md#free-subdomain) doesn't count toward the limit.

## What to do

1. If you're starting a tunnel on an address you've already reserved, check the name in `--subdomain` or `--port`: a typo reserves a new address.
2. Open [domains](https://my.tuna.am/domains?lang=en) or [TCP ports](https://my.tuna.am/tcp_ports?lang=en) in the dashboard and delete the ones you don't need. From the terminal, use [`tuna domain delete`](https://tuna.am/en/docs/cli/domain/delete.md) and [`tuna endpoint delete`](https://tuna.am/en/docs/cli/endpoint/delete.md).
3. If you don't need a permanent address, drop `--subdomain` or `--port`: the tunnel will get a dynamic address.
4. If you need more addresses, upgrade your [plan](https://tuna.am/#pricing) or buy an additional license.
