It will be safer to use port 0... this will be passed onto node and it will listen on an available port.  Then in the callback to server.start you can get the port from `server.info.port`.