PINGPORT
From Dark Signs Online
int PINGPORT(string server, int port)
Pings the specified port on the specified server, returning 0 when there is no script running on the port, or 1 when there is.
Parameters
server The server where the request will be sent. Can be an IP address or domain name.
port The port to ping.
Example
Check if the site that is given has this port open.
$v = PINGPORT(1.1.1.1, 80) WAIT FOR $v SAY Response : $v on IP 1.1.1.1 PORT 80