47 references to Address
Aspire.Dashboard.Tests (2)
Integration\StartupTests.cs (2)
789Assert.True(ipEndPoint.Address.Equals(IPAddress.Any) || ipEndPoint.Address.Equals(IPAddress.IPv6Any), "Endpoint address should be IPv4 or IPv6.");
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (1)
143activity.SetTag(SemanticConventions.AttributeNetPeerIp, ipEndPoint.Address.ToString());
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
566string remoteEndpointAddressString = remoteEndpoint.Address + ":" + remoteEndpoint.Port; 613remoteEndpointAddressString = remote.Address + ":" + remote.Port;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
122await browserDebugClientConnect.ConnectAsync(endpoint.Address, 6000);
Microsoft.AspNetCore.HttpOverrides (2)
ForwardedHeadersMiddleware.cs (2)
224if (currentValues.RemoteIpAndPort != null && checkKnownIps && !CheckKnownAddress(currentValues.RemoteIpAndPort.Address)) 323connection.RemoteIpAddress = currentValues.RemoteIpAndPort.Address;
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\HttpProtocol.cs (2)
378RemoteIpAddress = remoteEndPoint?.Address; 381LocalIpAddress = localEndPoint?.Address;
Internal\Infrastructure\KestrelMetrics.cs (2)
327tags.Add("server.address", localIPEndPoint.Address.ToString()); 330switch (localIPEndPoint.Address.AddressFamily)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (13)
AddressBinderTests.cs (7)
31Assert.Equal(IPAddress.Parse(expectedAddress), endpoint.Address); 60Assert.Equal(IPAddress.IPv6Any, listenOptions.IPEndPoint.Address); 71Assert.Equal(IPAddress.Loopback, listenOptions.IPEndPoint.Address); 89Assert.Equal(IPAddress.Loopback, listenOptions.IPEndPoint.Address); 174Assert.Equal(IPAddress.Parse(ip), listenOptions.IPEndPoint.Address); 291if (endpoint.IPEndPoint.Address.Equals(IPAddress.IPv6Any)) 297if (endpoint.IPEndPoint.Address.Equals(IPAddress.Any))
KestrelServerTests.cs (6)
475Assert.Equal(IPAddress.IPv6Any, ((IPEndPoint)transportEndPoint.OriginalEndPoint).Address); 476Assert.Equal(IPAddress.IPv6Any, ((IPEndPoint)multiplexedTransportEndPoint.OriginalEndPoint).Address); 504Assert.Equal(IPAddress.IPv6Any, ((IPEndPoint)transportEndPoint.OriginalEndPoint).Address); 532Assert.Equal(IPAddress.IPv6Any, ((IPEndPoint)multiplexedTransportEndPoint.OriginalEndPoint).Address); 1002resolvedEndPoint = new IPEndPoint(new IPAddress(ipEndPoint.Address.GetAddressBytes()), port); 1054resolvedEndPoint = new IPEndPoint(new IPAddress(ipEndPoint.Address.GetAddressBytes()), port);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
SocketTransportOptions.cs (1)
146if (ip.Address.Equals(IPAddress.IPv6Any))
Microsoft.Extensions.ServiceDiscovery (1)
Http\ResolvingHttpDelegatingHandler.cs (1)
90host = ip.Address.ToString();
Microsoft.Extensions.ServiceDiscovery.Abstractions (2)
Internal\ServiceEndpointImpl.cs (2)
17IPEndPoint ip when ip.Port == 0 && ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6 => $"[{ip.Address}]", 18IPEndPoint ip when ip.Port == 0 => $"{ip.Address}",
Microsoft.Extensions.ServiceDiscovery.Tests (4)
ServiceEndpointResolverTests.cs (4)
116Assert.Equal(IPAddress.Parse("127.1.1.1"), ip.Address); 165Assert.Equal(IPAddress.Parse("127.1.1.1"), ip.Address); 202Assert.Equal(IPAddress.Parse("127.1.1.1"), ip.Address); 286Assert.Equal(IPAddress.Parse("127.1.1.1"), ip.Address);
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
116if (!CanBindToEndpoint(endpoint.Address, 443))
Sockets.FunctionalTests (1)
SocketTransportTests.cs (1)
41Assert.Equal(ip.Address, context.Connection.RemoteIpAddress);
System.Net.HttpListener (4)
System\Net\HttpListenerRequest.cs (2)
111public bool IsLocal => LocalEndPoint!.Address.Equals(RemoteEndPoint!.Address);
System\Net\Managed\HttpEndPointManager.cs (2)
174p = s_ipEndPoints[ep.Address]; 178s_ipEndPoints.Remove(ep.Address);
System.Net.Ping (8)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (4)
60SetIPAddress(destination, endPoint.Address); 73return endPoint.Address.Address == (long)SocketAddressPal.GetIPv4Address(socketAddressBuffer); 81if (endPoint.Address.ScopeId != (long)scopeid) 85endPoint.Address.TryWriteBytes(addressBuffer2, out _);
System\Net\NetworkInformation\Ping.RawSocket.cs (4)
67AddressFamily addrFamily = ep.Address.AddressFamily; 105if (NeedsConnect && !ep.Address.IsIPv6Multicast && !(ipv4 && (ep.Address.Address & 0xf0) == 0xe0)) 245IPAddress address = ((IPEndPoint)socketConfig.EndPoint).Address;