1 override of RemoteIpAddress
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
56public override IPAddress? RemoteIpAddress
1 write to RemoteIpAddress
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
323connection.RemoteIpAddress = currentValues.RemoteIpAndPort.Address;
17 references to RemoteIpAddress
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Internal\JsonTranscodingServerCallContext.cs (5)
83if (connection.RemoteIpAddress != null) 85switch (connection.RemoteIpAddress.AddressFamily) 88return $"ipv4:{connection.RemoteIpAddress}:{connection.RemotePort}"; 90return $"ipv6:[{connection.RemoteIpAddress}]:{connection.RemotePort}"; 93return $"unknown:{connection.RemoteIpAddress}:{connection.RemotePort}";
Microsoft.AspNetCore.Http.Abstractions (3)
ConnectionInfo.cs (3)
65var remoteEndpoint = RemoteIpAddress == null ? "(null)" : new IPEndPoint(RemoteIpAddress, RemotePort).ToString(); 81public IPAddress? RemoteIpAddress => _info.RemoteIpAddress;
Microsoft.AspNetCore.HttpLogging (2)
W3CLoggingMiddleware.cs (2)
104shouldLog |= AddToList(elements, _clientIpIndex, connectionInfo.RemoteIpAddress is null ? "" : connectionInfo.RemoteIpAddress.ToString());
Microsoft.AspNetCore.HttpOverrides (4)
ForwardedHeadersMiddleware.cs (4)
212RemoteIpAndPort = connection.RemoteIpAddress != null ? new IPEndPoint(connection.RemoteIpAddress, connection.RemotePort) : null, 307if (connection.RemoteIpAddress != null) 310requestHeaders[_options.OriginalForHeaderName] = new IPEndPoint(connection.RemoteIpAddress, connection.RemotePort).ToString();
Microsoft.AspNetCore.Rewrite (3)
PatternSegments\IsIPV6Segment.cs (2)
12if (context.HttpContext.Connection.RemoteIpAddress == null) 16return context.HttpContext.Connection.RemoteIpAddress.AddressFamily == AddressFamily.InterNetworkV6 ? "on" : "off";
PatternSegments\RemoteAddressSegment.cs (1)
10return context.HttpContext.Connection.RemoteIpAddress?.ToString();