> 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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/server/es/knowledge-base/knowledge-base-articles/x-forwarded-for.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.
