IP Address Locator

Our IP Address Locator lets you find out the location of over 16,000 IP Addresses per hour for free – no registration, no captchas, no keys required. Both robotic and human IP Address lookups are welcome. Optionally deep link directly to the IP Address Locator results. AJAX, JSON, and JSON-P all supported. Scroll down for a list of nearby cities and a map.

IP Address to locate:

IP Address
Location
Nearby Cities
Mi Km City Bearing Direction
Country Code
Country
Region Code
Region
City Code
City
CityId
Latitude
Longitude
Capital City
TimeZone
Nationality
Singular
Population
Nationality
Plural
CIA Map
Reference
Currency
Currency
Code

Map

Here is a code sample showing how to use this service programmatically.

In PHP, for example you might access this IP Address Locator service like this:

   function getIP() {
      foreach (array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR') as $key) {
         if (array_key_exists($key, $_SERVER) === true) {
            foreach (explode(',', $_SERVER[$key]) as $ip) {
               if (filter_var($ip, FILTER_VALIDATE_IP) !== false) {
                  return $ip;
               }
            }
         }
      }
   }
   
   $json = file_get_contents('https://secure.geobytes.com/GetCityDetails?key=7c756203dbb38590a66e01a5a3e1ad96&fqcn='. getIP()); 
   $data = json_decode($json);
   echo ''. getIP() .' resolves to:
'. var_dump($data);

– because everybody's somewhere