> 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/knowledge-base/knowledge-base-articles/x-forwarded-for.md).

# X-Forwarded-For

The ***Use X-Forwarded-For*** option, found in the Devolutions Server web interface under ***Administration – Server Settings – Security***, was introduced to solve a security issue with Devolutions Server under a load balancer: the server would only see the caller directly before it.

When first implemented, the option was enabled by default to allow backwards compatibility with users already using load balancers. However, since Devolutions Server 2023.3, it is disabled by default for new Devolutions Server installations. Therefore, for new installations using a load balancer, you must manually enable the option in ***Administration – Server Settings – Security***. No action is required for existing installations.

![](https://cdnweb.devolutions.net/docs/docs_en_kb_KB2343.png)

When the option is enabled, the [X-Forwarded-For](https://en.wikipedia.org/wiki/X-Forwarded-For) header is added to the request by IIS (this does not work with Kestrel). Each intermediate node adds the identity of the original caller to the request header and keeps adding its caller to the next. Consequently, the last node sees not only the original caller, but also which nodes intervened before it.


---

# 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:

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

The question should be specific, self-contained, and written in natural language.
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.
