Getting server to communicate with client.