bitburner-src/doc/source/netscript/basicfunctions/getHostname.rst
2023-01-30 20:51:00 +02:00

14 lines
288 B
ReStructuredText

getHostname() Netscript Function
==============================
.. js:function:: getHostname()
:RAM cost: 0.05 GB
Returns a string with the hostname of the server that the script is running on.
Examples:
.. code-block:: javascript
ns.tprint(ns.getHostname())