问题描述

网页Github进不去,尽管已经连接梯子。
在Cmd中ping github.com 百分比丢包。

解决方法

  1. 在目录
    1
    C:\Windows\System32\drivers\etc
    找到hosts文件,在最后加上两行github的IP
    1
    2
    192.30.253.112 github.com
    151.101.88.249 github.global.ssl.fastly.net
  2. 如何还是ping不通,192.30.255.112 可能是旧的 GitHub IP,GitHub 的 IP 经常变。在cmd中输入以下指令检查最新 IP:
    1
    2
    nslookup github.com
    nslookup github.global.ssl.fastly.net
    替换到第二步中的地址