摘要: codepublicstaticIPAddressGetHostIP(){IPHostEntryipe=Dns.GetHostEntry(Dns.GetHostName());IPAddressip=ipe.AddressList[0];returnip;}privateStringGetIPAddress(){Stringstr;StringResult="";StringhostName=Dns.GetHostName();IPAddress[]myIP=Dns.GetHostAddresses(hostName);foreach(IPAddressaddressinm 阅读全文
posted @ 2013-03-16 12:46 蓝色L火焰 阅读(496) 评论(0) 推荐(0) 编辑