Issue with client side
Refactor to setup server with out giving host port