Are you using IPv6?
Sadly, no. 18.191.14.104 is not an IPv6 address.
For your information, here is the code I'm using for this:
$ip = getenv("REMOTE_ADDR");
if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === false)
{
echo "
Sadly, no. $ip is not an IPv6 address.
";
}
else
{
echo "
Why, yes. $ip is indeed an IPv6 address. Well done!
";
}