Some time we may need to find out the Ip address of the given website. we may write this code to find out the ip address of the website.
try
{
System.Net.IPAddress[] ip = System.Net.Dns.GetHostAddresses("www.xpode.com");
Response.Write(ip[0]);
}
catch (System.Net.Sockets.SocketException)
{
Response.Write("No Such Website!");
}