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())