If you're running a 32 bit machine you can get wrong IPs. To prevent from this just cast to float e.g.
Search by function name:
(PHP 4, PHP 5)
long2ip — Converts an (IPv4) Internet network address into a string in Internet standard dotted format
The function long2ip() generates an Internet address in dotted format (i.e.: aaa.bbb.ccc.ddd) from the proper address representation.
A proper address representation.
Returns the Internet IP address as a string.
CACHED: (2013-05-17 12:02:51)