Determines whether the passed string is an IPv6 address (and not an IPv4 one).
Use this function to differentiate between IPv4 and IPv6 addresses.
Limitation:
This functions does only very basic and cheap testing.
It does not validate the IPv6 address at all.
Never pass any sockets to it - IPv4 ones will get detected as IPv6 addresses.
Do not use it for anything else than differentiating IPv4/IPv6 addresses.
Determines whether the passed string is an IPv6 address (and not an IPv4 one). Use this function to differentiate between IPv4 and IPv6 addresses.
Limitation: This functions does only very basic and cheap testing. It does not validate the IPv6 address at all. Never pass any sockets to it - IPv4 ones will get detected as IPv6 addresses. Do not use it for anything else than differentiating IPv4/IPv6 addresses.