Specify which network card / connection Winhttp should use

I have a C # application that uses Winhttp to make web requests. Is there a way to specify which WinHTTP NIC should use for its connections?

+2


source to share


2 answers


For WinHTTP and WinInet, there is no publicly available option for Affinity Affinity. It appears to be supported in System.Net via the BindIPEndPointDelegate in the Request ServicePoint.



I'm curious that the scenario is to force a specific interface as it points out a problem in the rest of the stack that needs such a thing.

+2


source


WinHTTP is in the wrong place in the OSI model to handle this kind of hardware layer. Instead, you will want to look at changing the routing table.



0


source







All Articles