As you know, IDE is using a ip2c.dll country database library from ZDaemon, which comes from a free online database,
that however isn't being updated anymore (hasn't been updated since 2010 AFAIK) and the website http://ip-to-country.webhosting.info isn't even working anymore it seems.
As a result, IDE reports unknown or wrong countries for ~1/3 of all servers.
I'd like to suggest a much better database from maxmind.com which is:
- much more precise
- updated every month
- extra easy to implement
It is the database that is used on GV servers on ST, and which Torr Samaho implemented into v1.1:
To access the database, maxmind.com offers APIs licensed under LGPL (so it should be fine to use them in IDE).
This is basically all the code you need for accessing the database to get the country from an IP in C++:
GeoIP * gi;
gi = GeoIP_new(GEOIP_STANDARD);
country = GeoIP_country_code_by_addr ( gi, "/* IP as string here... */");
Binary database: http://dev.maxmind.com/geoip/geolite