C# Winform 获取本机IP地址
2020-12-13 02:45
阅读:553
标签:winform style class blog code ext 这是比较简单的方法,期待你可以一起分享更有好的方法, C# Winform 获取本机IP地址,搜素材,soscw.com C# Winform 获取本机IP地址 标签:winform style class blog code ext 原文地址:http://www.cnblogs.com/craigtao/p/3779500.html
//获取本机IP并显示
System.Net.IPHostEntry hostIP = System.Net.Dns.GetHostEntry(Environment.MachineName);
ipStr.Text = hostIP.AddressList[0].ToString();
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:C# Winform 获取本机IP地址
文章链接:http://soscw.com/index.php/essay/26237.html
文章标题:C# Winform 获取本机IP地址
文章链接:http://soscw.com/index.php/essay/26237.html
评论
亲,登录后才可以留言!