Ensure port flag is an int if provided; s/listent/listen/