摘要: 具体方法为如下: private void btnChenk_Click(object sender, System.EventArgs e) { System.Net.IPAddress[] addressList = Dns.GetHostByName(Dns.GetHostName()).AddressList; if ( addressList.Length>1) { nativeIP.Text = addressList[0].ToString(); serverIP.Text = addressList[1].ToString(); } else { nativeIP.Tex 阅读全文
posted @ 2011-03-15 14:13 PointNet 阅读(9750) 评论(1) 推荐(0) 编辑