geoip - How to use GeoLite City, how to obtain startIpNum and endIpNum -
alright downloaded http://dev.maxmind.com/geoip/legacy/geolite/ geolite city
database.
the values in geolitecity-blocks.csv
startipnum,endipnum,locid "16777216","16777471","17"
however have no idea how convert ips these startipnum , endipnum range. cant find on site , link here
what algorithm convert ip v4 ?
thank much
it depends programmation language use.
in php, can use ip2long , long2ip work ips.
string long2ip ( string $proper_address ) function long2ip() generates internet address in dotted format (i.e.: aaa.bbb.ccc.ddd) proper address representation.
http://php.net/manual/en/function.long2ip.php
example ips give: http://sandbox.onlinephpfunctions.com/code/3decd3d4818a02d65b9a80cf2dc1c70297b0d2d5
Comments
Post a Comment