Beispiel #1
0
        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());
        }
Beispiel #2
0
 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();
 }