getServerNumPortsRequired() Netscript Function

getServerNumPortsRequired(hostname)
RAM cost:

0.1 GB

Arguments:
  • hostname (string) – Hostname of target server.
Returns:

The number of open ports required to successfully run NUKE.exe on the specified server.

Example:

getServerNumPortsRequired("unitalife"); // returns: 4