摘要:
主程序代码: // 由主机域名获得其IP地址 protected void btnShowLocal_Click(object sender, EventArgs e) { txtaShowAnswer.Value = ""; string strShowAnwser = string.Empty; string strHostName = Dns.GetHostName(); //获取本地主机名 strShowAnwser = "The local host's name is: " + strHostName + "/n" 阅读全文