bitburner-src/markdown/bitburner.ns.scan.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

888 B

Home > bitburner > NS > scan

NS.scan() method

Returns an array containing the hostnames or IPs of all servers that are one node way from the specified target server. The hostnames/IPs in the returned array are strings.

Signature:

scan(host: Host, hostnames?: boolean): Host[];

Parameters

Parameter Type Description
host Host Hostname or IP of the server to scan.
hostnames boolean Optional boolean specifying whether the function should output hostnames (if true) or IP addresses (if false).

Returns:

Host[]

Returns an string of hostnames or IP.

Remarks

0.2 GB