1 override of LocalIpAddress
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
68public override IPAddress? LocalIpAddress
5 writes to LocalIpAddress
HttpAbstractions.SampleApp (1)
Program.cs (1)
35connection.LocalIpAddress = IPAddress.IPv6Loopback;
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
367ctx.Connection.LocalIpAddress = IPAddress.IPv6Any;
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
777context.Connection.LocalIpAddress = IPAddress.Loopback;
Microsoft.AspNetCore.Rewrite.Tests (2)
PatternSegments\LocalAddressSegmentTests.cs (2)
18context.HttpContext.Connection.LocalIpAddress = IPAddress.Parse("20.30.40.50"); 31context.HttpContext.Connection.LocalIpAddress = null;
16 references to LocalIpAddress
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
31await context.Response.WriteAsync("LocalIp: " + context.Connection.LocalIpAddress + Environment.NewLine);
AzureAppServicesSample (1)
Startup.cs (1)
42await context.Response.WriteAsync("LocalIp: " + context.Connection.LocalIpAddress + Environment.NewLine);
DefaultBuilder.SampleApp (1)
Startup.cs (1)
32await context.Response.WriteAsync("LocalIp: " + context.Connection.LocalIpAddress + "\r\n");
IISSample (1)
Startup.cs (1)
56await context.Response.WriteAsync("LocalIp: " + context.Connection.LocalIpAddress + Environment.NewLine);
InProcessWebSite (3)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (3)
182if (context.Connection.LocalIpAddress == null || context.Connection.RemoteIpAddress == null) 366Assert.True(IPAddress.IsLoopback(ctx.Connection.LocalIpAddress)); 368Assert.Equal(IPAddress.IPv6Any, ctx.Connection.LocalIpAddress);
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
1949localAddress = context.Connection.LocalIpAddress;
Kestrel.SampleApp (1)
Startup.cs (1)
56+ $"Sock: {connectionFeature.LocalIpAddress?.ToString()}:{connectionFeature.LocalPort}"
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
826Assert.Equal(IPAddress.Loopback, connectionHttpContext.Connection.LocalIpAddress);
Microsoft.AspNetCore.HttpLogging (2)
W3CLoggingMiddleware.cs (2)
109shouldLog |= AddToList(elements, _serverIpIndex, connectionInfo.LocalIpAddress is null ? "" : connectionInfo.LocalIpAddress.ToString());
Microsoft.AspNetCore.Rewrite (1)
PatternSegments\LocalAddressSegment.cs (1)
10return context.HttpContext.Connection.LocalIpAddress?.ToString();
NativeIISSample (1)
Startup.cs (1)
50await context.Response.WriteAsync("LocalIp: " + context.Connection.LocalIpAddress + Environment.NewLine);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
1110LocalIPAddress = connection.LocalIpAddress?.ToString(),
SystemdTestApp (1)
Startup.cs (1)
30+ $"Sock: {connectionFeature.LocalIpAddress?.ToString()}:{connectionFeature.LocalPort}");