public static string LookupCountry(string ip) { var ip2geo = new GeoIP.LookupService("GeoIP.dat", GeoIP.LookupService.GEOIP_MEMORY_CACHE); var country = ip2geo.getCountry(ip); return(country.getName()); }
public static string LookupCountry(string ip) { var ip2geo = new GeoIP.LookupService("GeoIP.dat", GeoIP.LookupService.GEOIP_MEMORY_CACHE); var country = ip2geo.getCountry(ip); return country.getName(); }