mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
781 B
781 B
Home > bitburner > NS > getServer
NS.getServer() method
Returns a server object for the given server.
Signature:
getServer(host?: string): Server;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
host |
string |
(Optional) Optional. Hostname/IP for the requested server object. Defaults to the server the calling script is running on. |
Returns:
The requested server object.
Remarks
RAM cost: 2 GB