当前位置:网站首页>Meaning of 0.0.0.0:x

Meaning of 0.0.0.0:x

2022-06-27 06:34:00 See the prosperity of the world

The local address is the source ip And port , The external address is for the purpose of establishing the connection ip And port .

The local address often appears 0.0.0.0: Port number , This represents that the program runs on all network cards in the host ( Including virtual network card ) Corresponding ip And ports , With Tomcat For example , There are... In the runtime local address 0.0.0.0:8080, This means that Tomcat The server runs on the local loopback address (127.0.0.1, It can be considered as having a virtual network card ) And all other networked ip Address , for example 192.168.31.44, The server is on the two network cards 8080 All ports listen . This is why debugging is run locally , This computer uses localhost:8080 and 192.168.31.44:8080 Can access resources , Other hosts in the same network segment access 192.168.31.44:8080 You can also access .

 

The above figure shows the local address and external address when using mobile devices under the same LAN to access the server , You can see , The local address is actually the address of the network card ip Address , The destination address is... Of my mobile device ip And a dynamic port number .

Recommend a super powerful windows End program ,OpenArk, Integrated many functions , It also has a good user experience in viewing the network .

Github Download address :https://github.com/BlackINT3/OpenArk/releases/tag/v1.2.2 

原网站

版权声明
本文为[See the prosperity of the world]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270608441847.html