changed back the hardcoded localhost address for the chat