IPHostEntry myHost = new IPHostEntry();myHost = Dns.Resolve(已知的计算机名);IPAddress ip =myHost.AddressList[0];