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

<div class="post-metadata">

**Author:** ![ay0ks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ay0ks/32/266371_2.png) [@ay0ks](https://meta.discourse.org/u/ay0ks)\
**Post date:** [11 ביולי,‏ 2022,‏ 8:43am UTC](https://meta.discourse.org/t/discourse-shows-server-ip-localhost-as-users-ip/232474/1 "2022-07-11T08:43:24Z")

</div>

Hello, I’ve deployed Discourse on my own server, everything works normally except detecting user’s IP address, I’ve even made a php script (outside docker container) to get all headers where IP can be:

```plaintext
REMOTE_ADDR: 212.58.xxx.xxx
SERVER_PORT: 80
SERVER_ADDR: 85.25.xxx.xxx
SERVER_SOFTWARE: Apache:
HTTP_CF_CONNECTING_IP: 212.58.xxx.xxx
HTTP_CDN_LOOP: cloudflare
HTTP_X_REAL_IP: 162.158.xxx.xxx

```

Details:  
Server has BrainyCP panel installed with Apache and Nginx (currently website uses Nginx, which reverse proxies the docker container)  
`HTTP_CF_CONNECTING_IP` gives `127.0.0.1` inside docker container, but outside they have normal values  
Without changing the header using custom commands, Discourse displays server’s IP.

(Soon will add more details as my Discourse instance is now rebuilding)

---

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