mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 01:03:01 +02:00
690 B
690 B
Home > bitburner > NS > getServer
NS.getServer() method
Returns a server object for the given server. Defaults to the running script's server if host is not specified.
Signature:
getServer(host?: Host): Server;
Parameters
| Parameter | Type | Description |
|---|---|---|
| host | Host | Optional. Hostname or IP for the requested server object. |
Returns:
The requested server object.
Remarks
2 GB