Project

General

Profile

Actions

$portfree » History » Revision 2

« Previous | Revision 2/3 (diff) | Next »
Per Amundsen, 06/12/2016 06:18 AM


Added in 1.9.0

$portfree(N,[ipaddress])

Returns $true if the specified port number is not in use, otherwise $false.

Parameters

N - The port number to check.
[ipaddress] - If specified, only the interface with that IP address is checked for used ports, otherwise all active interfaces are checked. An adapter name can also be used instead of an IP address.

Example

; Check if port 4242 is free.
//echo -ag Port 4242 is $iif($portfree(4242), open, not open)

Updated by Per Amundsen over 8 years ago · 2 revisions

Also available in: PDF HTML TXT