https://github.com/indexzero/node-portfinder We might use special port number "auto" for this This would greatly simplify running multiple debug sessions on the same computer. Base ports should be default 5858 / 3219 for debugger/netbeans