# How do I recover true user IPs?

**URL:** https://meta.discourse.org/t/how-do-i-recover-true-user-ips/28594
**Category:** Support
**Tags:** docker, cdn
**Created:** [2015年五月10日 18:44 UTC](https://meta.discourse.org/t/how-do-i-recover-true-user-ips/28594 "2015-05-10T18:44:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![KazWolfe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kazwolfe/32/64441_2.png) [@KazWolfe](https://meta.discourse.org/u/KazWolfe)
#### Post date: [2015年五月10日 18:44 UTC](https://meta.discourse.org/t/how-do-i-recover-true-user-ips/28594/1 "2015-05-10T18:44:42Z")

</div>

I am using a Discourse container that is using Cloudflare for performance and security. However, I am encountering a problem: User IPs are not what they really are.

This is most likely Cloudflare’s fault, but there are [solutions](http://nginx.org/en/docs/http/ngx_http_realip_module.html) to this issue. What is the “official” tutorial for fixing this problem?

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [2015年五月10日 21:31 UTC](https://meta.discourse.org/t/how-do-i-recover-true-user-ips/28594/2 "2015-05-10T21:31:25Z")

</div>

I don’t know about Official - but a relevant post would be this one:  
[https://meta.discourse.org/t/config-nginx-to-receive-real-ip-when-using-cloudflare-for-noobs/22645/6?u=deanmarktaylor](https://meta.discourse.org/t/config-nginx-to-receive-real-ip-when-using-cloudflare-for-noobs/22645/6)

---

<div class="post-metadata">

### Author: ![KazWolfe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kazwolfe/32/64441_2.png) [@KazWolfe](https://meta.discourse.org/u/KazWolfe)
#### Post date: [2015年五月11日 05:26 UTC](https://meta.discourse.org/t/how-do-i-recover-true-user-ips/28594/3 "2015-05-11T05:26:43Z")

</div>

This did the trick, thanks!

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2015年七月7日 04:51 UTC](https://meta.discourse.org/t/how-do-i-recover-true-user-ips/28594/4 "2015-07-07T04:51:07Z")

</div>

You should now transition to the official cloudflare.template.yml file, which will stay updated when CloudFlare acquires new IPs.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年一月12日 01:49 UTC](https://meta.discourse.org/t/how-do-i-recover-true-user-ips/28594/5 "2016-01-12T01:49:47Z")

</div>


