Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 682 Bytes

bitburner.ns.getserver.md

File metadata and controls

30 lines (17 loc) · 682 Bytes

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?: string): Server;

Parameters

Parameter Type Description
host string (Optional) Optional. Hostname for the requested server object.

Returns:

Server

The requested server object.

Remarks

RAM cost: 2 GB