mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +01:00
24 lines
486 B
Markdown
24 lines
486 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getHostname](./bitburner.ns.gethostname.md)
|
|
|
|
## NS.getHostname() method
|
|
|
|
Returns a string with the hostname of the server that the script is running on.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
getHostname(): string;
|
|
```
|
|
<b>Returns:</b>
|
|
|
|
string
|
|
|
|
Hostname of the server that the script is on.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0.05 GB
|
|
|