Add WebService Reference of
http://www.webservicex.net/geoipservice.asmx?wsdl
Here is the code:
Dim objWebServiceX As New webservicex.GeoIPService
Dim countryName As String = objWebServiceX.GetGeoIP(Request.ServerVariables("REMOTE_ADDR")).CountryName
Response.Write(countryName & "
")
Showing posts with label Get Country Name by Client IP. Show all posts
Showing posts with label Get Country Name by Client IP. Show all posts
Saturday, March 6, 2010
Subscribe to:
Posts (Atom)
