We can use Geoplugin API.
Geoplugin is a webservice which allows you to find Location based upon the IP of the client. It shows City, region, country, latitude , longitude etc of the IP address.
We can integrate running website, using following code:
<php
echo var_export(unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$_SERVER['REMOTE_ADDR'])));
?>