Geolocation by IP Address

October 25th, 2004 by Andrew Turner in

Determining geographic locations based on Internet IP offers localization services and brings together user communities without the need for GPS receivers or complicated configuration switching.
Your rating: None Average: 4.3 (145 votes)

The Internet has become a collection of resources meant to appeal to a large general audience. Although this multitude of information has been a great boon, it also has diluted the importance of geographically localized information. Offering the ability for Internet users to garner information based on geographic location can decrease search times and increase visibility of local establishments. Similarly, user communities and chat-rooms can be enhanced through knowing the locations (and therefore, local times, weather conditions and news events) of their members as they roam the globe. It is possible to provide user services in applications and Web sites without the need for users to carry GPS receivers or even to know where they themselves are.

Geolocation by IP address is the technique of determining a user's geographic latitude, longitude and, by inference, city, region and nation by comparing the user's public Internet IP address with known locations of other electronically neighboring servers and routers. This article presents some of the reasons for and benefits of using geolocation through IP address, as well as several techniques for applying this technology to an application, Web site or user community.

Why Geolocation?

The benefits of geolocation may sound complex, but a simple example may help illustrate the possibilities. Consider a traveling businessman currently on the road to San Francisco. After checking into his hotel, he pulls out his laptop and hops onto the wireless Internet access point provided by the hotel. He opens his chat program as well as a Web browser. His friends and family see from his chat profile that he currently is near Golden Gate Park. Consequently, they can determine his local time. By pulling up a Web browser, furthermore, the businessman can do a localized search to find nearby restaurants and theaters.

Without having to know the address of the hotel he's staying in, the chat program and Web pages can determine his location based on the Internet address through which he is connecting. The following week, when he has returned to his home in Florida, he uses his laptop to log into a chat program, and his chat profile correctly places him in his home city. There is no need to change computer configurations, remember addresses or even be aware, as the user, that you are benefitting from geolocation services.

Possible applications for geolocation by IP address exist for Weblogs, chat programs, user communities, forums, distributed computing environments, security, urban mapping and network robustness. We encourage you to find out what applications and Web sites currently employ geolocation or could be enhanced by adding support.

Although several methods of geographically locating an individual currently exist, each system has cost and other detriments that make them technology prohibitive in computing environments. GPS is limited by line-of-sight to the constellation of satellites in Earth's orbit, which severely limits locating systems in cities, due to high buildings, and indoors, due to complete overhead blockage. Several projects have been started to install sensors or to use broadcast television signals (see Resources) to provide for urban and indoor geolocation. Unfortunately, these solutions require much money to cover installation of new infrastructure and devices, and these services are not supported widely yet.

By contrast, these environments already are witnessing a growing trend of installing wireless access points (AP). Airports, cafes, offices and city neighborhoods all have begun installing wireless APs to provide Internet access to wireless devices. Using this available and symbiotic infrastructure, geolocation by IP address can be implemented immediately.

Geolocation Standards and Services

As discussed below, several RFC proposals have been made by the Internet Engineering Task Force (IETF) that aim to provide geolocation resources and infrastructure. However, these standards have met with little support from users and administrators. To date, there has not been much interest in providing user location tracking and automatic localization services. Several companies now offer pay-per-use services for determining location by IP. These services can be expensive, however, and don't necessarily offer the kind of functionality a programmer may want when designing his or her Web site or application.

Several years ago, CAIDA, the Cooperative Association for Internet Data Analysis, began a geolocation by IP address effort called NetGeo. This system was a publicly accessible database of geographically located IP addresses. Through the use of many complex rules, the NetGeo database slowly filled and was corrected for the location of IP addresses. The project has been stopped, however, and the technology was licensed to new partners. However, the database still is available, although several years old, and provides a good resource for determining rough locations.

To query the NetGeo database, an HTTP request is made with the query IP address, like this:


--
$ http://netgeo.caida.org/perl/netgeo.cgi?target=192.168.0.1 
VERSION=1.0
TARGET: 192.168.0.1
NAME: IANA-CBLK1
NUMBER: 192.168.0.0 - 192.168.255.255
CITY: MARINA DEL REY
STATE: CALIFORNIA
COUNTRY: US
LAT: 33.98
LONG: -118.45
LAT_LONG_GRAN: City
LAST_UPDATED: 16-May-2001
NIC: ARIN
LOOKUP_TYPE: Block Allocation
RATING: 
DOMAIN_GUESS: iana.org
STATUS: OK
--

As you can see, the NetGeo response includes the city, state, country, latitude and longitude of the IP address in question. Furthermore, the granularity (LAT_LONG_GRAN) also is estimated to give some idea about the accuracy of the location. This accuracy also can be deduced from the LAST_UPDATED field. Obviously, the older the update, the more likely it is that the location has changed. This is true especially for IP addresses assigned to residential customers, as companies holding these addresses are in constant flux.

In order to make this database useful to an application or Web site, we need to be able to make the request through some programming interface. Several existing packages assist in retrieving information from the NetGeo database. The PEAR system has a PHP package (see Resources), and a PERL module, CAIDA::NetGeo::Client, is available. However, it is a relatively straightforward task to make a request in whatever language you are using for your application or service. For example, a function in PHP for getting and parsing the NetGeo response looks like this:


--
1: function getLocationCaidaNetGeo($ip)
2: { 
3: $NetGeoURL = "http://netgeo.caida.org/perl/netgeo.cgi?target=".$ip; 
4:  
5: if($NetGeoFP = fopen($NetGeoURL,r))
6: { 
7:         ob_start();
8: 
9:         fpassthru($NetGeoFP);
10:         $NetGeoHTML = ob_get_contents();
11:         ob_end_clean();
12:
13: fclose($NetGeoFP);
14: }
15: preg_match ("/LAT:(.*)/i", $NetGeoHTML, $temp) or die("Could not find element LAT");
16: $location[0] = $temp[1];
17: preg_match ("/LONG:(.*)/i", $NetGeoHTML, $temp) or die("Could not find element LONG");
18: $location[1] = $temp[1];
19:
20: return $location;
21: }
--

Using DNS to Your Advantage

As previously mentioned, the NetGeo database slowly is becoming more inaccurate as IP address blocks change hands in company close-outs and absorptions. Several other tools are available for determining location, however. A description of the NetGeo infrastructure itself (see Resources) presents some of the methods it employed for mapping IP addresses and can be a source of guidance for future projects.

One of the most useful geolocation resources is DNS LOC information, but it is difficult to enforce across the Internet infrastructure. RFC 1876 is the standard that outlines "A Means for Expressing Location Information in the Domain Name System." Specifically, this is done by placing the location information of a server on the DNS registration page. Several popular servers have employed this standard but not enough to be directly useful as of yet.

To check the LOC DNS information of a server, you need to get the LOC type of the host:


--
$ host -t LOC yahoo.com
yahoo.com LOC 37 23 30.900 N 121 59 19.000 W 7.00m 100m 100m 2m
--

This parses out to 37 degrees 23' 30.900'' North Latitude by 121 degrees 59' 19.000'' West Longitude at 7 meters in altitude, with an approximate size of 100 meters at 100 meters horizontal precision and 2 meters vertical precision. There are several benefits to servers that offer their geographic location in this way. First, if you are connecting from a server that shows its DNS LOC information, determining your geolocation is simple, and applications may use this information without further work, although some verification may be useful. Second, if you are connecting on your second or third bounce through a server that has DNS LOC information, it may be possible to make an estimate of your location based on traffic and ping times. However, it should be obvious that these estimates greatly degrade accuracy.

It also is possible to put the DNS LOC information for your Web site in its registration (see Resources). If more servers come to use LOC information, geolocation accuracy will be much easier to attain.

Sidebar: host

host is a DNS lookup utility that allows users to find out various pieces of information about a host. The simplest use is doing hostname to IP address lookups and the reverse. The reverse, dotted-decimal IPv4 notation, is used for this, and the actual server that hosts the canonical name is returned. The type flag, -t, can be used to obtain specific information from the host record from the name server.

Where There's a Name, There's a Way

Many users hopping onto the Internet probably aren't coming from a major server. In fact, most users don't have a static IP address. Dial-up, cable modems and cell phone connections are assigned a dynamic IP address that may change multiple times in one day or not at all for several weeks. Therefore, it becomes difficult to tie these dynamic addresses to a single location.

To our rescue, these service providers typically provide an internal naming scheme for assigning IP addresses and associating names with these addresses. Typically, the canonical name of an IP address contains the country-code top-level domain (ccTLDs) in a suffix. CN is China, FR is France, RO is Romania and so on. Furthermore, the name even may contain the city or region in which the IP address is located. Often, however, this information is shortened to some name that requires a heuristic to determine. For example, in your service or application, a user may appear to be coming from d14-69-1-64.try.wideopenwest.com. A whois at this address reveals it is a WideOpenWest account from Michigan. Using some logic, it is possible to deduce that this user is connecting through a server located in Troy, MI, hence the .try. in the canonical name.

Some projects have been started to decipher these addresses (see Resources), and you also can get all of the country codes and associated cities and regions of a country from the IANA Root-Zone Whois Information or the US Geospatial Intelligence Agency, which hosts the GEOnet Names Server (GNS). The GNS has freely available data files on almost all world countries, regions, states and cities, including their sizes, geographic locations and abbreviations, as well as other information.

Information such as that presented on the GNS also can be used to provide users with utilities and services specific to their geographical locations. For example, it is possible to determine a user's local currency, time zone and language. Time zone is especially useful for members of a community or chat group to determine when another friend may be available and on-line.

Where Are You Located?

Now that we've explained some of the techniques that can be used in geolocating Internet users by their IP addresses, we offer you a chance to try it out. Point your Web browser of choice here, and see how accurate or inaccurate the current results are. Please leave comments below about the accuracy of your results as well as any ideas you may have.

Andrew Turner is an aerospace engineer and currently is developing vehicle simulation software for Realtime Technologies, Inc., in Royal Oak, Michigan. When he's not busy developing software tools for work and play, he's apt to be scuba diving, curling or separating his cat and dog. He can be contacted at ajturner@highearthorbit.com.

__________________________


Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer

Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anonymous's picture

I found a new site

On June 16th, 2009 Anonymous (not verified) says:

I found a new site to check out IP Address details through
http://www.ipaddressgeolocation.com

Anonymous's picture

hello I found a new site to

On June 13th, 2009 Anonymous (not verified) says:

hello
I found a new site to check out IP Address details through www.IpAddressGeolocation.com

Anonymous's picture

hai, You gave a benefits of

On May 20th, 2009 Anonymous (not verified) says:

hai,
You gave a benefits of geolocation using the ip address.It is nice.
But i collected the details of ip address and location from this ip-details.It also used to finding domain host,broadband speed,and latitude and longitude of the location.It is really helpful for me.

Misafir's picture

services

On February 3rd, 2009 Misafir says:

There are a so many services that has such function.

sandeep's picture

Is it possible?

On January 24th, 2009 sandeep (not verified) says:

Sir/Madam,

My name is Sandeep.I am staying in Mumbai(India-Maharashtra).I want some help from you.

Is it possible?Suppose,How can i know from where any E-mail has came?Is there any web-site to find out from where the mail has came?

Thanks!
Sandy.

Mark Status's picture

I tried to use IP

On January 18th, 2009 Mark Status (not verified) says:

I tried to use IP geolocation with Google Maps and I barely made this work. Can anyone help me with this issue?

Mark Status

geoplugin's picture

Don't know why my previous

On January 11th, 2009 geoplugin (not verified) says:

Don't know why my previous post was deleted, but it's worth pointing out that this article is old and netgeo.caida.org is no longer maintained.

For easy geolocation without any software requirements, geoPlugin offers a free webservice.

The geolocation examples page gives ideas on how to use the service, with detailed highlighted code.

IP Address Lookup's picture

IP Address Lookup

On December 26th, 2008 IP Address Lookup (not verified) says:

The best I know, is IP Address Lookup ! I am using it since I discovered it. It is very accurate.

prabu's picture

needs more testing

On December 19th, 2008 prabu (not verified) says:

"Could not open postal code file"

Anonymous's picture

Free country geolocation

On November 13th, 2008 Anonymous (not verified) says:

Anonymous's picture

IP to city level geo info with Google map

On October 21st, 2008 Anonymous (not verified) says:

IpGeoInfo.com provides very easy to use city level geolocation service. It also shows the location on the google map. You cal also create links of the type http://ipgeoinfo.com/?ip=YOUR_IP in any web page etc easy access to the service.

winsute@yahoo.com.au's picture

bloody annoying , language by geolocation

On September 17th, 2008 winsute@yahoo.com.au (not verified) says:

I hate it. My browser can send my language preferences. And the websites ignore them simply because i am in some other country. I am an english speaker, and I want my web pages (yes you google and myspace) in ENGLISH!!!
If I wanted them in german, i'd set my system preferences or browser language preferences to german. Having regions in what is and should be an international internet is completely wrong.
And i would complain about the same thing if i was japanese traveling in England or America and getting english websites back. Or a spanish person traveling in norway. Hell, why the hell would I, as a spanish speaker, want to get my web pages viewed in Norwegian, just because I am traveling in that country.

Jim KN's picture

IP Address Allocation Trend 2008

On May 17th, 2008 Jim KN (not verified) says:

I found the following report interesting about the trends of IP address allocation in 2007-2008. Some countries are growing at very fast rate.

http://www.ip2location.com/ip2location-internet-ip-address-2008-report.aspx

Anonymous's picture

ip location free service

On April 25th, 2008 Anonymous (not verified) says:

Good way to determine the ip location of a user with this ip-location free service.

D.A.

Alex T.'s picture

There are a so many services

On March 18th, 2008 Alex T. (not verified) says:

There are a so many services that has such function. But I created my own to get the easiest way to determine geo location.

Anonymous's picture

Beta?

On April 22nd, 2008 Anonymous (not verified) says:

Alex,
Your IP tool doesn't work. I'm nowhere NEAR where it says I am.

Alex T.'s picture

There are a so many services

On March 18th, 2008 Alex T. (not verified) says:

There are a so many services that has such function. But I created my own to get the easiest way to determine geo location.

tonykbl's picture

Could not open country code file

On December 11th, 2007 tonykbl (not verified) says:

When i go to view the example i get the following error 'Could not open country code file'

ned96's picture

Free geolocation 'widget'

On August 29th, 2007 ned96 (not verified) says:

Check out http://freeipservices.com. It runs on Amazon's ec2 infrastructure and you can use it as a javascript widget on your web page to track each and every customer who comes to your site. It gives latitude, longitude, city, state/province and country information.

portrait artist's picture

Potentials of Geolocation Technique

On September 11th, 2007 portrait artist (not verified) says:

How effect is this technique? Isn’t it that one can manually change his or her IP? I’ve known that some webmasters especially the ones involved in marketing and advertising keep a record of free IPs in their file and manually changes their computer IP into another one. This new IP is registered as coming from someone located in Germany when actually the webmaster is from India. How can geolocation solve this?

gifts's picture

RSS feeds?

On August 18th, 2007 gifts (not verified) says:

I'm seeing something, that I think, is pretty interesting with the idea of geolocations. Perhaps you can have some sort of “RSS feed

spenser's picture

it's not always language

On May 28th, 2007 spenser (not verified) says:

For those jumping up and down about geolocation causing content to be delivered in other than their preferred language, yes, that is an improper use of the data since your browser sends an explicit preference. However, that aside, the data has uses. For example, some service providers try to point the user to the closest server in an attempt to provide faster service. That has nothing to do with privacy or language.

Anonymous's picture

could not open postal code

On April 13th, 2007 Anonymous (not verified) says:

could not open postal code file

Anonymous's picture

need help on IP

On April 9th, 2007 Anonymous (not verified) says:

what am i to do ?

someone is trying to find out my IP number. is this possible?
what can he do when he gets my Ip number?

Anonymous's picture

yes it is possible.for

On August 10th, 2007 Anonymous (not verified) says:

yes it is possible.
for instance, if you are chatting with me then by running tracert command in command prompt in windows operating system, i could the list of ip address of the machine to which i'm connected now. then by simply closing all the other applications except the chatting application, i could find out your ip address

Anonymous's picture

need help on IP

On April 9th, 2007 Anonymous (not verified) says:

what am i to do ?

someone is trying to find out my IP number. is this possible?
what can he do when he gets my Ip number?

Jack's picture

free geolocation

On December 5th, 2006 Jack (not verified) says:

IPligence has a free geolocation database called IPligence community edition, it allows to find the ip location of ip addresses and its free to use for non commercial activities or develpment, it can be downloaded from this link:

http://www.ipligence.com/en/products/community.php

Anonymous's picture

correct link

On December 8th, 2006 Anonymous (not verified) says:

this one seems to work http://www.ipligence.com/community

Paul.J's picture

I prefer the IP Locate

On January 2nd, 2007 Paul.J (not verified) says:

I prefer the IP Locate service. Uses that ajax so its much smoothing. Happy new year all!

Puneet's picture

Find out your ip address and map it on google map

On December 4th, 2006 Puneet (not verified) says:

hi all,
use this link to find out your geographical location based on ip address
www.geo-location.com/cgi-bin/index.cgi

Anonymous's picture

Another IP to location

On October 30th, 2007 Anonymous (not verified) says:

Another website that locates an ip address on a google map. It seems you can also enter a domain/website and find out where it is hosted .... interesting.

www.geo-ip.info

Zsuzsanna Vizi's picture

geolocation

On October 22nd, 2006 Zsuzsanna Vizi (not verified) says:

"Point your Web browser of choice here, and see how accurate or inaccurate the current results are."

The result is the following:
Could not open postal code file

proxy site's picture

I'm seeing article, that I

On October 16th, 2007 proxy site (not verified) says:

I'm seeing article, that I think, is charming interesting with the idea of geolocations. Perhaps you can have approximately sort of “RSS fuel up

Anonymous's picture

Hostip.info ..... it gets

On September 25th, 2006 Anonymous (not verified) says:

Hostip.info ..... it gets the country right.... but every time i refresh i get a new city name

strange! i'd rather you got it wrong once rather than guessing it wrong constantly

Anonymous's picture

Geolocation by IP address is

On July 20th, 2006 Anonymous (not verified) says:

Geolocation by IP address is a terrible practice. I, for example, am a US Citizen traveling in Japan. I do NOT speak or read Japanese. However, many web sites (google, skype, rhapsody, to name a few, as well as banner ads) redirect me to their Japanese web sites. Not only does this not do me any good at all, but I can't find my way back to an English written web site and when I do, it just redirects me back to the Japanese one as soon as I click a link! It's terribly frustrating, and in today's world of business, with global travelers and military deployed world-wide, the very idea of using one's IP address to determine language is laughable. Really, people, if you are going to link language to anything, you should be taking advantage of the protocol set forth specifically for doing so: the system user preference for language. I realize that while within one's own geographical confines, this IP binding practice may be beneficial, it is detrimental to the point of driving the end user insane outside of his or her native geographical region. Let's stop letting technology control us, and take back the reigns, because after all, technology is supposed to serve us, not the other way around.

Anonymous's picture

It's a great Idea

On April 5th, 2007 Anonymous (not verified) says:

I travel a lot around Asia and nothing annoys me more than a foreigner who complains about things not being in English. If you don't intend to learn the language and culture then go home. As far as identifying IPs for specific countries, its a great idea, and if you want the world to change orbit for your arrogant ways well you won't find much sympathy on your travels so your post is pointless. A web page is going to guess what and how many langauges you can speak? How about you live up to being a global citizen and learn another language at least.

Anonymous's picture

How about getting off your

On August 8th, 2007 Anonymous (not verified) says:

How about getting off your arrogant pedestal and admitting that maybe it's better that the technology serves the user rather than the other way around? Not everyone that's even a citizen or resident of a given country wants to see the majority language in that country just because their IP address happens to be identified as being in that region. (Think Spanish-speakers or Chinese-speakers in the US--it doesn't mean they don't speak the language, just that they prefer their own, for whatever personal or cultural reasons.) There is a specific setting in the browser that tells the server which language the user prefers. This has a very high probability of being correct. The IP address has a very high chance of being incorrect in this regard. Why should the server ignore the explicit directive from the user's own browser and decide that they should see what it thinks their IP address belongs to?

Anonymous's picture

It really isn't a terrible

On January 9th, 2007 Anonymous (not verified) says:

It really isn't a terrible practice. If you truely are an international traveler you should get yourself a proxy and quit worrying about region specific websites. Don't blame the technology when you don't understand, or take the time to utilize effectively.

Anonymous's picture

Pointing in the wrong direction

On September 17th, 2006 Anonymous (not verified) says:

Let's not go overboard with the "We are being controlled by our technology" speech.

It is not technology which is foisting the Japanese text on you, but a person who decided it would be a good idea to use geolocation by IP, instead of the user's settings. It is a misapplication of technology. People do that. Technology doesn't apply itself, even when it appears to be automagic.

James D Semple's picture

Geo-IP Location in the Travel Industry

On May 17th, 2006 James D Semple (not verified) says:

Hi Everyone, I've implemented a solution from MaxMind's free database and added some of my own data/testing also. I think this will work nice for the travel market, since usually a person travelling cares about a metropolitan area rather than a rural town in most cases, heck they may even be lost in a rural town or need to find out what's going on in the big city. A buddy of mine is in Europe now (currently Austria) and tested it out, he said he was in Villach and it pointed him to Vienna instead. A few friends back home in Canada here are being pointed to Toronto (we're outside Toronto) I'm guessing with DSL it goes to Toronto's server. Some point correctly to their city, some not. I expect as the site grows to accept user input as to their location and for people to offer up where they were (it would be nice if everyone had a static ip!) I hope to correct the database to 99.9% reliability someday, but that seems a little unrealistic since like many mentioned some ISPs are not located in the same city irregardless. Check it out http://www.boomtrek.com/ where did it send you? You can contact me on MSN boomtrek@hotmail.com if you like what I'm doing and want to talk.

Anonymous's picture

Check out

On October 26th, 2005 Anonymous (not verified) says:

Check out this:
http://www.themidnightcoders.net/examples/messageserver/chat/mapchatajax.htm

The example does what the article is talking about.

R. Scott Perry's picture

Better URL for testing

On March 16th, 2005 R. Scott Perry (not verified) says:

The old URL to test geolocation no longer works. You may want to point people to http://www.DNSstuff.com/tools/city.ch instead.
       -Scott

Andy Turner's picture

Geolocation URL restored

On April 30th, 2005 Andy Turner (not verified) says:

The link has been restored. It was accidentally moved during a site upgrade. My apologies.

Anonymous's picture

Localisation and You (John Robinson at 1341 Crescent Dr....)

On March 1st, 2005 Anonymous (not verified) says:

Besides the worrying implications for privacy, I strongly believe on principle that you should not know my true IP nor be able to trace it to a specific geographical location. Geolocation by IP is a prime example of modern software trying so hard to be "smart" that it ends up dumb. My browser (like almost all browsers) will explicitly identify the preferred language and region of my system based upon user-defined choices on the OS-level, and yet, sites like google.com will insist on trying to "guess" my language/country based upon my IP, which is highly variable. Not that I entirely agree with browsers leaking that information in the first place, but it makes much more sense to base the rendering/forwarding of a webpage on OS-level user-defined choices than on a systems guesses based upon IP, especially for those with proxied systems. I do not just dislike modern localisation technologies, I oppose them unreservedly, along with all they represent.

Anonymous's picture

Localisation and You (John Robinson at 1341 Crescent Dr....)

On August 26th, 2007 Anonymous (not verified) says:

Besides the worrying implications for closed meeting, I strongly pretend on familiarization that you have need to not transmission my offbeat IP nor be able to trace it to a remedy geographical location. Geolocation by IP is a prime example of late software counteractive so close to be "smart" that it ends up duncical. My browser (nonresisting almost all browsers) you name it explicitly identify the preferred language and region of my unify damnabled inlet user-defined choices on the OS-level, and yet, sites nothing loath google.com with total dedication avow on fatiguesome to "fortune-tell" my language/country chemicald make an overture my IP, which is well variable. Not that I entirely acquiesce in with browsers leaking that control signals in the essential chaussee, but it makes much more splash to alloisomer the rendering/forwarding of a webpage on OS-level user-defined choices excepting on a unifys hold ases below contemptd gather IP, remarkably for those with proxied toss togethers. I do not apt dissilver-voiced modish localisation technologies, I oppose them unreservedly, along with all it evidence.

Sesso Incontri's picture

Re:Localisation and You

On February 6th, 2006 Sesso Incontri (not verified) says:

From geobytes faq "To achieve this we acquire seed data from a number of
sources. All of these sites ask the web surfer to provide their
geographic location, and this location along with the user's IP Address
is forwarded to us as seed data. We then run this data through a series
of algorithms which identify and extract collaborating seed points."

So the process in reverse is a little bit like the RIR whois which
correlates an IP with a provider netblock, except for geo the IP is
correlated with a much more finely granular block or group of IPs
corresponding to a little geographic area.

Pat Plaehn's picture

Incorrect geolocation determination

On January 12th, 2005 Pat Plaehn (not verified) says:

The geolocation service you provided had me in Bordeaux, Gironde (department), aquitaine (region), France. I am in Dunstable, MA, USA.

Anonymous's picture

me too

On March 27th, 2006 Anonymous (not verified) says:

It had me in Auckland NZ - I am in Rennes, France!!! Couldn't be more wrong :-)

Vaffunculo's picture

re:Incorrect geolocation determination

On February 6th, 2006 Vaffunculo (not verified) says:

99%? It appears that 24.178.53.0/24 all shows Belleville. Possible, it
is big enough. But, it also seems to show 24.178.53.0/24 as all
Waterloo. That seems odd, assuming the blocks are all Charter Business
Net assigned. So,I'll speculate a little.

There are many small/very small towns in that area. The IP blocks may be
assigned to a POP that services a general area. So, the machine may not
actally be in Belleville, it may be in a nearby town.

Anonymous's picture

Hello all! Does someone kn

On November 26th, 2004 Anonymous (not verified) says:

Hello all!

Does someone know a really free database with geolocations? I need something I can download and it should contain the Country and the City for a given IP.

Thanks! :)

Post new comment

Please note that comments may not appear immediately, so there is no need to repost your comment.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

Newsletter

Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
Sign up for our Email Newsletter

Tech Tip Videos

From the Magazine

July 2009, #183

News Flash: Linux Kernel 3.0 to include an on-the-go Expresso machine interface! Ok, maybe not, but Linux is definitely going mobile, from phones to e-readers. Find out more inside about Android, the Kindle 2, the Western Digital MyBook II, The Bug, and Indamixx (a portable recording studio). And if you've gone mobile and you been wanting more Emacs in your life then check out Conkeror.


To compliment the mobile we've got the stationary: parsing command line options with getopt, checking your Ruby code with metric_fu, and building a secure Squid proxy. How is this stationary you ask? What can we say? It's not. We just wanted to see if anybody actually read this part of the page :) .


All this and more, and all you have to do is get your hot sweaty hands on the latest copy of Linux Journal.





Read this issue