Result = "Last_Seen: " all.Geoip database is missing. Result = "Usage_Type: " all.Usage_Type "\n" Result = "Domain: " all.Domain "\n" Result = "Region: " all.Region "\n" Result = "Country_Long: " all.Country_Long "\n" Result = "Country_Short: " all.Country_Short "\n" Result = "Proxy_Type: " all.Proxy_Type "\n" Result = "Is_Proxy: " all.Is_Proxy.ToString() "\n" Result = "\n\nIP2Proxy Proxy Results:\n=\n" IP2Proxy.Component proxy = new IP2Proxy.Component() Private void QueryIP2Proxy( string strIPAddress) Result = "Usage Type: " oIPResult.UsageType "\n" Result = "Elevation: " oIPResult.Elevation "\n" Result = "Mobile Brand: " oIPResult.MobileBrand "\n" Result = "MNC: " oIPResult.MNC "\n" Result = "MCC: " oIPResult.MCC "\n" Result = "Weather Station Name: " oIPResult.WeatherStationName "\n" Result = "Weather Station Code: " oIPResult.WeatherStationCode "\n" Result = "Area Code: " oIPResult.AreaCode "\n" Result = "IDD Code: " oIPResult.IDDCode "\n" Result = "Net Speed: " oIPResult.NetSpeed "\n" Result = "Time Zone: " oIPResult.TimeZone "\n" Result = "Domain Name: " oIPResult.DomainName "\n" Result = "ISP Name: " oIPResult.InternetServiceProvider "\n" Result = "Postal Code: " oIPResult.ZipCode "\n" Result = "Longitude: " oIPResult.Longitude "\n" Result = "Latitude: " oIPResult.Latitude "\n" Result = "City: " oIPResult.City "\n" Result = "Region: " oIPResult.Region "\n" Result = "Country Name: " oIPResult.CountryLong "\n" Result = "Country Code: " oIPResult.CountryShort "\n" Result = "IP Address: " oIPResult.IPAddress "\n" Result = "IP2Location GeoLocation Results:\n=\n" OIP2Location.IPDatabasePath = oIP2Location.IPQuery(strIPAddress) IP2Location.Component oIP2Location = new IP2Location.Component() IP2Location.IPResult oIPResult = new IP2Location.IPResult() Private string QueryIP2Location( string strIPAddress) WWW IP2LOCATION COM FREE HOW TOWe will just show how to create and call the components.įirst, create the QueryIP2Location function below will accept an IP address and output the geolocation results. WWW IP2LOCATION COM FREE INSTALLIn your Visual Studio project, go to the NuGet Package Manager and install the 2 NuGet packages below: Both databases are free for use with attribution required.ĭownload the free IP2Location LITE DB11 data:ĭownload the free IP2Proxy LITE PX8 data:Īfter downloading both zipped files above, you need to extract out their respective BIN files and copy them to a folder somewhere, e.g. WWW IP2LOCATION COM FREE DOWNLOADNET Framework 4.61 or later.įirst of all, you need to download the free IP geolocation BIN databases for both the IP2Location and the IP2Proxy data. We will assume you already have a version of Microsoft Visual Studio that is capable of handling. Microsoft Visual Studio to compile the codes. Developers can use the geolocation information to deliver business requirements such are pages redirection and fraud prevention. In this tutorial, we will show how to input an IP address and get back IP geolocation
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |