I have dotnet core 2.1 application which has to send web requests using several source ip addresses.
I've googled very much and tried find workaround. The most popular is
Can I send webrequest from specified ip address with .NET Framework?
but it doesn't work for dotnet core and BindIPEndPointCallback is never called.
I've also found CurlHandler class which wraps curl functionality
and curl itself has --interface option for setting source IP, but CurlHandler class doesn't have any public methods to set CurlOptions.
So the only way I can fix that is using raw sockets, but I don't like it.
Are there any simple solutions for setting web request source ip?
Thank you in advance