try to connect to server