Setting up for server communication