toIPAddress

Parses a String for its IPv4 or IPv6 address.

String can be either a URL containing the IP address, or the IPv4/IPv6 address itself.

Return

IPAddress

Throws

if no IP address is found


Converts network ordered bytes to an IPv4 or IPv6 address.

Return

IPAddress

Throws

if array size is not 4 or 16.