scan() Netscript Function

scan(hostname=current hostname)
RAM cost:

0.2 GB

Arguments:
  • hostname (string) – Hostname of the server to scan.
Returns:

array of strings of all the host directly connected to the target server.

Example:

scan("home"); // returns: ["foodnstuff", "sigma-cosmetics", "joesguns", "hong-fang-tea", "harakiri-sushi", "iron-gym"]