Keep on getting "failed to connect to the server"