public void Open(IPAddress ip) { CreateSocket(ip.AddressFamily, SocketType.Raw, ProtocolType.Icmp); if (!StringUtils.IsEmpty(LocalBinding)) { NetworkStream.Bind(IpAddressUtils.GetBindingIPAddress(LocalBinding, ip.AddressFamily), 0); } NetworkStream.SetPeerInfo(ip, 0); SetActive(true); NetworkStream.StreamReady(); }