IP Address Location Tool

IP Location of an IP address is the process of determining a person’s geographical location from their IP Address. You can see it work here by entering an IP Address below, and our FREE IP Locator will lookup the locationĀ of that Address. Try this, if you would rather not be located.

IP Address to locate:

IP Address
Nearby Cities
Mi Km City Bearing Direction
Country Code
Region Code
City Code
Capital City


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

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

  • Pingback: Anonymous()

  • notlopsided

    Nice redesign. Too bad it doesn’t work.

  • http://www.geobytes.com Adrian

    Hi, Thanks for the feedback.
    I was just wondering what the issue was that you encountered – specifically whether it was just a transient issue or whether it is still there, and is something that I have missed.
    Any further feedback would be very much appreciated, as I am really trying to make this useful for everyone.

  • CognitiveThinking

    Thanks for your feedback – I was just wondering specifically what issue you were referring to when you said it didn’t work. I would be grateful if you could confirm if the issues persists, and if so, if you could please provide a hint as to the nature of the issue that you have encountered.
    In any case, I am keen to help, so please let me know if I can assist further.

  • Flower

    This site no longer works … ugh … why do people destroy things just because they want them to look better!

  • Flower

    There is nothing to click on after entering the IP! No way to find a location with this site! So if you’re the one who changed it, you really screwed up!

  • CognitiveThinking

    The site resolves the location of the IP Address as you type it in – at least it does for me. It does require Javascript support in the bowser to do it.
    In any case, if you are experiencing difficulty, then no doubt others are too, so as a possible fix, I will put a submit button on there that will force a lookup of whatever is currently in the “lookup box” and then see how that goes.
    Once you see that, could you please let us know particularly if that does not work for you.
    Thanks again for your assistance.

  • Smiddy808

    Im also having the same issues of not being able to enter an IP Address. I use Firefox 35.0.1

  • CognitiveThinking

    OK – How’s that?
    Now you can either, select from the drop-down list, press enter, or click submit.
    Does that work for you guys?
    (And either way – sorry about my stuff-up.)

  • Smiddy808

    Working perfectly now. Thanks for the fix!

  • Markustan

    I follow a link from a board I moderate. It used to bring the IP I am searching along to this page. The way it works now:

    1. I arrive here, but only see my own IP.

    2. Go back, copy the IP manually and paste it in the “Address to locate” box. Press submit.

    3. The location is shown, but only in the “Address to locate” box, as a “bubble” or pop-up. All the information below is still about my own IP address.

    4. Finally learned that I need to click the bubble to populate the remaining fields with the full info for the IP I am searching.

    It works, but it’s not intuitive and I am sure that it’s more clicks to get where I’m going.

    Nice redesign, thank you for the free service. Doesn’t seem to be quite there (as good as before) yet in functionality. Cheers.

  • Wesley Sykes

    I am in Virginia and it reports Florida, Way Wrong!!!

  • CognitiveThinking

    doh! – sorry I will get that fixed.
    btw you can post corrections here (http://www.correctgeo.com/), and they automatically go in to the next weeks map build.

  • CognitiveThinking

    OK, I think that I have identified the problem, and I am working on it.

  • CognitiveThinking

    Can you please post a copy of the URL that board is linking to, as something like this should work:


  • CognitiveThinking

    Can you please post a copy of the URL that you are coming in on? It should look something like this:


  • http://www.es-interactive.com Eric

    The following code has worked for months. Why has it suddenly stopped working? We only do about 2 to 10 lookups per day, if that. Note…. $ip is obviously the IP ADDRESS we’re passing in.

    $meta_tags = get_meta_tags(‘http://www.geobytes.com/IPLocator.htm?GetLocation&template=php3.txt&IPAddress=’ . $ip) or die(‘Error getting meta tags’);

    $city = $meta_tags[‘city’];
    $state = $meta_tags[‘regioncode’];
    $country = $meta_tags[‘fips104′];
    $lat = $meta_tags[‘latitude’];
    $long = $meta_tags[‘longitude’];

  • Nicola

    Something is wrong, I can confirm. I cannot anymore search for IP geolocation. It simply doesn’t work. Should I look for an alternative?

  • CognitiveThinking

    Hi Eric,
    Are you able to change

    $meta_tags = get_meta_tags(‘http://www.geobytes.com/IPLocator.htm?GetLocation&template=php3.txt&IPAddress=’ . $ip) or die(‘Error getting meta tags’);


    $json = file_get_contents(‘getcitydetails.geobytes.com/GetCityDetails?callback=callback&fqcn=’. $ip);
    $meta_tags = json_decode($json);

    As that will achieve the same result, and you get 16,384 look ups per hour for free – rather than the 20 free lookups that you received previously.

    FYI There is a complete working sample here: http://www.geobytes.com/get-city-details-api/

  • CognitiveThinking

    I am keen to help, but I am unsure of what you are referring to. Could you please provide us with an example of specifically what does not work?

  • PasserBy

    Your php code is hosed. To get it to work, change line 13 to:

    $json = file_get_contents(‘http : // getcitydetails .geobytes .com/GetCityDetails?&fqcn=’. getIP());

    (remove spaces in string above) Essentially, you need to add http:// at the start, and remove the callback=callback parameter in the query string.

    Also, I think you getIP() function is pretty pointless since all those server variables are easily spoofed. You may as well just go with $_SERVER[‘REMOTE_ADDR’]

  • http://www.es-interactive.com Eric

    Yeah, doesn’t work. No matter what IP I pass in, or if I use your function which returns the IP, I still get Nashville, TN for everything I test with. Unfortunately, I am in Seattle – and every other online IP checker I used shows me in Seattle. So in a nutshell, the code you gave as an example is not working. I used the code from the example page you mentioned

  • CognitiveThinking

    Yes, you’re right – nice save – thanks. (FYI I think that I must of broken it when I recently changed the FQDN from gd.geobytes.com to getcitydetails.geobytes.com – I will have to check the rest of the site, as I may have stuffed it up in other places too.)

    With regards to the getIP() function – it really depends on what you are trying to do. If you are not concerned with someone trying to spoof their location/IpAddress, but rather your priority is on accurately locating your typical site user, than using getIP() adds value, and in any case, not using it does not really help in either scenario.

  • CognitiveThinking

    oh OK – I see….
    Thanks for the correction – I have posted it here so that it will be included in our next map update. http://www.correctgeo.com/

  • realclearconservative

    Someone from Vietnam has been trying to get into my Tivo acct. Probably trying to add subtitles to all the programs I record. Thanks for the service!