https://github.com/boris1993/ipv6_preference_toggler
Toggles if preferring IPv6 in Windows instantly, for helping resolving the low download speed when updating the Microsoft Flight Simulator
https://github.com/boris1993/ipv6_preference_toggler
Last synced: 3 months ago
JSON representation
Toggles if preferring IPv6 in Windows instantly, for helping resolving the low download speed when updating the Microsoft Flight Simulator
- Host: GitHub
- URL: https://github.com/boris1993/ipv6_preference_toggler
- Owner: boris1993
- License: mit
- Created: 2021-12-05T10:37:31.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-30T17:28:53.000Z (over 3 years ago)
- Last Synced: 2025-04-03T04:51:12.594Z (7 months ago)
- Language: C#
- Homepage:
- Size: 21.5 KB
- Stars: 18
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README-zh.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 设定是否首选使用IPv6
[English Version](README.md)
因为我在通过网易UU加速器更新微软模拟飞行的时候遇到了下载速度极慢的问题,一顿网上冲浪之后发现,是因为系统默认通过IPv6连接导致的。
网上的教程都是让用户直接禁用掉IPv6,但因为我需要保持IPv6开启,也不想这么简单粗暴的解决问题,
所以我开发了这个小工具,方便各位遇到同样问题的人可以快速切换成首选使用IPv4连接。原理是通过修改注册表键值
`HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents`
来让系统在本机接口上首选使用IPv4来连接。也正因为这个工具需要修改注册表,所以需要以管理员权限来启动。
这个工具是通过.NET 6.0构建的,所以你可能需要先安装.NET 6.0运行时。你可以在[这里](https://dotnet.microsoft.com/download)下载到.NET 6.0运行时库。
---
参考文档:[为高级用户配置 Windows IPv6 的指南 - Microsoft](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-ipv6-in-windows)