getPortHandle() Netscript Function ================================== .. js:function:: getPortHandle(port) :param number port: Port number :RAM cost: 10 GB Get a handle to a Netscript Port. See more details here: :ref:`netscript_ports` **WARNING:** Port Handles only work in :ref:`netscriptjs`. They will not work in :ref:`netscript1`.