PINGPORT

From Dark Signs Online
Revision as of 05:10, 18 March 2024 by Doridian (talk | contribs) (Created page with "''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.<br /> ''port'' The port to ping. == Example == Check if the site that is given has this port open. <pre>$v = PINGPORT(1.1.1.1, 80) WAIT FOR $v SAY Response : $v on IP 1.1.1.1 P...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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