解决访问GitHub的Failed to connect to github.com port 443: Operation timed out问题
当碰到以下问题时:
突然电脑无法访问github了。 用科学上网却可以访问到GitHub 科学上网中,使用git时,却出现了以下的问题:Failed to connect to github.com port 443: Operation timed out 不要着急,解决方案如下:
第1步, 打开https://github.com.ipaddress.com/。记录下 Domain Summary下的IP Address,例如是140.82.113.4
第2步, 打开https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo。记录下 Hostname Summary下的IP Address,例如是199.232.69.194
第3步,打开https://github.com.ipaddress.com/assets-cdn.github.com。记录下FAQ下的IP,通常是四个,例如
186.185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153 第4步。打开电脑的hosts文件,把下列的地址写在最后,然后保存即可。
140.82.113.4 github.com 199.232.69.194 github.global.ssl.fastly.net 185.199.108.153 assets-cdn.github.com 185.199.109.153 assets-cdn.github.com 185.199.110.153 assets-cdn.github.com 185.199.111.153 assets-cdn.github.com 参考网页 GitHub无法访问、443 Operation timed out的解决办法