Get Website IP Address in Asp.net
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!");
}
http://
http://www.codedigest.com/CodeDigest/114-Get-Website-IP-Address-in-ASP-Net.aspx
Contributed by:
Rohit kakria
I am software developer, moderator of xpode.com
Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=120
Click here to go on website
|