[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.
Signature:
```typescript
getHostname(): Host;
```
Returns:
[Host](./bitburner.host.md)
Hostname of the server that the script is on.
## Remarks
0.05 GB