netstat command local address format

懵懂的女人 提交于 2019-12-08 05:19:19

问题


I have below netstat -ao result.

Proto  Local Address
TCP    0.0.0.0:22
TCP    127.0.0.1:3306
TCP    165.120.144.11:139
TCP    [::]:80

In this result what does IP 0.0.0.0, 127.0.0.1, 165.120.144.11 and [::] indicates ?


回答1:


0.0.0.0 is the wildcard address - which means your machine is listening on port 22 (SSH) on all interfaces/IP addresses that it can see. [::] is another way to represent this for IPv6.

127.0.0.1 is the loopback address - which means your machine is listening on port 3306 (MySQL) on localhost only.

165.20.144.11 is most likely your external/internet facing IP address.



来源:https://stackoverflow.com/questions/18146015/netstat-command-local-address-format

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!