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 the connection (maybe WinHttpConnect parametrs) to try IPv4 first . Is there a way to set the address binding order? 回答1: The answer is: You cannot do this. See Specify which Network Card/Connection Winhttp Must Use 来源: https://stackoverflow.com/questions/3387237/set-ip