In this tutorial, we demonstrate you on how to display visitor’s sunrise and sunset time based on their IP address using VB.NET programming languages and IP2Location MySQL database. In this tutorial, we use the IP2Location LITE database to lookup the country of origin from the visitor’s IP address. Free databases are available for download at IP2Location LITE database.
Step 2: Download the demo project at Display sunrise and sunset time using VB.NET and include it into your VB.NET project.
Below are the steps to set up the database for both IPv4 and IPv6 data and the sample codes