51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

谷歌翻译提示无法翻译此网页问题解决及分析

使用谷歌浏览器时,在网页上右键点击翻译中文,可以直接翻译当前页面,但是这个翻译功能经常失效,会提示"无法翻译此网页"。

原因就是由于某些网络因素导致,解决这个问题的办法还是要修改hosts文件,不会修改hosts的自行百度。

解决:

将以下内容直接复制到hosts里,然后重新打开要翻译的网页点击翻译即可(确定该IP地址可以ping通)
203.208.40.66 translate.googleapis.com

|---|----------------------------------------| | 1 | 203.208.40.66 translate.googleapis.com |

这个方法也是网上流传的通用办法,网上很多复制粘贴的文章说要保留前面#号,我真是无语(一个文章错,N个文章错),#号表示注释作用,不管#号后面是什么都不会生效。


那么问题来了,这个IP是怎么来的?

你搜索一下会发现,官方并没有发布过该IP地址,如果该IP后期失效了该如何查找新的IP?

该IP也是通过fonts.googleapis.com解析的IP地址得来,因为国内放通了谷歌该域名,我们通过该域名解析出来的国内IP,进行强制hosts解析给translate.google.com

接下来我介绍一个网站https://dig.ping.pe,可以通过该网站解析出来的IP进行hosts

ping.pe是一个国外的免费站长工具平台,可以全球ping、mtr、dig等功能,使用起来还是很轻量化的。

直接输入:dig fonts.googleapis.com

或访问:https://dig.ping.pe/fonts.googleapis.com:A:8.8.8.8

这样就会得到一些国内的IP地址了,根据情况按需使用,本文仅代表个人分析观点,如果你觉得我说的不对,那么你说的全对!

下面列出几个我测试过的可用地址
142.250.4.90 translate.googleapis.com 172.253.114.90 translate.googleapis.com 172.217.203.90 translate.googleapis.com 172.253.112.90 translate.googleapis.com 142.250.9.90 translate.googleapis.com 172.253.116.90 translate.googleapis.com 142.250.97.90 translate.googleapis.com 142.250.30.90 translate.googleapis.com 142.250.111.90 translate.googleapis.com 172.217.215.90 translate.googleapis.com 142.250.11.90 translate.googleapis.com 142.251.9.90 translate.googleapis.com 108.177.122.90 translate.googleapis.com 142.250.96.90 translate.googleapis.com 142.250.100.90 translate.googleapis.com 142.250.110.90 translate.googleapis.com 172.217.214.90 translate.googleapis.com 172.217.222.90 translate.googleapis.com 142.250.31.90 translate.googleapis.com 142.250.126.90 translate.googleapis.com 142.250.10.90 translate.googleapis.com 172.217.195.90 translate.googleapis.com 172.253.115.90 translate.googleapis.com 142.251.5.90 translate.googleapis.com 142.250.136.90 translate.googleapis.com 142.250.12.90 translate.googleapis.com 142.250.101.90 translate.googleapis.com 172.217.192.90 translate.googleapis.com 142.250.0.90 translate.googleapis.com 142.250.107.90 translate.googleapis.com 172.217.204.90 translate.googleapis.com 142.250.28.90 translate.googleapis.com 142.250.125.90 translate.googleapis.com 172.253.124.90 translate.googleapis.com 142.250.8.90 translate.googleapis.com 142.250.128.90 translate.googleapis.com 142.250.112.90 translate.googleapis.com 142.250.27.90 translate.googleapis.com 142.250.105.90 translate.googleapis.com 172.253.126.90 translate.googleapis.com 172.253.123.90 translate.googleapis.com 172.253.122.90 translate.googleapis.com 172.253.62.90 translate.googleapis.com 142.250.98.90 translate.googleapis.com 142.250.185.238 translate.googleapis.com 142.251.116.101 translate.googleapis.com 216.58.214.14 translate.googleapis.com 142.250.189.206 translate.googleapis.com 216.58.209.174 translate.googleapis.com 142.250.203.142 translate.googleapis.com 142.250.218.14 translate.googleapis.com 142.251.10.138 translate.googleapis.com 142.251.40.174 translate.googleapis.com 142.250.185.174 translate.googleapis.com 172.217.16.46 translate.googleapis.com 172.217.0.46 translate.googleapis.com 172.217.31.142 translate.googleapis.com 216.58.220.142 translate.googleapis.com 172.217.13.142 translate.googleapis.com

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | 142.250.4.90 translate.googleapis.com 172.253.114.90 translate.googleapis.com 172.217.203.90 translate.googleapis.com 172.253.112.90 translate.googleapis.com 142.250.9.90 translate.googleapis.com 172.253.116.90 translate.googleapis.com 142.250.97.90 translate.googleapis.com 142.250.30.90 translate.googleapis.com 142.250.111.90 translate.googleapis.com 172.217.215.90 translate.googleapis.com 142.250.11.90 translate.googleapis.com 142.251.9.90 translate.googleapis.com 108.177.122.90 translate.googleapis.com 142.250.96.90 translate.googleapis.com 142.250.100.90 translate.googleapis.com 142.250.110.90 translate.googleapis.com 172.217.214.90 translate.googleapis.com 172.217.222.90 translate.googleapis.com 142.250.31.90 translate.googleapis.com 142.250.126.90 translate.googleapis.com 142.250.10.90 translate.googleapis.com 172.217.195.90 translate.googleapis.com 172.253.115.90 translate.googleapis.com 142.251.5.90 translate.googleapis.com 142.250.136.90 translate.googleapis.com 142.250.12.90 translate.googleapis.com 142.250.101.90 translate.googleapis.com 172.217.192.90 translate.googleapis.com 142.250.0.90 translate.googleapis.com 142.250.107.90 translate.googleapis.com 172.217.204.90 translate.googleapis.com 142.250.28.90 translate.googleapis.com 142.250.125.90 translate.googleapis.com 172.253.124.90 translate.googleapis.com 142.250.8.90 translate.googleapis.com 142.250.128.90 translate.googleapis.com 142.250.112.90 translate.googleapis.com 142.250.27.90 translate.googleapis.com 142.250.105.90 translate.googleapis.com 172.253.126.90 translate.googleapis.com 172.253.123.90 translate.googleapis.com 172.253.122.90 translate.googleapis.com 172.253.62.90 translate.googleapis.com 142.250.98.90 translate.googleapis.com 142.250.185.238 translate.googleapis.com 142.251.116.101 translate.googleapis.com 216.58.214.14 translate.googleapis.com 142.250.189.206 translate.googleapis.com 216.58.209.174 translate.googleapis.com 142.250.203.142 translate.googleapis.com 142.250.218.14 translate.googleapis.com 142.251.10.138 translate.googleapis.com 142.251.40.174 translate.googleapis.com 142.250.185.174 translate.googleapis.com 172.217.16.46 translate.googleapis.com 172.217.0.46 translate.googleapis.com 172.217.31.142 translate.googleapis.com 216.58.220.142 translate.googleapis.com 172.217.13.142 translate.googleapis.com |

以上方法可能失效,建议通过GoogleTranslateIpCheck工具配置hosts来修复

地址:https://github.com/Ponderfly/GoogleTranslateIpCheck

赞(0)
未经允许不得转载:工具盒子 » 谷歌翻译提示无法翻译此网页问题解决及分析