ping Function

Top  Previous  Next

1.

Syntax

Net.ping(URL)

Net.ping(IP)

Arguments

URLA string URL.
IPAn integer IP address.

Return Value

true if found on the network, false if not.

Remarks

If the argument is an integer, ping assumes it is an IP address. Otherwise, the argument is converted to String if necessary, and ping will first attempt to parse it as an IP address. If that fails, it will assume the string is a URL and perform a DNS lookup.

Examples

 

See Also