Decode IP

I need some help to decode location_ip. I thinks Piwik use inet_ntop and hex2bin to encode ip, but I dont know what to do with this info.

Any help would be appreciated

You can use the LIVE API to get the IP in clear text:

Or, you can use the function Piwik_IP::N2P( $encoded) to decode it.