-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BindIPEndPointDelegate does not work properly [.NET Core 2.2] #28436
Comments
There are several features of |
There are no plans to implement this in .NET Core specifically. We don't want to continue the global ServicePointManager design. However, we are thinking of ways of having an API to control socket connection, network interface selection, etc. There are several other issues in the repo tracking that. Those would end up adding API surface for the HttpClient API via HttpClientHandler/SocketsHttpHandler. |
Similar issue: #23267 |
Thanks for the explanation! I will track the status of related tickets to understand the progress. |
Closing in favor of #23267. |
I have simple task - detect remote IP address to which http client is connected. I don't want to DNS resolve, but need exactly remote IP. I have found solution for .net - https://stackoverflow.com/questions/6655713/how-to-get-ip-address-of-the-server-that-httpwebrequest-connected-to but it doesn't work as it is for dot net, but not core. Answer please, my simple question. |
Setting
BindIPEndPointDelegate
in theServicePoint
forHttpWebRequest
does not do anything, the real binding of the IP address (delegate call) does not occur.A quick search through the repository showed that there is no real binding to local IP in the source code.
Is this functionality is not yet ready to use in the .NET Core?
It works as expected in regular .NET
The text was updated successfully, but these errors were encountered: