Although you can search by IP address to get an idea of ββthe overall physical location, the physical location may not have much to do with the language of the person whose IP address you are viewing.
For example, if the IP location may be the New York area of ββthe United States, a person can speak Mandarin as their primary language because they visit the area.
Here is a service you can use to find the IP address http://ipinfodb.com/ip_location_api.php
Here is a discussion of stackoverflow Getting a user's location by IP address in C # , which may also be useful.
However, you will need to provide a mechanism for changing the language. And use cookies or something similar to remember the choice of language.
The most common use of location information is to provide targeted advertising, which is likely to be beneficial to the person in that place.
EDIT: Using Mobile Devices
As mobile devices and smartphones accessing the Internet through high-speed 3G and 4G cellular networks are becoming more common, the question arises whether IP geolocation works for these types of devices.
The short answer is not very good. See This article, Where is this phone ?: Geolocation of IP addresses in 3G networks from Microsoft Research.
In addition, here is a question about the stacking surface in the location of a mobile phone from an HTTP request .
Here's an article, Geolocation of IP Addresses in Cellular Data Networks , which also contains some information about the problem.
source share