Title: Showing the wrong content?
Last modified: August 31, 2016

---

# Showing the wrong content?

 *  Resolved [wzshop](https://wordpress.org/support/users/wzshop/)
 * (@wzshop)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/showing-the-wrong-content/)
 * Hi,
    When i lookup my location with IP 185.54.163.231, through your plugin it
   shows as country: BE. However when i run this script it shows NL
 *     ```
       <?php
        $userInfocustom = geoip_detect2_get_info_from_current_ip();
       echo $userInfocustom->country->isoCode;
       ?>
       ```
   
 * How is this possible?
    I am not using any cache plugins btw.
 * Thanks
 * [https://wordpress.org/plugins/geoip-detect/](https://wordpress.org/plugins/geoip-detect/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/showing-the-wrong-content/#post-7084254)
 * Maybe he is detecting the wrong IP? Try
 *     ```
       echo geoip_detect2_get_client_ip();
       ```
   
 *  Thread Starter [wzshop](https://wordpress.org/support/users/wzshop/)
 * (@wzshop)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/showing-the-wrong-content/#post-7084304)
 * Hi,
    Thanks for your reply. To be clear, i am testing the functionality through
   a VPN service. I actually am in NL, but connect to a server in BE.
 * When insert your code i do not see my own ip or the new ip. Instead i get this:
   162.158.108.5
 * Now Ive found out this originates from Cloudflare, which is the CDN that I am
   using. When i deactivate cloudflare, it is working again.
 * My question now is, is this plugin not working when using Cloudflare? Or is it
   just not working because of the VPN?
    Thanks
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/showing-the-wrong-content/#post-7084305)
 * In this case, Cloudflare is your “reverse proxy”. You can activate reverse proxy
   support in the plugin options.
 *  Thread Starter [wzshop](https://wordpress.org/support/users/wzshop/)
 * (@wzshop)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/showing-the-wrong-content/#post-7084306)
 * Awesome, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Showing the wrong content?’ is closed to new replies.

 * ![](https://ps.w.org/geoip-detect/assets/icon-256x256.jpg?rev=978998)
 * [Geolocation IP Detection](https://wordpress.org/plugins/geoip-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geoip-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geoip-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/geoip-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geoip-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geoip-detect/reviews/)

## Tags

 * [IP](https://wordpress.org/support/topic-tag/ip/)
 * [wrong content](https://wordpress.org/support/topic-tag/wrong-content/)

 * 4 replies
 * 2 participants
 * Last reply from: [wzshop](https://wordpress.org/support/users/wzshop/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/showing-the-wrong-content/#post-7084306)
 * Status: resolved