记录1:localhost可以访问但127.0.0.1无法访问的问题

本地起服务后,发现localhost+端口可以访问,但是127.0.0.1+端口无法访问,网上大部分都是"127.0.0.1可以访问但localhost无法访问";

1.ping localhost,没问题,ip确实是127.0.0.1;

2.检查hosts也没问题;

发现是本地的代理surge使用了服务监听的端口,修改服务配置端口后问题成功解决。

posted @ 2022-04-18 17:10  绝尘之驹  阅读(3443)  评论(0)    收藏  举报