# Ruby IP to Location

**URL:** <https://www.ruby-forum.com/t/ruby-ip-to-location/66574>\
**Category:** Ruby\
**Created:** [August 27, 2006, 6:03am UTC](https://www.ruby-forum.com/t/ruby-ip-to-location/66574 "2006-08-27T06:03:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 27, 2006, 6:03am UTC](https://www.ruby-forum.com/t/ruby-ip-to-location/66574/1 "2006-08-27T06:03:00Z")

</div>

Hey folks

geoip.rb seems to be the only gem for IP to location … and its an  
easy to use and simple gem but it uses the maxmind demo db which is not  
accurate at all… Anyone knows of an free to use ip to location db  
available? I looked around and it looks like maxmind and ip2location  
are the primary paid versions.

Appreciate any pointers… thanks much!  
Alfred  
[Payscroll.com](http://Payscroll.com)

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 27, 2006, 6:23am UTC](https://www.ruby-forum.com/t/ruby-ip-to-location/66574/2 "2006-08-27T06:23:01Z")

</div>

On 06-08-27, at 00:01, removed\_email\_address@domain.invalid wrote:

> Hey folks
> 
> geoip.rb seems to be the only gem for IP to location … and its an  
> easy to use and simple gem but it uses the maxmind demo db which is  
> not  
> accurate at all… Anyone knows of an free to use ip to location db  
> available? I looked around and it looks like maxmind and ip2location  
> are the primary paid versions.

There’s hostip, but it’s only really accurate on the country level.  
Only gets the city right around 40 percent of the time. That said,  
it’d get a lot more right if more people contributed to it.
