• Resolved sgervais71

    (@sgervais71)


    I have a strange problem.
    The plugin detects the good ip but returns the wrong country.
    Since you pull the country from ip2nation, I went to check the country for my IP on their website, and they do give the good country for my ip.

    For example:
    I am in canada and my ip is 198.200.116.17.
    I set up a page with [CBC_COUNTRY /][CBC_IP /]
    It returns my ip, but returns United States as country.
    And if I go the ip2nation website it detects the same ip IP and says my country is Canada.

    I also tried a proxy in mexico 192.100.183.110 and checked my configuration with whatismyip.com and ip2nation and both tough I was in Mexico. But Content By Country returns United State for Country.

    I looked around in your FAQ and tough maybe the ip tables for ip2nation where out of date, so i went in my database and deleted the ip2nation and ip2nationCountries tables.
    But now I made it even worst since the plugin is not working at all.

    Please help.
    I used you plugin all over my site and I love it.

    https://wordpress.org/plugins/custom-content-by-country/

Viewing 3 replies - 1 through 3 (of 3 total)
  • tyrion112

    (@tyrion112)

    I have the same problem, it doesn’t detect Canadian traffic.

    Thread Starter sgervais71

    (@sgervais71)

    I was able to solve the problem.
    I think it turns out that the ip list that is from ip2nation is static from the release date of the last version of the plugin.
    So i was able by manually deleting the ip2nation tables from the database (ip2nation & ip2nationCountries). And then download the current tables from http://www.ip2nation.com/ip2nation/Download
    And import those new ones back into my database.
    Now it shows the good country.

    It would be nice to have a way in the plugin to update de ip2nation tables automatically.

    Plugin Author Paul

    (@paultgoodchild)

    Just letting you know that I’ve updated the plugin (v2.12) with the latest ip2nations database.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not the same country as ip2nation’ is closed to new replies.