mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
766 B
766 B
Home > bitburner > Singularity > getCurrentServer
Singularity.getCurrentServer() method
Get the current server. Returns the hostname by default.
Signature:
getCurrentServer(returnOpts?: HostReturnOptions): string;
Parameters
| Parameter | Type | Description |
|---|---|---|
| returnOpts | HostReturnOptions | (Optional) Optional. Controls whether the function returns an IP. |
Returns:
string
Hostname or IP address of the current server.
Remarks
RAM cost: 2 GB * 16/4/1