如何获得本机的IPAddress:IPAddress ad= Dns.GetHostEntry(Dns.GetHostName()).AddressList[0];
如何创建一个IPEndPoint:IPEndPoint ep=new IPEndPoint(ad,portNum);