32 references to Any
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.");
Http3SampleApp (1)
Program.cs (1)
45options.Listen(IPAddress.Any, 5001, listenOptions =>
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
RequestTests.cs (2)
105connectionInfo.LocalIpAddress = IPAddress.Any; 106Assert.Equal(IPAddress.Any, connectionInfo.LocalIpAddress);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
AnyIPListenOptions.cs (1)
41EndPoint = new IPEndPoint(IPAddress.Any, IPEndPoint.Port);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
AddressBinderTests.cs (1)
273if (endpoint.IPEndPoint.Address.Equals(IPAddress.Any))
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesService.cs (1)
36_listener = new TcpListener(IPAddress.Any, _options.TcpPort);
Sockets.BindTests (3)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (3)
1055dataset.Add(new IPEndPoint(IPAddress.Any, 0), "http://127.0.0.1"); 1056dataset.Add(new IPEndPoint(IPAddress.Any, 0), "https://127.0.0.1"); 1104{ new IPEndPoint(IPAddress.Any, 443), "https://127.0.0.1" },
System.Net.HttpListener (2)
System\Net\Managed\HttpEndPointManager.cs (2)
115addr = IPAddress.Any; 130if (IPAddress.Any.Equals(addr))
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.NetworkInformation (1)
System\Net\NetworkInformation\UnixUnicastIPAddressInformation.cs (1)
111return IPAddress.Any;
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\IPNetwork.cs (1)
31public IPAddress BaseAddress => _baseAddress ?? IPAddress.Any;
System.Net.Sockets (8)
src\libraries\Common\src\System\Net\IPEndPointStatics.cs (1)
9internal static readonly IPEndPoint Any = new IPEndPoint(IPAddress.Any, AnyPort);
System\Net\Sockets\MulticastOption.cs (1)
42LocalAddress = IPAddress.Any;
System\Net\Sockets\Socket.cs (2)
25private static readonly IPAddress s_IPAddressAnyMapToIPv6 = IPAddress.Any.MapToIPv6(); 3875return IPAddress.Any.Equals(address) || IPAddress.IPv6Any.Equals(address) || s_IPAddressAnyMapToIPv6.Equals(address);
System\Net\Sockets\SocketPal.Unix.cs (1)
1540IPAddress localAddress = optionValue.LocalAddress ?? IPAddress.Any;
System\Net\Sockets\TCPListener.cs (2)
57_serverSocketEP = new IPEndPoint(IPAddress.Any, port); 264listener = new TcpListener(IPAddress.Any, port);
System\Net\Sockets\UDPClient.cs (1)
69localEP = new IPEndPoint(IPAddress.Any, port);
WebTransportInteractiveSampleApp (2)
Program.cs (2)
25options.Listen(IPAddress.Any, 5001, listenOptions => 31options.Listen(IPAddress.Any, 5002, listenOptions =>
WebTransportSampleApp (1)
Program.cs (1)
15options.Listen(IPAddress.Any, 5007, listenOptions =>