Updated port number in chat_server and re-factored usePath.