ResolveHostname (open)

Resolve a hostname to an IP address

Syntax

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

STRING FUNCTION ResolveHostname(STRING hostname)

Parameters

STRING hostname

Hostname to resolve

Return value

STRING

The IP for this hostname, or an empty string if the hostname couldn't be resolved