What is Geolocation by IP Address in ASP.NET?
With integrating this module to your ASP.NET Web Forms Web Application, get location details of users by their IPv4, or check location details for any IPv4. IP location is not exact location, it generally represents city location.
Module comes with two types database connection options and database files, and ready to use. First: Loading database from the mdf database file with Ado.Net connection model. Second: Loading database from csv file (a bit slower).
Also, you can import database from csv to your database, use your database connection and load data.
Database includes 2.5+ million IP-Geolocation records. Records include ip from, ip to, country code, country, region, city, latitude, longitude, postal code, time zome.
Extra: Module uses Google Maps APIs to show the location on map from latitude-longitude location details.
Full source code and the database files are included.
Target Framework: .NET Framework 4.7.2 – Language: c#
Note: The application takes a long time to find the location as it reads the data from an excel file (2.5+ million IP-Geolocation records) in the demo, if you export the excel data to a database and connect the database to the application as stated in the documentation, the application will quickly show the location.
What is IP Geolocation?
IP Geolocation is mapping of an IP address to the real-world geographic location of a device. Geolocation involves in mapping IPv4 address to country code, country, region, city, latitude, longitude, postal code, time zome.
Accuracy of geolocation database is not 100% because there is not any official source of IP to Geolocation information.