1: Ping p = new System.Net.NetworkInformation.Ping(); 2: PingReply r; 3: 4: String s = "10.10.10.10"; //Replace input from your text box for IP address here 5: 6: r = p.Send(s); 7: 8: Response.Buffer = false; 9: 10: if (r.Status == IPStatus.Success) 11: { 12: 13: lblpingstatus.Text = "Ping to " + s.ToString() + "[" +…