i want know if there function or code in c allow know country code or name received ip address.
this can done using libgeoip. can find example in test subdirectory. works like:
geoip *gi = geoip_open(path_to_database, flags); const char *country_code = geoip_country_code_by_addr(gi, "127.0.0.1");
Comments
Post a Comment