Finds an open port and send to stdout