DNS error while pinging the server

SubhaMuralidharan.6484SubhaMuralidharan.6484 USMember
edited July 2016 in Xamarin.Android

When I try to ping my server I am getting following error:

    {System.Net.Sockets.SocketException: Could not resolve host 'https://myserver.com'
      at System.Net.Dns.Error_11001 

Ping Code:

System.Net.NetworkInformation.Ping pingSender = new System.Net.NetworkInformation.Ping();
            System.Net.NetworkInformation.PingReply reply = pingSender.Send(url);
            if(reply.Status == IPStatus.Success)
            {
                return true;
            }
            else
            {
                return false;
            }

Server is up, what is the reason why it is giving this error.

Tagged:
Sign In or Register to comment.