title: Cloudflare is giving me the wrong IP when I use getenv(REMOTE_ADDR)
body: <p>I have a test php code. Which essentially grabs the IP of someone and emails it to an address. I plan later on storing it in a database, but just for testing purposes I have put it as emailing me.</p>
  
  <p>My issue is, I have cloudflare enabled so when I use <code>getenv(REMOTE_ADDR)</code> it gives me cloudflare's IP rather than the actual visitors IP. Is there a way I can get the visitor's IP?</p>
  
  <pre><code>&lt;?php
  $ip = getenv(REMOTE_ADDR);
  mail("email@domain.com", "You got a visitor", "IP: ".$ip);
  ?&gt;
  </code></pre>