automatically choose port, optionally use catalog server