FREE Online IP Address Location Tool

Here you can 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 lookups are welcome.  Optionally deep link directly to the IP Address Geolocation 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 Service Area

Click a city in the pie graph to fetch its details into the form below.

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.

  • 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 (, 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:

  • 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(‘’ . $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(‘’ . $ip) or die(‘Error getting meta tags’);


    $json = file_get_contents(‘’. $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:

  • 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’]

  • 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 to – 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.

  • 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!


  • notlopsided

    I stopped using your site a couple of months ago and never went back to this discussion. There was no “Submit” button on the IP locator page last I checked, and hitting Enter had no effect. Now I see you fixed it.

  • Adrian

    Yes, thanks again for your valuable feedback – I had not noticed the problem as I had always selected the IP Address from the drop down list, but upon having it pointed out to me, I agree that it was definitely a problem. It is great to have it fixed now, and I am even using the submit button myself. BTW – I also wired enter key to the submit button – which I am finding easier than having to reach for the mouse. It you have any further suggestions for improvements, then please let me know.

  • choekstr

    Ok, so how can I get results using a bash shell script? Before I would
    use curl or wget and pass in the IP and just grep out the results but
    now I can’t seem to figure out a way to submit an IP. This is for a
    simple script I use on my home server to show who is logging in via FTP
    and SFTP so I don’t need javascript webpage support and do not want to
    setup a full mysql database of local content to query.

    Is there a way to query still with cmdline?

  • Adrian

    For example:

    "geobytescountry":"United States",
    "geobytesfqcn":"Chicago, IL, United States",
    "geobytescapital":"Washington, DC ",
    "geobytesmapreference":"North America ",
    "geobytescurrency":"US Dollar",
    "geobytestitle":"The United States"

    curl -s | grep -oP '(?<="geobytesfqcn":")[^"]*'
    Chicago, IL, United States

    In any case, please let me know if I can assist further.

  • CognitiveThinking

    I am having trouble getting Disqus to accept my longer answer, so here is the short version:
    curl -s | grep -oP '(?<="geobytesfqcn":")[^"]*'


    Chicago, IL, United States

    In any case, please let me know if I can assist further.

  • choekstr

    ahh, excellent! This is exactly what I was missing and this helps a ton.

    Much appreciated!

  • Ferg

    I am attempting to purchase mapbytes. Half of the time, I get an error saying “action failed” when I attempt to add the item to my cart. The other half of the time I get a message saying that I have successfully added it to my cart, but when I go to my cart, the cart is empty.

  • CognitiveThinking

    Please correct me if I am wrong, but I believe that Ferg worked around this by using the PayPal Buy Now buttons that you see in the right hand margin of each page. In any case, just for the benefit of other readers, the PayPal Buy Now buttons are replacing our previous shopping cart facility – the remnants of which are very soon to be completely removed from our site. So the PayPal Buy Now buttons are now the way to go.