HOME BUY ONLINE DEVELOPERS PARTNERS SUPPORT ABOUT US CONTACT US
products
DB1 IP2Location™ IP- Country
DB2 IP2Location™ IP- Country-ISP
DB3 IP2Location™ IP- Country-Region-City
DB4 IP2Location™ IP- Country-Region-City-ISP
DB5 IP2Location™ IP- Country-Region-City- Latitude-Longitude
DB6 IP2Location™ IP- Country-Region-City- Latitude-Longitude-ISP
DB7 IP2Location™ IP- Country-Region-City- ISP-Domain
DB8 IP2Location™ IP- Country-Region-City- Latitude-Longitude-ISP- Domain
DB9 IP2Location™ IP- Country-Region-City- Latitude-Longitude- ZIPCode
DB10 IP2Location ™ IP- Country-Region-City- Latitude-Longitude- ZIPCode-ISP- Domain
DB11 IP2Location™ IP-Country-Region-City-Latitude-Longitude-ZIPCode-Timezone
DB12 IP2Location™ IP- Country-Region-City- Latitude-Longitude- ZIPCode-TimeZone -ISP-Domain
DB13 IP2Location™ IP- Country-Region-City- Latitude-Longitude- Timezone-Netspeed
DB14 IP2Location™ IP- Country-Region-City- Latitude-Longitude- ZIPCode-Timezone-ISP-Domain-Netspeed
software products
DNx IP2Location™ .NET Component
JVx IP2Location™ Java Component
AXx IP2Location™ ActiveX/COM DLL
ISx IP2Location™ ISAPI Filter
WS1 IP2Location™ IP-Country Web Service
BOx BrowserObject™ Browser Detection
XML SOAP XML Web Services
CPS Custom Programming Services
free resources
IP2Location™ Application (Free)
IP2Location™ Online Demo (Free)
IP2Location™ Email Header Tracer (Free)
IP2Location™ IPV6-COUNTRY Free Edition
IP2Location™ API (Free)
IP2Location™ Articles & Tutorial (Free)
IP2Location™ Downloader Script (Free)
IP2Phrase™ Geo-Personalized Phrase (Free)
IP2Map™ Visitors Tracking by Map (Free)
World Country Information (Free)
ISO 3166 Country Code List (Free)
Flags of the World (Free)
 

IP2Location Ruby Library

IP2Location is a Ruby library that enables the user to find the country, region, city, coordinates, zip code, ISP and domain name that any IP address or hostname originates from. It has been optimized for speed and memory utilization. Developers can use the API to query all IP2Location™ binary databases for applications written in C or supporting static/dynamic library.
 
  Download - Ruby Module
IP2Location Ruby Library [ Version 2.1.1 ]
 
  Download - Sample .BIN Files
IP2Location™ DB1 Sample .BIN File
IP2Location™ DB2 Sample .BIN File
IP2Location™ DB3 Sample .BIN File
IP2Location™ DB4 Sample .BIN File
IP2Location™ DB5 Sample .BIN File
IP2Location™ DB6 Sample .BIN File
IP2Location™ DB7 Sample .BIN File
IP2Location™ DB8 Sample .BIN File
IP2Location™ DB9 Sample .BIN File
IP2Location™ DB10 Sample .BIN File
IP2Location™ DB11 Sample .BIN File
IP2Location™ DB12 Sample .BIN File
IP2Location™ DB13 Sample .BIN File
IP2Location™ DB14 Sample .BIN File
 
Note:The demo version of Binary (.BIN) data file consists of IP address range from 0.0.0.0 to 99.255.255.255. The complete Binary (.BIN) data file is available for all paid subscribers at no extra cost. Please contact our sales department for the download information.
 
  Complete .BIN Files (Subscription Required)
IP2Location™ DB1 Full .BIN File
IP2Location™ DB2 Full .BIN File
IP2Location™ DB3 Full .BIN File
IP2Location™ DB4 Full .BIN File
IP2Location™ DB5 Full .BIN File
IP2Location™ DB6 Full .BIN File
IP2Location™ DB7 Full .BIN File
IP2Location™ DB8 Full .BIN File
IP2Location™ DB9 Full .BIN File
IP2Location™ DB10 Full .BIN File
IP2Location™ DB11 Full .BIN File
IP2Location™ DB12 Full .BIN File
IP2Location™ DB13 Full .BIN File
IP2Location™ DB14 Full .BIN File
 
  Requirements
1) IP2Location C API library (download from http://www.ip2location.com/c.htm)
2) Ruby installed
3) GNU make or any compatible make utility
 
  Installation
1) ruby extconf.rb --with-libIP2Location-lib=<path to C API lib> --with-includeIP2Location-include=<path to C API lib>
  Example: ruby extconf.rb --with-libIP2Location-lib=..\C-IP2Location-2.1.1\libIP2Location --with-includeIP2Location-include=..\C-IP2Location-2.1.1\libIP2Location
2) make
 
  Sample Source Codes
require 'IP2Location'

IP2LocObj = IP2Location.new()
IP2LocObj.open("data/IP-COUNTRY-SAMPLE.BIN")
rec = IP2LocObj.get_all("19.5.10.1")
puts rec.country_short
puts rec.country_long
puts rec.city
puts rec.region
puts rec.isp
puts rec.latitude
puts rec.longitude
puts rec.domain
puts rec.zipcode
puts rec.timezone
puts rec.netspeed

 
 
 
live product demo
 
IP2Location™ Internet
IP Address 2008
Report
 
live product demo
 
IP Address
 
 
IP2Location Affiliate Program
 
Earn up to 20% on Sales from New Customer and
2-Year Return Commission
More Information
testimonials
"No doubt why security expert, Mike Schiffman, author of the Hacker’s Challenge book series recommended IP2Location™ in IP Geo project".
- S. Jones, California (United States)
"I am very satisfied with my purchase for my ip address log analysis project. Got my account immediately right after order approved. No hassle or delay time at all as I always thought. A must to meet project deadline".
- J. Wagner, New York (United States)
"Innovative products with low price tags compared with others million dollars geo-targeting products".
- Balakrishnan, Bangalore (India)
client list
 
client list
 
as seen in
 
msdn
 
eWeek
 
product overview
 
Take a closer look in this in-depth tour and learn more about IP2Location™ products:
IP2Location™ Product Overview
IP2Location™ Product Brochure
showcase
Web Sites Powered by IP2Location™
Geolocation IP Address by IP2Location Prevent Credit Card Fraud by Fraudlabs Zip Code Database Solution by ZIPCodeWorld.com Geographic City Database by GeoDataSource Browser Detection by BrowserObject