hosts 把 localhost 名称指向其他机器在 chrome 里面访问不了?

2018 年 11 月 4 日
 ashin

配了一个 host 类似

10.10.10.10 localhost

然后在浏览器访问http://localhost:8080 在 chrome 里面访问不了 在 IE 里面可以

终端 ping localhost 也解析的是 10.10.10.10

这个是需要设置什么吗?

2364 次点击
所在节点    程序员
5 条回复
also24
2018 年 11 月 4 日
在这里看看?

chrome://net-internals/#dns
OscarUsingChen
2018 年 11 月 4 日
Chrome 对 localhost 的解析不听 hosts 文件的指挥
NB40B938mff85mtq
2018 年 11 月 5 日
chrome://net-internals/ 了解一下??
ashin
2018 年 11 月 5 日
@also24 @Gempty 都试过 不行
NB40B938mff85mtq
2018 年 11 月 5 日
@ashin 清下浏览器缓存吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.ih06.com/t/504422

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX