Blog Posts for: Maxmind

Determine a user's location from their IP Address in ASP.NET Core

18 May 2017

To determine a user’s location in a web browser you can use the HTML Geolocation API. There are however a couple of issues with this. First, the user will be prompted to give permission for you to determine their location. If they deny this request, then you will not be able to determine the location. Secondly, this is a JavaScript API, and therefore a client-side solution. But what if you want to determine a user’s location on the server?