> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/es/knowledge-base/knowledge-base-articles/x-forwarded-for.md).

# X-Forwarded-For

Explica la configuración Use X-Forwarded-For en Devolutions Server, que permite a IIS reenviar la dirección IP del emisor original detrás de un balanceador de carga.

La opción ***Use X-Forwarded-For***, que se encuentra en la interfaz web de Devolutions Server en ***Administration – Server Settings – Security***, se introdujo para resolver un problema de seguridad de Devolutions Server detrás de un balanceador de carga: el servidor solo veía al emisor situado directamente antes de él.

Cuando se implementó por primera vez, la opción estaba habilitada de forma predeterminada para permitir la compatibilidad con versiones anteriores para los usuarios que ya utilizaban balanceadores de carga. Sin embargo, desde Devolutions Server 2023.3, está deshabilitada de forma predeterminada en las nuevas instalaciones de Devolutions Server. Por lo tanto, en el caso de las nuevas instalaciones que utilicen un balanceador de carga, debe habilitar manualmente la opción en ***Administration – Server Settings – Security***. No se requiere ninguna acción para las instalaciones existentes.

Cuando la opción está habilitada, IIS añade la cabecera [X-Forwarded-For](https://en.wikipedia.org/wiki/X-Forwarded-For) a la solicitud (esto no funciona con Kestrel). Cada nodo intermedio añade la identidad del emisor original a la cabecera de la solicitud y sigue añadiendo su emisor al siguiente. En consecuencia, el último nodo ve no solo el emisor original, sino también qué nodos intervinieron antes que él.


---

# 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 following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/server/es/knowledge-base/knowledge-base-articles/x-forwarded-for.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
