System.Net.IPHostEntry iph = System.Net.Dns.GetHostEntry(Environment.MachineName);
MessageBox.Show( iph.AddressList[0].ToString());
WinForm中获取本机IP
最新推荐文章于 2022-08-09 22:44:22 发布
System.Net.IPHostEntry iph = System.Net.Dns.GetHostEntry(Environment.MachineName);
MessageBox.Show( iph.AddressList[0].ToString());