Database
![]() |
IP-Country DatabaseIP2Location™ IP-Country Database [DB1] provides a solution to determine the country of origin for any IP address in a few simple steps. First, retrieve the IP address from the networking protocol or server-side variable of the Web server. Next, translate the IP address to an IP number in decimal format to speed up the database query. Lastly, reverse lookup the IP number from the IP2Location™ database to pinpoint the exact geographical location. |
SAMPLE REQUEST
PRODUCT FEATURES| Features | Translates IP address to country. |
|---|---|
| Current Version | February 2012 |
| Next Update | March 2012 |
| Database Size | 5.21 MB (189,449 Rows) |
| Database Format | ASCII Text File (Comma Delimited) and BIN (API), BIND (DNS Server ACL Format), CIDR, MDB (MS Access), SQL (MySQL dump) |
DATABASE FIELDS| Name | Type | Description |
|---|---|---|
| ip_from | INT(10) | First IP address in netblock. |
| ip_to | INT(10) | Last IP address in netblock. |
| country_code | CHAR(2) | Two-character country code based on ISO 3166. |
| country_name | VARCHAR(64) | Country name based on ISO 3166. |
MISCELLANEOUSLicense Agreement: General Terms and Conditions for the database licensing.
Server License: The number of license required for server installation.
IP2Location™ is a registered trademark of HEXASOFT. All other trademarks are the property of their respective owners.



