changed all occurences of localhost to chatClient