Use getport to find an open port for operation