This package validates IPv4 addresses. WWW: http://pear.php.net/package/Net_CheckIP/