Check connection to server