Home > bitburner > Cloud > getServerNames
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[];|
Parameter |
Type |
Description |
|---|---|---|
|
returnOpts |
(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.
RAM cost: 1.05 GB