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: http://piwik.org/docs/analytics-api/reference/#Live

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