51 references to IPv6Any
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
916
return host == "*" || host == "+" || host == IPAddress.Any.ToString() || host == IPAddress.
IPv6Any
.ToString();
Aspire.Dashboard.Tests (1)
Integration\StartupTests.cs (1)
853
Assert.True(ipEndPoint.Address.Equals(IPAddress.Any) || ipEndPoint.Address.Equals(IPAddress.
IPv6Any
), "Endpoint address should be IPv4 or IPv6.");
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
1691
var ip when IPAddress.
IPv6Any
.Equals(ip) => ("localhost", EndpointBindingMode.IPv6AnyAddresses), // :: (IPv6 all addresses)
InProcessWebSite (4)
Startup.cs (4)
368
ctx.Connection.LocalIpAddress = IPAddress.
IPv6Any
;
369
Assert.Equal(IPAddress.
IPv6Any
, ctx.Connection.LocalIpAddress);
372
ctx.Connection.RemoteIpAddress = IPAddress.
IPv6Any
;
373
Assert.Equal(IPAddress.
IPv6Any
, ctx.Connection.RemoteIpAddress);
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
779
context.Connection.RemoteIpAddress = IPAddress.
IPv6Any
;
828
Assert.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)
60
Assert.Equal(IPAddress.
IPv6Any
, listenOptions.IPEndPoint.Address);
291
if (endpoint.IPEndPoint.Address.Equals(IPAddress.
IPv6Any
))
KestrelServerTests.cs (18)
475
Assert.Equal(IPAddress.
IPv6Any
, ((IPEndPoint)transportEndPoint.OriginalEndPoint).Address);
476
Assert.Equal(IPAddress.
IPv6Any
, ((IPEndPoint)multiplexedTransportEndPoint.OriginalEndPoint).Address);
504
Assert.Equal(IPAddress.
IPv6Any
, ((IPEndPoint)transportEndPoint.OriginalEndPoint).Address);
532
Assert.Equal(IPAddress.
IPv6Any
, ((IPEndPoint)multiplexedTransportEndPoint.OriginalEndPoint).Address);
828
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5000), It.IsAny<CancellationToken>()), Times.Once);
829
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5001), It.IsAny<CancellationToken>()), Times.Once);
830
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5002), It.IsAny<CancellationToken>()), Times.Never);
831
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5003), It.IsAny<CancellationToken>()), Times.Never);
849
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5000), It.IsAny<CancellationToken>()), Times.Once);
850
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5001), It.IsAny<CancellationToken>()), Times.Once);
851
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5002), It.IsAny<CancellationToken>()), Times.Once);
852
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5003), It.IsAny<CancellationToken>()), Times.Once);
878
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5000), It.IsAny<CancellationToken>()), Times.Once);
879
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5001), It.IsAny<CancellationToken>()), Times.Once);
880
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5002), It.IsAny<CancellationToken>()), Times.Once);
881
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5003), It.IsAny<CancellationToken>()), Times.Exactly(2));
966
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5000), It.IsAny<CancellationToken>()), Times.Once);
967
mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.
IPv6Any
, 5001), It.IsAny<CancellationToken>()), Times.Once);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
SocketTransportOptions.cs (1)
146
if (ip.Address.Equals(IPAddress.
IPv6Any
))
Sockets.BindTests (6)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (6)
943
socket.Bind(new IPEndPoint(IPAddress.
IPv6Any
, 0));
1059
dataset.Add(new IPEndPoint(IPAddress.
IPv6Any
, 0), "http://127.0.0.1");
1060
dataset.Add(new IPEndPoint(IPAddress.
IPv6Any
, 0), "http://[::1]");
1061
dataset.Add(new IPEndPoint(IPAddress.
IPv6Any
, 0), "https://127.0.0.1");
1062
dataset.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)
46
if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.
IPv6Any
))
77
if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.
IPv6Any
))
158
if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.
IPv6Any
))
207
if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.
IPv6Any
))
574
if (throwOnIIPAny && (ipAddress.Equals(IPAddress.Any) || ipAddress.Equals(IPAddress.
IPv6Any
)))
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
67
if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.
IPv6Any
))
System.Net.Primitives (2)
System\Net\IPAddress.cs (1)
31
public static readonly IPAddress IPv6None =
IPv6Any
;
System\Net\IPNetwork.cs (1)
259
return IPAddress.
IPv6Any
;
System.Net.Quic (1)
System\Net\Quic\QuicListener.cs (1)
150
if (options.ListenEndPoint.Address.Equals(IPAddress.
IPv6Any
))
System.Net.Sockets (5)
src\libraries\Common\src\System\Net\IPEndPointStatics.cs (1)
10
internal static readonly IPEndPoint IPv6Any = new IPEndPoint(IPAddress.
IPv6Any
, AnyPort);
System\Net\Sockets\Socket.cs (2)
3576
if ((boundAddress != null && IsDualMode && (boundAddress.IsIPv4MappedToIPv6 || boundAddress.Equals(IPAddress.
IPv6Any
))))
3874
return IPAddress.Any.Equals(address) || IPAddress.
IPv6Any
.Equals(address) || s_IPAddressAnyMapToIPv6.Equals(address);
System\Net\Sockets\TCPListener.cs (1)
258
listener = new TcpListener(IPAddress.
IPv6Any
, port);
System\Net\Sockets\UDPClient.cs (1)
73
localEP = new IPEndPoint(IPAddress.
IPv6Any
, port);