title: How do I use MaxMind's GeoIP database to determine location?
body: <p>So, I was told in my previous question that I can use the <a href="http://dev.maxmind.com/geoip/geolite" rel="nofollow">databases provided by MaxMind</a> to determine locations.  </p>
  
  <p>So, I got their databases downloaded from their site. They are <code>csv</code> files and open up in Excel.  </p>
  
  <p><code>InetAddress ip = InetAddress.getLocalHost()</code> is how I get the IP of my computer. From there I do <code>String justIP = ip.getHostAddress()</code>  </p>
  
  <p>My question is:<br>
  <li> How do I resolve <code>justIP</code> to a city location using the DB I just downloaded ??? </li><br>
  I am new to this so a little help will be appreciated.  </p>
  
  <p>One of the files has three columns. <code>startIPNum</code>, <code>endIPNum</code> and <code>locID</code> I do not know what these do but I guess <code>locID</code> maps to a city and country location in the other file.</p>