> Markdown version of https://tuna.am/en/docs/troubleshooting/address-changes/. 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.

# Tunnel address changes after a restart

## Symptoms

* After you restart `tuna http` or it reconnects, the console shows a different address.
* The old address shows the ["Tunnel not found"](https://tuna.am/en/docs/troubleshooting/errors/tunnel-not-found.md) page with a 404 code.
* Webhooks and payment callbacks stopped arriving, and the link you sent a colleague no longer opens.

## Cause

Without flags, a tunnel gets a [dynamic address](https://tuna.am/en/docs/tunnels/http.md#dynamic) like `4l7mqf-212-49-103-2.a.2na.am`. It's issued on every start and changes when the tunnel reconnects. This is expected: a dynamic address is meant for a one-off demo or debugging.

## Fix

Use your [free permanent subdomain](https://tuna.am/en/docs/tunnels/http.md#free-subdomain). Every account has one on any plan, and an address like `brave-otter-4821.a.tuna.free` stays the same between runs.

1. Find your subdomain in the [dashboard](https://my.tuna.am/domains?lang=en), where it's labeled "Free". tuna also suggests it when you start a tunnel without flags:

   ```shell
   Your permanent free domain: brave-otter-4821.a.tuna.free. Use it with --subdomain=brave-otter-4821

   ```

2. Start the tunnel with it:

   ```shell
   tuna http 8080 --subdomain=brave-otter-4821

   ```

3. Replace the old address wherever you used it: in the provider's webhook settings, in callbacks, in bookmarks.

The subdomain is tied to your account, so tuna has to be signed in to it: `tuna login` or an [API key](https://my.tuna.am/api_keys?lang=en) in `TUNA_API_KEY`.

A subdomain with a meaningful name, such as `billing.a.2na.am`, or [your own domain](https://tuna.am/en/docs/tunnels/http.md#custom-domain) requires a [subscription](https://tuna.am/#pricing). For TCP tunnels, a [reserved port](https://tuna.am/en/docs/tunnels/ports.md) gives you a permanent address.

To avoid typing the flag every time, save the command in [`.tuna.yml`](https://tuna.am/en/docs/tunnels/guides/multi-tunnels.md) or install the tunnel as a [service](https://tuna.am/en/docs/tunnels/guides/service.md).
