Set IP preference in WinHTTP (c++)

三世轮回 提交于 2019-12-08 04:30:02

问题


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-preference-in-winhttp-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!