The 'failed to connect to the server' error appears when the server is down, or you've entered the wrong ip address. Ensure that you have entered the correct ip address and check if the server is online.