Connection to server working