bitburner-src/markdown/bitburner.ns.gethostname.md
Olivier Gagnon feb0430aff work on doc
2021-10-30 15:46:34 -04:00

486 B

Home > bitburner > NS > getHostname

NS.getHostname() method

Returns a string with the hostname of the server that the script is running on.

Signature:

getHostname(): string;

Returns:

string

Hostname of the server that the script is on.

Remarks

RAM cost: 0.05 GB