2021-10-30 18:34:14 +02:00
|
|
|
<!-- 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
|
2021-10-30 21:46:34 +02:00
|
|
|
getHostname(): string;
|
2021-10-30 18:34:14 +02:00
|
|
|
```
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2021-10-30 21:46:34 +02:00
|
|
|
string
|
2021-10-30 18:34:14 +02:00
|
|
|
|
|
|
|
Hostname of the server that the script is on.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
2021-10-30 21:46:34 +02:00
|
|
|
RAM cost: 0.05 GB
|
2021-10-30 18:34:14 +02:00
|
|
|
|