Netstat -a命令:0.0.0.0和127.0.0.1之间的差异


8

在本地计算机上运行netstat -a时,我看到0.0.0.0地址侦听端口。我以为0.0.0.0是我的本地计算机,除了我还看到127.0.0.1正在监听特定端口。

0.0.0.0地址是什么?0.0.0.0和127.0.0.1有什么区别?

以下是输出示例:

Proto  Local Address          Foreign Address        State
TCP    0.0.0.0:445            MyComputer1:0          LISTENING
TCP    0.0.0.0:49156          MyComputer1:0          LISTENING
TCP    0.0.0.0:49157          MyComputer1:0          LISTENING
TCP    127.0.0.1:6999         MyComputer1:0          LISTENING
TCP    127.0.0.1:6999         MyComputer1:49801      ESTABLISHED
TCP    127.0.0.1:6999         MyComputer1:57172      TIME_WAIT

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.