IPAddress[] IPs = Dns.GetHostAddresses("www.by84.com");
foreach (IPAddress ip in IPs)
{
Response.Write(ip.ToString()+"<br>");
}
foreach (IPAddress ip in IPs)
{
Response.Write(ip.ToString()+"<br>");
}
别忘了引用System.Net命名空间.
2021-07-28 00:59:22
别忘了引用System.Net命名空间.