public void BindTest() { var addr = NetHelper.GetIPsWithCache().FirstOrDefault(e => e.IsIPv4() && !IPAddress.IsLoopback(e)); Assert.NotNull(addr); var uri = new NetUri(NetType.Udp, addr, 12345); var client = uri.CreateClient(); client.Open(); }
public void BindTest() { var addr = NetHelper.GetIPsWithCache().FirstOrDefault(e => e.IsIPv4() && !IPAddress.IsLoopback(e)); Assert.NotNull(addr); var uri = new NetUri(NetType.Udp, addr, 12345); var client = uri.CreateClient(); client.Open(); }