IP2Location™ 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.

This is a database subscription service. You can download all monthly updates for free if subscription is active.
IPv4 and IPv6 supported.

Current Version November 2017
CSV: 18.20 MB (427,838 Rows)

IP Address to IP Number Conversion 
If the IP address, then the IP number is 2709785857.
IP Number, X = 161 x (256*256*256) + 132 x (256*256) + 13 x (256) + 1 = 2709785857
In general, this is the formula to convert an IP Address to IP Number.
Let assume the IP Address is A.B.C.D.
IP Number, X = A x (256*256*256) + B x (256*256) + C x 256 + D

Download HERE


Please enter your comment!
Please enter your name here