Make the port selection for listener fully variable
Slight modify to make the port int by default