# Discourse reports user ips as the load balancer

**URL:** <https://meta.discourse.org/t/discourse-reports-user-ips-as-the-load-balancer/45049>\
**Category:** Development\
**Created:** [May 31, 2016, 5:51pm UTC](https://meta.discourse.org/t/discourse-reports-user-ips-as-the-load-balancer/45049 "2016-05-31T17:51:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [May 31, 2016, 10:54pm UTC](https://meta.discourse.org/t/discourse-reports-user-ips-as-the-load-balancer/45049/3 "2016-05-31T22:54:47Z")

</div>

I’d say you’re missing the nginx setting to “trust” the IP address that is making the connection, so the XFF header is ignored. The setting name is `set_real_ip_from`; grovel around in your nginx config(s) to see what (if anything) it’s currently set to, and season to taste.

---

_[View the full topic](https://meta.discourse.org/t/discourse-reports-user-ips-as-the-load-balancer/45049)._
