use function for (stricter) IPv4 check