Failed to connect to github.com port 443: Operation timed out

本文介绍了当目标网站IP发生变化时的解决方案,包括重新获取IP并更新hosts文件的方法。提供了查询github.com等站点IP地址的具体命令,并展示了hosts文件的配置示例。

目标访问网站的IP地址可能会发生改变
解决方案:重新获取目标对象当前可访问IP地址,将当前目标对象全新的IP地址值配置到hosts单元文件内

全球IP查询
分别查询github.com和github.global.ssl.fastly.net对应的ip地址
在这里插入图片描述
在这里插入图片描述

备注:
获取github.com网站IP地址:
终端命令
Ping github.com

获取raw.githubusercontent.com网站IP地址:
终端命令
Ping raw.githubusercontent.com

获取localhost网站IP地址:
终端命令
Ping localhost

获取broadcasthost网站IP地址:
终端命令
Ping broadcasthost

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost

199.232.68.133  raw.githubusercontent.com

140.82.112.4 github.com

最后尝试:切换网络环境(外网/内网/Wi-Fi不同信号📶)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

HaiJunYa

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值