Mapping IP addresses to locations

I always kind of wondered how this was done. Nice to find an article with a simple way to do it.

JavaRanch Journal - August 2008, Volume 7, Issue 2