title: How do I detect visitor's real ip from CloudFlare?
body: <p>I use cloudflare for my website and I am wondering why my clients IP changing every time I use this script.</p>
  
  <p>In Google my IP is <code>5.250.13.100</code> also in other sites like <code>whatismyip</code> I have same.</p>
  
  <p>But when I use this script in my site(with cloudflare) every time I load this script its give me different IP in same range?</p>
  
  <pre><code>&lt;? 
  echo $_SERVER["REMOTE_ADDR"]; 
  ?&gt; 
  </code></pre>
  
  <p>IP range is: 173.245.<em>.</em>  - 188.114.<em>.</em></p>
  
  <p><a href="http://cloudflare.com/ips" rel="nofollow">By looking in CloudFlare IP ranges I found this range is from CloudFlar!</a></p>
  
  <ul>
  <li>So how can I detect in my website my visitor's real IP?</li>
  </ul>