Refactor to setup server with out giving host port