add public/private server flag, configurable port number