Skip to content

Scan Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

PortScanResult Scan(string host, int start = null, int end = null, int connectionTimeout = null, int maxParallelism = null) ​

csharp
PortScanResult Scan(string host, int start = null, int end = null, int connectionTimeout = null, int maxParallelism = null)

Synchronously scans a range of ports on the specified host.

Parameters ​

NameDescription
connectionTimeoutThe timeout for each port connection attempt, in milliseconds. Default is 1000ms.
endThe ending port number. Default is 65535.
hostThe hostname or IP address to scan.
maxParallelismThe maximum number of concurrent connections. Default is 100.
startThe starting port number. Default is 1.

Returns ​

A PortScanResult containing the list of open ports.