bitburner-src/markdown/bitburner.ns.getserver.md
omuretsu 06a985bdf8 Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
2022-10-21 11:16:00 -04:00

31 lines
675 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [getServer](./bitburner.ns.getserver.md)
## NS.getServer() method
Returns a server object for the given server. Defaults to the running script's server if host is not specified.
<b>Signature:</b>
```typescript
getServer(host?: string): Server;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| host | string | Optional. Hostname for the requested server object. |
<b>Returns:</b>
[Server](./bitburner.server.md)
The requested server object.
## Remarks
RAM cost: 2 GB