Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以请求localhost被视为来自局域网中的远程主机?
localhost
您是否尝试过更新/etc/hosts文件,替换:
/etc/hosts
127.0.0.1 localhost
使用您的实际 IP 地址?例如,
192.168.0.42 localhost
(这实际上并没有禁用环回地址,您仍然可以连接到127.0.0.1,但连接到localhost应该通过您的网络接口进入,我相信这就是您要问的)
127.0.0.1