I am using following code :
echo $_SERVER["REMOTE_ADDR"];
I echos my IP address as 108.162.225.189
which is somewhere in US. My actual IP address is 59.179.64.246
. Is it because I am using cloudFlare? CloudFlare also says
CloudFlare sits between your visitor and web server. So, the CloudFlare connecting IP matters only for any programs that read logs directly from your web server (like awstats).
Is CloudFlare causing this problem? How can I get the correct IP address?
Yes, the shown IP (108.162...) is a CloudFlare IP. But CloudFlare should provide addtional information. Try this:
Further information: https://support.cloudflare.com/hc/en-us/articles/200170856-How-do-I-restore-original-visitor-IP-with-vBulletin-