bitburner-src/doc/source/netscript/basicfunctions/getServerNumPortsRequired.rst
2023-01-06 14:43:09 +02:00

16 lines
448 B
ReStructuredText

getServerNumPortsRequired() Netscript Function
==============================================
.. js:function:: getServerNumPortsRequired(hostname)
:RAM cost: 0.1 GB
:param string hostname: Hostname of target server.
:returns: The number of open ports required to successfully run NUKE.exe on
the specified server.
Example:
.. code-block:: javascript
ns.getServerNumPortsRequired("unitalife"); // returns: 4