V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Axurez
V2EX  ›  问与答

为什么 localhost:8000 可以访问,但是 127.0.0.1:8000 就 connection refused 了?

  •  
  •   Axurez · May 28, 2015 · 3566 views
    This topic created in 3989 days ago, the information mentioned may be changed or developed.

    用的是 Laravel

    4 replies    2015-05-28 22:37:21 +08:00
    ilotuo
        1
    ilotuo  
       May 28, 2015 via Android
    隐隐约约记得<tcpip协议详解好像讲过>
    b821025551b
        2
    b821025551b  
       May 28, 2015
    隐隐约约记得一个走网卡一个不走网卡
    O21
        3
    O21  
       May 28, 2015
    设置成 0.0.0.0:8000 就都可访问了
    lululau
        4
    lululau  
       May 28, 2015
    3L 正解,不要 bind 在 "localhost" 上,localhost 有可能被解析为 IPv6 的本地回路地址
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3176 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 13:43 · PVG 21:43 · LAX 06:43 · JFK 09:43
    ♥ Do have faith in what you're doing.