尋找訪問github最快的IP地址

前言

github網站訪問慢或訪問不了,相信很多人都會遇到過,解決方式大概有兩種:一種是使用代理訪問;另一種是使用ipaddress.com等域名解析網站查詢域名的ip,然後在host文件增加ip與域名的映射。

代理訪問

這處省略。

域名解析網站

例如使用ipaddress.com查詢域名的ip,但你的網絡(別人的網絡可以)可能還是無法正常的訪問這個ip,或者無法連接此ip的443端口。所以如果你在網上搜索"github慢",得到別人貼出的"最新github ip"數據,粘貼到你的host文件,你可能還是無法訪問github。所以你所在網絡能否很好的訪問到github,這個查找與檢測ip速度的工作,還是需要在你的網絡下的pc進行,得到的數據纔是合適自己。

FastGithub

FastGithub是我開發的一個小工具,使用使用github公佈的ip範圍,先掃描這些ip的443端口是否開放,然後使用https來訪問這個ip的443端口,看https是否能正常訪問,最後將ok的ip地址按照https訪問時長做排序輸出,你可以把你掃描結果輸出複製到電腦的host文件即可。輸出的內容格式如下(別複製下面的結果,這是博主本人網絡的結果):

140.82.114.2	api.github.com	# 00:00:00.9359736
140.82.112.2	api.github.com	# 00:00:00.9595741
140.82.113.2	api.github.com	# 00:00:00.9602482
140.82.121.2	api.github.com	# 00:00:01.1133093
192.30.255.2	api.github.com	# 00:00:01.1962011
13.250.177.223	github.com	# 00:00:00.2509597
13.229.188.59	github.com	# 00:00:00.2593114
52.74.223.119	github.com	# 00:00:00.2648178
13.234.176.102	github.com	# 00:00:00.4751271
52.64.108.95	github.com	# 00:00:00.5933076
13.237.44.5	github.com	# 00:00:00.5936071
13.236.229.21	github.com	# 00:00:00.6378542
52.69.186.44	github.com	# 00:00:00.6950384
15.164.81.167	github.com	# 00:00:00.8053042
192.30.255.2	github.com	# 00:00:00.8195086
140.82.113.20	github.com	# 00:00:00.9258969
140.82.112.19	github.com	# 00:00:00.9391045
140.82.113.2	github.com	# 00:00:00.9410952
140.82.112.4	github.com	# 00:00:00.9643452
140.82.114.2	github.com	# 00:00:00.9743808
140.82.114.4	github.com	# 00:00:00.9910022
140.82.113.19	github.com	# 00:00:00.9979367
140.82.114.20	github.com	# 00:00:01.0228525
140.82.112.20	github.com	# 00:00:01.0231699
140.82.114.19	github.com	# 00:00:01.0402547
140.82.121.4	github.com	# 00:00:01.0882430
140.82.121.3	github.com	# 00:00:01.3728329
18.228.52.138	github.com	# 00:00:02.0481446

源代碼與工具下載

源代碼:fastGithub

工具下載:fastGithub

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章