src/Viserio/Component/Support/Http/ClientIp.php
private function isValidIpAddress(string $ip): bool
    {
        return (bool) \filter_var($ip, \FILTER_VALIDATE_IP, \FILTER_FLAG_IPV4 | \FILTER_FLAG_IPV6);
    }
private function isValidIpAddress(string $ip): bool
    {
        return (bool) \filter_var($ip, \FILTER_VALIDATE_IP, \FILTER_FLAG_IPV4 | \FILTER_FLAG_IPV6);
    }
Check that a given string is a valid IP address.

@param string $ip

@return bool