Files
bitburner-src/markdown/bitburner.ns.getpurchasedservers.md

843 B

Home > bitburner > NS > getPurchasedServers

NS.getPurchasedServers() method

Returns an array with the hostnames or IP addresses of all of the servers you have purchased. Returns hostnames by default.

Signature:

getPurchasedServers(returnOpts?: HostReturnOptions): string[];

Parameters

Parameter Type Description
returnOpts HostReturnOptions (Optional) Optional. Controls whether the function returns IPs

Returns:

string[]

Returns an array with the hostnames or IP addresses of all of the servers you have purchased.

Remarks

1.05 GB