GitHub 域名 IP 速查表

更新时间:2026/7/18 00:39:34

域名IP 地址平均延迟操作
github.com20.205.243.166114ms
alive.github.com140.82.112.26511ms
api.github.com20.205.243.168100ms
api.individual.githubcopilot.com140.82.113.22309ms
avatars.githubusercontent.com185.199.108.133193ms
avatars0.githubusercontent.com185.199.109.133193ms
avatars1.githubusercontent.com185.199.109.133196ms
avatars2.githubusercontent.com185.199.109.133193ms
avatars3.githubusercontent.com185.199.109.133195ms
avatars4.githubusercontent.com185.199.109.133195ms
avatars5.githubusercontent.com185.199.109.133186ms
broker.actions.githubusercontent.com20.85.130.105239ms
camo.githubusercontent.com185.199.109.133190ms
central.github.com140.82.113.22308ms
cloud.githubusercontent.com185.199.109.133193ms
codeload.github.com20.205.243.165103ms
collector.github.com140.82.114.21303ms
containers.pkg.github.com20.205.243.164107ms
copilot-proxy.githubusercontent.com138.91.182.224201ms
default.exp-tas.com13.107.5.9380ms
dependabot-actions.githubapp.com140.82.113.22308ms
desktop.githubusercontent.com185.199.109.133193ms
docker-proxy.pkg.github.com20.205.243.164107ms
docker.pkg.github.com20.205.243.164102ms
education.github.com140.82.114.22312ms
favicons.githubusercontent.com185.199.109.133191ms
fulcio.githubapp.com140.82.113.22506ms
ghcr.io20.205.243.164103ms
gist.github.com20.205.243.1660ms
github-cloud.githubusercontent.com185.199.111.154196ms
github-cloud.s3.amazonaws.com16.15.223.50242ms
github-com.s3.amazonaws.com16.15.245.204248ms
github-registry-files.githubusercontent.com185.199.111.154195ms
github-releases.githubusercontent.com185.199.108.154200ms
github.blog192.0.66.2206ms
github.community140.82.112.18315ms
github.dev20.43.185.1464ms
github.githubassets.com185.199.111.215188ms
github.global.ssl.fastly.net159.106.121.750ms
github.io185.199.111.153194ms
github.map.fastly.net185.199.109.133192ms
githubcopilot.com140.82.114.18289ms
githubstatus.com185.199.111.153191ms
launch.actions.githubusercontent.com140.82.114.21302ms
live.github.com140.82.113.26303ms
maven.pkg.github.com20.205.243.164102ms
media.githubusercontent.com185.199.108.133188ms
mpsghub.actions.githubusercontent.com20.22.118.40242ms
npm-beta-proxy.pkg.github.com20.205.243.164103ms
npm-proxy.pkg.github.com20.205.243.164106ms
npm.pkg.github.com20.205.243.164102ms
npmregistryv2prod.blob.core.windows.net20.60.7.132261ms
nuget.pkg.github.com20.205.243.164101ms
objects-origin.githubusercontent.com140.82.113.22313ms
objects.githubusercontent.com185.199.109.133194ms
origin-tracker.githubusercontent.com140.82.114.22295ms
pipelines.actions.githubusercontent.com13.107.42.1682ms
pipelinesghubeus1.actions.githubusercontent.com20.242.179.206241ms
pkg-containers.githubusercontent.com185.199.108.154193ms
pkg.actions.githubusercontent.com185.199.108.154193ms
pkg.github.com20.205.243.164106ms
private-user-images.githubusercontent.com185.199.108.133196ms
productionresultssa1.blob.core.windows.net20.209.226.1237ms
production-release-asset-2e65be.s3.amazonaws.com16.15.253.98244ms
production-user-asset-621df.s3.amazonaws.com16.15.255.106240ms
pypi.pkg.github.com20.205.243.164106ms
raw.githubusercontent.com185.199.108.133194ms
release-assets.githubusercontent.com185.199.108.133190ms
results-receiver.actions.githubusercontent.com140.82.112.21302ms
rubygems.pkg.github.com20.205.243.164102ms
run-actions-1-azure-eastus.actions.githubusercontent.com20.85.130.105243ms
runner-auth.actions.githubusercontent.com140.82.114.21312ms
runnerghubeus1.actions.githubusercontent.com40.88.240.168260ms
setup-tools.actions.githubusercontent.com150.171.110.7088ms
swift.pkg.github.com20.205.243.164102ms
timestamp.githubapp.com140.82.114.22308ms
tokenghub.actions.githubusercontent.com20.85.108.33239ms
tuf-repo.github.com185.199.111.153190ms
user-images.githubusercontent.com185.199.108.133188ms
visualstudio.com150.171.73.1659ms
vscode.dev150.171.110.10359ms
vstoken.actions.googleapis.com198.18.0.342ms
82 / 82 条记录 | 平均延迟: 194ms

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 账号。