[Home](./index.md) > [bitburner](./bitburner.md) > [Cloud](./bitburner.cloud.md) > [getServerNames](./bitburner.cloud.getservernames.md) ## 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:** ```typescript getServerNames(returnOpts?: HostReturnOptions): string[]; ``` ## Parameters
| Parameter | Type | Description |
|---|---|---|
| returnOpts | [HostReturnOptions](./bitburner.hostreturnoptions.md) | _(Optional)_ Optional. Controls whether the function returns IPs |