c# 代码实现通过域名获取IPV4地址
IPHostEntry iPHostEntry = Dns.GetHostByName("www.baidu.com");
IPAddress ip = iPHostEntry.AddressList[0];
label1.Text = ip.ToString();
c# 代码实现通过域名获取IPV4地址
IPHostEntry iPHostEntry = Dns.GetHostByName("www.baidu.com");
IPAddress ip = iPHostEntry.AddressList[0];
label1.Text = ip.ToString();