# Discourse מציג את כתובת ה-IP של השרת/localhost ככתובת ה-IP של המשתמש

**URL:** <https://meta.discourse.org/t/discourse-shows-server-ip-localhost-as-users-ip/232474>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [11 ביולי,‏ 2022,‏ 8:43am UTC](https://meta.discourse.org/t/discourse-shows-server-ip-localhost-as-users-ip/232474 "2022-07-11T08:43:24Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)\
**Post date:** [11 ביולי,‏ 2022,‏ 4:52pm UTC](https://meta.discourse.org/t/discourse-shows-server-ip-localhost-as-users-ip/232474/9 "2022-07-11T16:52:27Z")

</div>

I don’t know a lot about how the Cloudflare real IP stuff works but my suspicion is that your Discourse nginx will need `set_real_ip_from` to be the IP address that it sees your proxy nginx as. 127.0.0.1? Some other internal address? The public address? Not sure which it would see.

Once you know what address that is, I think what I would do is leave the cloudflare template in there, then add a new `replace` just for `set_real_ip_from`.

In addition to that, your proxy nginx will need to be configured to pass along the `CF-Connecting-IP` header if it isn’t already configured to do so or doesn’t already do so by default. I can’t really help with this bit.

---

_[View the full topic](https://meta.discourse.org/t/discourse-shows-server-ip-localhost-as-users-ip/232474)._
