2 writes to Address
System.Net.Sockets (2)
System\Net\Sockets\Socket.Tasks.cs (1)
183endPoint.Address = address;
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
797existing.Address = address;
75 references to Address
Aspire.Dashboard.Tests (2)
Integration\StartupTests.cs (2)
1135Assert.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.Http.Connections (2)
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (2)
59tags.Add("server.address", localIPEndPoint.Address.ToString()); 62switch (localIPEndPoint.Address.AddressFamily)
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)
396RemoteIpAddress = remoteEndPoint?.Address; 399LocalIpAddress = localEndPoint?.Address;
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (2)
59tags.Add("server.address", localIPEndPoint.Address.ToString()); 62switch (localIPEndPoint.Address.AddressFamily)
Microsoft.AspNetCore.SignalR.Core (2)
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (2)
59tags.Add("server.address", localIPEndPoint.Address.ToString()); 62switch (localIPEndPoint.Address.AddressFamily)
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsServerRouter\DiagnosticsServerRouterRunner.cs (1)
51isLooback = IPAddress.IsLoopback(value.EndPoint.Address);
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)
118Assert.Equal(IPAddress.Parse("127.1.1.1"), ip.Address); 167Assert.Equal(IPAddress.Parse("127.1.1.1"), ip.Address); 204Assert.Equal(IPAddress.Parse("127.1.1.1"), ip.Address); 288Assert.Equal(IPAddress.Parse("127.1.1.1"), ip.Address);
Microsoft.TestPlatform.CommunicationUtilities (2)
SocketClient.cs (1)
61_tcpClient.ConnectAsync(ipEndPoint.Address, ipEndPoint.Port).ContinueWith(OnServerConnected);
SocketCommunicationManager.cs (1)
187await _tcpClient.ConnectAsync(endpoint.Address, endpoint.Port);
System.Net.Http (3)
System\Net\Http\HttpTelemetry.cs (1)
100string? remoteAddress = remoteEndPoint?.Address?.ToString();
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (1)
52activity.SetTag("network.peer.address", remoteEndPoint.Address.ToString());
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
79remoteEndPoint?.Address?.ToString());
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\runtime\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;
System.Net.Primitives (5)
src\runtime\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\IPEndPoint.cs (1)
184public override SocketAddress Serialize() => new SocketAddress(Address, Port);
System.Net.Quic (6)
src\runtime\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\Quic\Internal\MsQuicHelpers.cs (1)
27address = ipEndPoint.Address;
System\Net\Quic\QuicListener.cs (1)
150if (options.ListenEndPoint.Address.Equals(IPAddress.IPv6Any))
System.Net.Requests (7)
System\Net\FtpControlStream.cs (6)
112if (!connection.ServerAddress.Equals(((IPEndPoint)connection._dataSocket.RemoteEndPoint!).Address)) 706IPEndPoint localEndPoint = new IPEndPoint(((IPEndPoint)Socket.LocalEndPoint!).Address, 0); 745if (!ServerAddress.Equals(((IPEndPoint)_dataSocket.RemoteEndPoint!).Address)) 1102IPEndPoint epListener = new IPEndPoint(((IPEndPoint)Socket.LocalEndPoint!).Address, 0); 1128return FormatAddress(localEP.Address, localEP.Port); 1132return FormatAddressV6(localEP.Address, localEP.Port);
System\Net\NetworkStreamWrapper.cs (1)
35return ((IPEndPoint)Socket.RemoteEndPoint!).Address;
System.Net.Sockets (16)
src\runtime\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\Sockets\Socket.cs (4)
806if (!OSSupportsIPv4 && ipEndPoint != null && ipEndPoint.Address.IsIPv4MappedToIPv6) 3350IPAddress addr = ip.Address; 3584IPAddress? boundAddress = ipEndPoint?.Address; 3888IPAddress address = ipEndpoint.Address;
System\Net\Sockets\SocketsTelemetry.cs (2)
110activity.DisplayName = $"socket connect {ipEndPoint.Address}:{port}"; 113activity.SetTag("network.peer.address", ipEndPoint.Address.ToString());
System\Net\Sockets\UDPClient.cs (6)
302CheckForBroadcast(endPoint.Address); 582CheckForBroadcast(endPoint.Address); 616CheckForBroadcast(endPoint.Address); 831CheckForBroadcast(endPoint.Address); 877CheckForBroadcast(endPoint.Address); 912CheckForBroadcast(endPoint.Address);
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
439_remoteEndpointAddress = remote.Address + ":" + remote.Port;