35

Win11设置IPv4优先

 2 years ago
source link: https://www.wyr.me/post/693
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Win11设置IPv4优先 - 轶哥
Win11设置IPv4优先

在IPv6正常工作的情况下,访问部分IPv6网站异常的情况下,可以考虑设置IPv4优先,因为纯IPv6的网站非常罕见,通常网站都是配置双栈的。

设置IPv4优先并不会影响基于RTC或P2P(点对点)的IPv6通讯,直接访问IPv6或只支持IPv6的网站也是没问题的。

打开注册表编辑器(regedit),进入HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\,新建一个名称为DisabledComponents,类型为REG_DWORD的项目,值为32(十进制)。

重启电脑后生效。生效后ping IPv6域名就会优先得到IPv4的IP地址。

此方法也适用于win10。

参考自:https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK