blez's : blog

code / design / music and more

Leave a comment

Simple geolocation with C#

Sometimes wondered where your users came from? Here’s a snippet that returns the country/city of a specific IP or the current user IP.
On success returns Geolocation class with City/Country.
If it fails, it returns null.
Continue reading