49 references to IPv6Any
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
866return host == "*" || host == "+" || host == IPAddress.Any.ToString() || host == IPAddress.IPv6Any.ToString();
Aspire.Dashboard.Tests (1)
Integration\StartupTests.cs (1)
720Assert.True(ipEndPoint.Address.Equals(IPAddress.Any) || ipEndPoint.Address.Equals(IPAddress.IPv6Any), "Endpoint address should be IPv4 or IPv6.");
InProcessWebSite (4)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (4)
368ctx.Connection.LocalIpAddress = IPAddress.IPv6Any; 369Assert.Equal(IPAddress.IPv6Any, ctx.Connection.LocalIpAddress); 372ctx.Connection.RemoteIpAddress = IPAddress.IPv6Any; 373Assert.Equal(IPAddress.IPv6Any, ctx.Connection.RemoteIpAddress);
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
779context.Connection.RemoteIpAddress = IPAddress.IPv6Any; 828Assert.Equal(IPAddress.IPv6Any, connectionHttpContext.Connection.RemoteIpAddress);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
AnyIPListenOptions.cs (1)
14: base(new IPEndPoint(IPAddress.IPv6Any, port))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (20)
AddressBinderTests.cs (2)
59Assert.Equal(IPAddress.IPv6Any, listenOptions.IPEndPoint.Address); 267if (endpoint.IPEndPoint.Address.Equals(IPAddress.IPv6Any))
KestrelServerTests.cs (18)
473Assert.Equal(IPAddress.IPv6Any, ((IPEndPoint)transportEndPoint.OriginalEndPoint).Address); 474Assert.Equal(IPAddress.IPv6Any, ((IPEndPoint)multiplexedTransportEndPoint.OriginalEndPoint).Address); 502Assert.Equal(IPAddress.IPv6Any, ((IPEndPoint)transportEndPoint.OriginalEndPoint).Address); 530Assert.Equal(IPAddress.IPv6Any, ((IPEndPoint)multiplexedTransportEndPoint.OriginalEndPoint).Address); 826mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5000), It.IsAny<CancellationToken>()), Times.Once); 827mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5001), It.IsAny<CancellationToken>()), Times.Once); 828mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5002), It.IsAny<CancellationToken>()), Times.Never); 829mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5003), It.IsAny<CancellationToken>()), Times.Never); 847mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5000), It.IsAny<CancellationToken>()), Times.Once); 848mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5001), It.IsAny<CancellationToken>()), Times.Once); 849mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5002), It.IsAny<CancellationToken>()), Times.Once); 850mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5003), It.IsAny<CancellationToken>()), Times.Once); 876mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5000), It.IsAny<CancellationToken>()), Times.Once); 877mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5001), It.IsAny<CancellationToken>()), Times.Once); 878mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5002), It.IsAny<CancellationToken>()), Times.Once); 879mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5003), It.IsAny<CancellationToken>()), Times.Exactly(2)); 964mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5000), It.IsAny<CancellationToken>()), Times.Once); 965mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5001), It.IsAny<CancellationToken>()), Times.Once);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
SocketTransportOptions.cs (1)
146if (ip.Address.Equals(IPAddress.IPv6Any))
Sockets.BindTests (6)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (6)
943socket.Bind(new IPEndPoint(IPAddress.IPv6Any, 0)); 1059dataset.Add(new IPEndPoint(IPAddress.IPv6Any, 0), "http://127.0.0.1"); 1060dataset.Add(new IPEndPoint(IPAddress.IPv6Any, 0), "http://[::1]"); 1061dataset.Add(new IPEndPoint(IPAddress.IPv6Any, 0), "https://127.0.0.1"); 1062dataset.Add(new IPEndPoint(IPAddress.IPv6Any, 0), "https://[::1]"); 1105{ new IPEndPoint(IPAddress.IPv6Any, 443), "https://[::1]" }
System.Net.NameResolution (5)
System\Net\Dns.cs (5)
45if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any)) 76if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any)) 157if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any)) 206if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any)) 526if (throwOnIIPAny && (ipAddress.Equals(IPAddress.Any) || ipAddress.Equals(IPAddress.IPv6Any)))
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
67if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any))
System.Net.Primitives (1)
System\Net\IPAddress.cs (1)
33public static readonly IPAddress IPv6None = IPv6Any;
System.Net.Quic (1)
System\Net\Quic\QuicListener.cs (1)
148if (options.ListenEndPoint.Address.Equals(IPAddress.IPv6Any))
System.Net.Sockets (5)
src\libraries\Common\src\System\Net\IPEndPointStatics.cs (1)
10internal static readonly IPEndPoint IPv6Any = new IPEndPoint(IPAddress.IPv6Any, AnyPort);
System\Net\Sockets\Socket.cs (2)
3577if ((boundAddress != null && IsDualMode && (boundAddress.IsIPv4MappedToIPv6 || boundAddress.Equals(IPAddress.IPv6Any)))) 3875return IPAddress.Any.Equals(address) || IPAddress.IPv6Any.Equals(address) || s_IPAddressAnyMapToIPv6.Equals(address);
System\Net\Sockets\TCPListener.cs (1)
258listener = new TcpListener(IPAddress.IPv6Any, port);
System\Net\Sockets\UDPClient.cs (1)
73localEP = new IPEndPoint(IPAddress.IPv6Any, port);