Code to test WebRequest and WebResponse

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO;   namespace ReadWebsite { class Program { static void Main(string[] args) { WebRequest request = WebRequest.Create(“”); WebResponse response = request.GetResponse();   StreamReader responseStream = new StreamReader(response.GetResponseStream()); string reponseText = responseStream.ReadToEnd();   Console.WriteLine(reponseText); Console.Read();   response.Close(); } } }

Enable ICMP for PING

  netsh advfirewall firewall set rule name=”File and Printer Sharing (Echo Request – ICMPv4-In)” new enable=yes   netsh advfirewall firewall add rule name=”Windows Remote Management (HTTP-In)” dir=in action=allow service=any enable=yes profile=any localport=5985 protocol=tcp     netsh advfirewall firewall add rule name=”ICMPv6 echo” dir=in action=allow enable=yes protocol=icmpv6:128,any