GitHub 域名 IP 速查表

更新时间:2026/6/4 00:55:29

域名IP 地址平均延迟操作
github.com140.82.116.3465ms
alive.github.com140.82.112.26288ms
api.github.com20.205.243.168106ms
api.individual.githubcopilot.com140.82.112.21297ms
avatars.githubusercontent.com185.199.108.133227ms
avatars0.githubusercontent.com185.199.110.133224ms
avatars1.githubusercontent.com185.199.108.133230ms
avatars2.githubusercontent.com185.199.109.133231ms
avatars3.githubusercontent.com185.199.108.133223ms
avatars4.githubusercontent.com185.199.109.133228ms
avatars5.githubusercontent.com185.199.110.133225ms
broker.actions.githubusercontent.com20.85.130.105238ms
camo.githubusercontent.com185.199.110.133222ms
central.github.com140.82.113.21299ms
cloud.githubusercontent.com185.199.110.133223ms
codeload.github.com20.205.243.165105ms
collector.github.com140.82.112.21513ms
containers.pkg.github.com20.205.243.164104ms
copilot-proxy.githubusercontent.com138.91.182.224207ms
default.exp-tas.com13.107.5.9379ms
dependabot-actions.githubapp.com140.82.112.21303ms
desktop.githubusercontent.com185.199.110.133223ms
docker-proxy.pkg.github.com20.205.243.164104ms
docker.pkg.github.com20.205.243.164101ms
education.github.com140.82.114.21300ms
favicons.githubusercontent.com185.199.110.133222ms
fulcio.githubapp.com140.82.112.22294ms
ghcr.io140.82.116.34461ms
gist.github.com20.205.243.1664063ms
github-cloud.githubusercontent.com185.199.108.154227ms
github-cloud.s3.amazonaws.com52.216.60.161303ms
github-com.s3.amazonaws.com16.182.98.129300ms
github-registry-files.githubusercontent.com185.199.110.154226ms
github-releases.githubusercontent.com185.199.108.154228ms
github.blog192.0.66.2686ms
github.community140.82.112.18283ms
github.dev20.43.185.1462ms
github.githubassets.com185.199.110.215229ms
github.global.ssl.fastly.net199.59.150.499999ms
github.io185.199.108.153225ms
github.map.fastly.net185.199.109.133226ms
githubcopilot.com140.82.114.18300ms
githubstatus.com185.199.109.153227ms
launch.actions.githubusercontent.com140.82.113.21290ms
live.github.com140.82.113.25297ms
maven.pkg.github.com20.205.243.164104ms
media.githubusercontent.com185.199.108.133231ms
mpsghub.actions.githubusercontent.com20.22.118.40240ms
npm-beta-proxy.pkg.github.com20.205.243.164105ms
npm-proxy.pkg.github.com20.205.243.164102ms
npm.pkg.github.com20.205.243.164105ms
npmregistryv2prod.blob.core.windows.net20.60.7.132272ms
nuget.pkg.github.com20.205.243.164106ms
objects-origin.githubusercontent.com140.82.113.21294ms
objects.githubusercontent.com185.199.109.133224ms
origin-tracker.githubusercontent.com140.82.114.22292ms
pipelines.actions.githubusercontent.com13.107.42.1680ms
pipelinesghubeus1.actions.githubusercontent.com20.242.179.206240ms
pkg-containers.githubusercontent.com185.199.108.154224ms
pkg.actions.githubusercontent.com185.199.110.154225ms
pkg.github.com20.205.243.164106ms
private-user-images.githubusercontent.com185.199.110.133221ms
productionresultssa1.blob.core.windows.net20.209.226.129236ms
production-release-asset-2e65be.s3.amazonaws.com54.231.165.201293ms
production-repository-file-5c1aeb.s3.amazonaws.com16.182.69.57277ms
production-user-asset-6210df.s3.amazonaws.com52.217.135.105281ms
pypi.pkg.github.com20.205.243.164104ms
raw.githubusercontent.com185.199.110.133226ms
release-assets.githubusercontent.com185.199.109.133223ms
results-receiver.actions.githubusercontent.com140.82.114.22303ms
rubygems.pkg.github.com20.205.243.164107ms
run-actions-1-azure-eastus.actions.githubusercontent.com20.85.130.105237ms
runner-auth.actions.githubusercontent.com140.82.113.21293ms
runnerghubeus1.actions.githubusercontent.com40.88.240.168267ms
setup-tools.actions.githubusercontent.com150.171.110.6593ms
swift.pkg.github.com20.205.243.164105ms
timestamp.githubapp.com140.82.112.21293ms
tokenghub.actions.githubusercontent.com20.85.108.33249ms
tuf-repo.github.com185.199.108.153222ms
user-images.githubusercontent.com185.199.109.133224ms
visualstudio.com150.171.74.1663ms
vscode.dev150.171.110.9867ms
vstoken.actions.githubusercontent.com13.107.42.1685ms
83 / 83 条记录 | 平均延迟: 390ms

GitHub IP测速 - 找到最快的GitHub访问地址

GitHub IP测速工具可以测试多个 GitHub 服务器 IP 的响应速度,找到当前网络环境下最快的 IP 地址。通过修改 hosts 文件指向最优 IP,可以显著提升国内访问 GitHub 的速度,解决 clone 慢、页面加载失败等问题。

下面介绍 GitHub IP 测速的原理、使用方法以及 hosts 文件配置步骤。

为什么要测速 GitHub IP

由于网络环境的原因,国内访问 GitHub 经常遇到速度慢或无法连接的问题。GitHub 的服务使用多个 IP 地址,不同 IP 在不同地区和运营商下的访问速度差异很大。DNS 解析可能将你导向一个速度较慢的 IP,导致访问体验不佳。

通过测速找到当前网络环境下最快的 IP 地址,然后修改 hosts 文件指向该 IP,可以绕过 DNS 解析,直接连接到最优服务器。这是一种简单有效的加速方案,无需安装额外软件。

核心功能

多 IP 测速

测试 GitHub 常用的多个 IP 地址

自动排序

按响应速度从快到慢排序

一键复制

复制最快的 IP 配置到 hosts 文件

定期更新

IP 地址库定期更新确保可用性

多域名支持

覆盖 github.com、assets 等域名

延迟显示

显示每个 IP 的具体响应时间

使用教程

  1. 点击开始测速,工具会依次测试 GitHub 各个 IP 的响应时间
  2. 测试完成后查看结果,响应时间最短的 IP 排在最前面。
  3. 复制推荐的最快 IP 配置,添加到系统 hosts 文件中。
  4. 修改 hosts 后刷新 DNS 缓存(命令:ipconfig /flushdns),即可生效。

适用场景

  • GitHub 访问加速 - 找到最快的 IP 提升访问速度
  • 克隆加速 - 解决 git clone 速度过慢的问题
  • 网络排查 - 确认是否是 DNS 解析导致的访问问题
  • 开发环境优化 - 提升依赖下载速度

测速技术原理

测速工具通过 HTTP 请求测试每个 IP 的响应时间。具体流程是:对每个 IP 地址发送一个 HTTP HEAD 请求,记录从发送请求到收到响应的时间差作为延迟值。为减少误差,会对每个 IP 进行多次测试取平均值。

hosts 文件是操作系统的本地 DNS 解析配置,优先级高于 DNS 服务器。Windows 的 hosts 文件路径为 C:\Windows\System32\drivers\etc\hosts,Mac/Linux 为 /etc/hosts。添加格式为"IP地址 域名",如"20.205.243.166 github.com"。

常见问题

修改 hosts 文件有风险吗?

修改 hosts 文件是安全的系统操作,如需恢复只需删除添加的行即可。建议修改前备份原 hosts 文件。

测速结果多久有效?

网络状况随时变化,建议每周重新测速更新 hosts 配置。如果感觉访问变慢,可以随时重新测速。

Mac 和 Linux 也可以用吗?

可以,hosts 文件路径不同但配置格式相同。Mac/Linux 路径为 /etc/hosts,修改后同样需要刷新 DNS 缓存。

为什么测速后还是很慢?

可能原因:IP 被运营商封锁、HTTPS 证书问题、或 GitHub 本身服务异常。建议尝试多个 IP,或使用代理等其他方案。

hosts 文件需要管理员权限修改吗?

是的,Windows 需要以管理员身份运行记事本打开 hosts 文件,Mac/Linux 需要使用 sudo 命令编辑。

测速会影响 GitHub 账号安全吗?

不会,测速只发送 HTTP 请求测试延迟,不涉及任何账号信息。工具不会登录或访问你的 GitHub 账号。