added cmd line port selection and default port