Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 243k

find country name from ip address using c#

Sep 29 2018 1:36 AM
 
i want to getiing country name from ip address :
my code is :
 
string ip = Request.UserHostAddress;
GeoService.GeoIPService service = new GeoService.GeoIPService();
GeoService.GeoIP output = service.GetGeoIP(ip);
string country = output.CountryName;
 
but getting error 
 
 

Answers (2)