Set IP preference in WinHTTP (c++)
I have a code that is using WinHTTP on Windows 7.
The problem i'm experiencing is that the connction to specific hostname takes a long time when the user tries to use an IPv6 address (that is disabled).
I want to configure开发者_JS百科 the connection (maybe WinHttpConnect parametrs) to try IPv4 first.
Is there a way to set the address binding order?
The answer is: You cannot do this.
See Specify which Network Card/Connection Winhttp Must Use
精彩评论