如何动态获取服务器(要连接的PC)的IP地址?
系统.Dns.GetHostEntry http://msdn.microsoft.com/en-us/library/system.net.dns.gethostentry.aspx可用于将名称解析为 IP 地址。