IsValidIPAddress (open)

Is a string a valid IP address?

Syntax

LOADLIB "wh::internet/tcpip.whlib";

BOOLEAN FUNCTION IsValidIPAddress(STRING address)

Parameters

STRING address

IP address to check

Return value

BOOLEAN

True if the string is a valid IP address

Description

This function tests whether an IP address is a syntactically valid IPv4 or IPv6 IP address