EgressPool 26.6.13.9165
dotnet add package EgressPool --version 26.6.13.9165
NuGet\Install-Package EgressPool -Version 26.6.13.9165
<PackageReference Include="EgressPool" Version="26.6.13.9165" />
<PackageVersion Include="EgressPool" Version="26.6.13.9165" />
<PackageReference Include="EgressPool" />
paket add EgressPool --version 26.6.13.9165
#r "nuget: EgressPool, 26.6.13.9165"
#:package EgressPool@26.6.13.9165
#addin nuget:?package=EgressPool&version=26.6.13.9165
#tool nuget:?package=EgressPool&version=26.6.13.9165
EgressPool
A .NET library for sending outbound TCP, UDP, and HTTP traffic from a pool of source IP addresses. Outbound connections appear from different local addresses while the calling code stays simple.
Features
- Configure IPv4 or IPv6 prefixes, or auto-detect them from local interfaces.
- Create TCP, UDP, or HTTP clients bound to addresses from those prefixes.
- Select prefixes by destination scope.
- Release addresses by disposing clients, sockets, leases, or the pool itself.
Quick Start
using Egress;
await using EgressPool pool = await EgressPool.CreateAsync();
using HttpClient client = pool.CreateHttpClient();
string response = await client.GetStringAsync("http://127.0.0.1:5000/");
Dependency Injection
Install EgressPool.DependencyInjection and register with your service collection:
builder.Services.AddEgressPool();
builder.Services.AddHttpClient("egress").UseEgressPool();
Running in Containers
Containers need host networking, root access, and the NET_ADMIN capability so the pool can bind to and configure host interfaces.
docker run --network host --user root --cap-add NET_ADMIN your-image
Docker Compose equivalent:
services:
app:
image: your-image
network_mode: host
user: root
cap_add:
- NET_ADMIN
Expected Behavior
Each outbound connection uses a source address from the pool. Disposing the connection, client, or pool releases the address.
Some configurations require elevated permissions. If unavailable, pool or connection creation throws an exception.
| 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
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on EgressPool:
| Package | Downloads |
|---|---|
|
EgressPool.DependencyInjection
Dependency injection and IHttpClientFactory integration for EgressPool. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 26.6.13.9165 | 196 | 6/13/2026 |
| 26.6.13.4406 | 192 | 6/13/2026 |
| 26.6.13.3376 | 196 | 6/13/2026 |
| 26.6.9.3432 | 106 | 6/9/2026 |
| 26.6.9.3235 | 68 | 6/9/2026 |
| 26.6.8.9943 | 93 | 6/8/2026 |
| 26.6.8.9817 | 88 | 6/8/2026 |
| 26.6.8.9706 | 69 | 6/8/2026 |
| 26.6.8.9476 | 56 | 6/8/2026 |
| 26.6.8.9180 | 81 | 6/8/2026 |
| 26.6.8.9091 | 51 | 6/8/2026 |
| 26.6.8.9060 | 70 | 6/8/2026 |
| 26.6.8.7209 | 66 | 6/8/2026 |
| 26.6.8.7122 | 66 | 6/8/2026 |