Socket clientSk = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPAddress address = IPAddress.Parse("192.168.1.10"); //客户端的ip
IPEndPoint localIpPoint = new IPEndPoint(address, 0); //0表示绑定由本地系统自动分配的可用端口号
clientSk.Bind(localIpPoint);
clientSk.Connect( IPAddress.Parse(SendIp), SendPort); //服务端的ip和端口