When you install the EPiServer, if you look in your App_data folder you should see a file called GeoLiteCity.dat. This file is a IP geolocation database created by a company called MaxMind. This means you can get the current user's IP address and get a country code in return.
If you are running a multi-language site, you can use this feature to redirect a user to the correct language version for their country, automatically, instead of making them manually change it. If you haven't read my article An Alternative EPiServer Multi-Lingual Approach, that details a good use for using the GeoIp Locator. Another good example would be setting a default currency on a commerce site. To start using GeoLocation look-ups in your code you will need to use the
After you have a IGeolocationResult you can get a lot of useful information from it.
Get a user's country code
Get a user's region
Get a user's continent
As Episerver provides an API and the GeoLiteCity database out the box, getting location information about a user is pretty straightforward. You create an instance of GeolocationProvider and pass in the current user's Ip address. The API will return an IGeolocationResult. From IGeolocationResult you can get information such as continent code, country code, region and location