Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 756 Bytes

bitburner.ns.scan.md

File metadata and controls

32 lines (18 loc) · 756 Bytes

Home > bitburner > NS > scan

NS.scan() method

Get the list of servers connected to a server.

Signature:

scan(host?: string): string[];

Parameters

Parameter Type Description
host string Optional, Hostname of the server to scan, default to current server.

Returns:

string[]

Returns an string of hostnames.

Remarks

RAM cost: 0.2 GB

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