Files
bitburner-src/markdown/bitburner.cloud.getservernames.md

962 B

Home > bitburner > Cloud > getServerNames

Cloud.getServerNames() method

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

Signature:

getServerNames(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 cloud servers you have purchased.

Remarks

RAM cost: 1.05 GB