Home > bitburner > Singularity > getCurrentServer
Get the current server. Returns the hostname by default.
Signature:
getCurrentServer(returnOpts?: HostReturnOptions): string;|
Parameter |
Type |
Description |
|---|---|---|
|
returnOpts |
(Optional) Optional. Controls whether the function returns an IP. |
Returns:
string
Hostname or IP address of the current server.
RAM cost: 2 GB * 16/4/1