bitburner-src/doc/source/netscript/basicfunctions/getServerNumPortsRequired.rst
2021-03-12 02:51:56 -05:00

16 lines
445 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
getServerNumPortsRequired("unitalife"); // returns: 4