Soenneker.Extensions.IHttpContextAccessors
4.0.105
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.IHttpContextAccessors --version 4.0.105
NuGet\Install-Package Soenneker.Extensions.IHttpContextAccessors -Version 4.0.105
<PackageReference Include="Soenneker.Extensions.IHttpContextAccessors" Version="4.0.105" />
<PackageVersion Include="Soenneker.Extensions.IHttpContextAccessors" Version="4.0.105" />
<PackageReference Include="Soenneker.Extensions.IHttpContextAccessors" />
paket add Soenneker.Extensions.IHttpContextAccessors --version 4.0.105
#r "nuget: Soenneker.Extensions.IHttpContextAccessors, 4.0.105"
#:package Soenneker.Extensions.IHttpContextAccessors@4.0.105
#addin nuget:?package=Soenneker.Extensions.IHttpContextAccessors&version=4.0.105
#tool nuget:?package=Soenneker.Extensions.IHttpContextAccessors&version=4.0.105
Soenneker.Extensions.IHttpContextAccessors
Extension methods for retrieving common request and connection data through an injected IHttpContextAccessor.
Installation
dotnet add package Soenneker.Extensions.IHttpContextAccessors
Usage
using Soenneker.Extensions.IHttpContextAccessors;
string? clientIp = httpContextAccessor.GetRequestIp();
GetRequestIp() delegates to the companion HttpContext extension. It checks proxy headers such as CF-Connecting-IP and X-Forwarded-For, then falls back to the connection's remote IP. It returns null when there is no active HttpContext or no address can be found.
Forwarded headers are caller-controlled unless your proxy and ASP.NET Core forwarded-header configuration establish trust. Do not treat the returned text as authenticated identity by itself.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Extensions.HttpContext (>= 4.0.719)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.123 | 69 | 9/13/2026 |
| 4.0.122 | 71 | 9/13/2026 |
| 4.0.121 | 76 | 9/12/2026 |
| 4.0.120 | 78 | 9/12/2026 |
| 4.0.119 | 91 | 9/9/2026 |
| 4.0.118 | 81 | 9/9/2026 |
| 4.0.117 | 90 | 9/8/2026 |
| 4.0.116 | 83 | 9/8/2026 |
| 4.0.115 | 99 | 9/7/2026 |
| 4.0.114 | 95 | 9/7/2026 |
| 4.0.113 | 115 | 9/5/2026 |
| 4.0.112 | 95 | 9/4/2026 |
| 4.0.111 | 100 | 8/31/2026 |
| 4.0.110 | 93 | 8/31/2026 |
| 4.0.109 | 94 | 8/31/2026 |
| 4.0.108 | 106 | 8/30/2026 |
| 4.0.107 | 104 | 8/30/2026 |
| 4.0.106 | 98 | 8/30/2026 |
| 4.0.105 | 93 | 8/29/2026 |
| 4.0.103 | 96 | 8/29/2026 |
Describe extension library scope separately from current API