client connects to server