Make it able to assign static port number for event listener