How do I interpret 'netstat -a' output

后端 未结 7 1985
失恋的感觉
失恋的感觉 2021-01-30 22:40

Some things look strange to me:

  • What is the distinction between 0.0.0.0, 127.0.0.1, and [::]?
  • How should each part of the foreign address be read (part1:p
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 23:24

    0.0.0.0 usually refers to stuff listening on all interfaces. 127.0.0.1 = localhost (only your local interface) I'm not sure about [::]

    TIME_WAIT means both sides have agreed to close and TCP must now wait a prescribed time before taking the connection down.

    CLOSE_WAIT means the remote system has finished sending and your system has yet to say it's finished.

提交回复
热议问题