Add API to control IPEndPoint of HTTP request (like ServicePoint.BindIPEndPointDelegate) #20998
Labels
api-needs-work
API needs work before it is approved, it is NOT ready for implementation
area-System.Net.Http
Milestone
I've got a few .NET services that run on machines with multiple IP addresses, and they need to occasionally send HTTP requests from specific IPs. Currently I use
HttpWebRequest
with a customServicePoint.BindIPEndPointDelegate
and it works great. I'm hoping to port this service to .NET Core/Standard, but can't find any equivalent functionality in HttpClient/HttpClientHandler.Is there any way to control local IP to which HttpClient/HttpClientHandler binds? Any workarounds or plans to add this functionality? This is the only thing holding back my porting efforts.
The text was updated successfully, but these errors were encountered: