> For the complete documentation index, see [llms.txt](https://docs.vdo.ninja/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vdo.ninja/advanced-settings/turn-and-stun-parameters/and-autorelay.md).

# \&autorelay

General Option! ([`&push`](/advanced-settings/setup-parameters/push.md), [`&room`](/advanced-settings/setup-parameters/room.md), [`&view`](/advanced-settings/mixer-scene-parameters/view.md), [`&scene`](/advanced-settings/mixer-scene-parameters/scene.md), [`&director`](/advanced-settings/director-parameters/director.md))

## Options

Examples:

* `&autorelay`
* `&autorelay=1`
* `&autorelay=0`

| Value                     | Description                                   |
| ------------------------- | --------------------------------------------- |
| `1`, `true`, `on`, `yes`  | Enable relay escalation during auto-recovery  |
| `0`, `false`, `off`, `no` | Disable relay escalation during auto-recovery |

## Details

* Enables automatic TURN relay escalation as part of peer recovery attempts.
* Useful when direct P2P paths fail intermittently due to strict NAT/firewall/routing issues.
* This does not force relay from the start like [`&relay`](/advanced-settings/turn-and-stun-parameters/and-relay.md); it escalates when recovery logic decides it is needed.
* Requires usable TURN servers. If no TURN servers are configured, this option has no effect.

{% hint style="info" %}
Large rooms may still trigger relay escalation heuristics even without `&autorelay`, but enabling `&autorelay` makes this behavior explicit and predictable.
{% endhint %}

## Related

{% content-ref url="/pages/DZBeQMi8cY8xB2H6rICO" %}
[\&pendingicettl](/advanced-settings/turn-and-stun-parameters/and-pendingicettl.md)
{% endcontent-ref %}

{% content-ref url="/pages/zGrl2B1uV4Vm3OkTolja" %}
[\&autorecover](/advanced-settings/settings-parameters/and-autorecover.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MZX-rFCzgmIUyBitkaa" %}
[\&relay](/advanced-settings/turn-and-stun-parameters/and-relay.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.vdo.ninja/advanced-settings/turn-and-stun-parameters/and-autorelay.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
