当前位置:网站首页>0.0.0.0:x的含义
0.0.0.0:x的含义
2022-06-27 06:08:00 【看遍世间繁华】
本地地址即为源ip和端口,外部地址即为建立连接的目的ip和端口。
本地地址中经常会出现0.0.0.0:端口号,这代表了该程序运行在该主机中所有网卡(包括虚拟网卡)对应的ip和端口上,以Tomcat为例,运行时本地地址中有0.0.0.0:8080,此意味该Tomcat服务器运行在本地环回地址上(127.0.0.1,可以认为相当于有一块虚拟网卡)和所有其他联网的ip地址上,例如192.168.31.44,该服务器在此两个网卡上的8080端口都进行监听。这也是为什么本地运行调试时,本计算机使用localhost:8080和192.168.31.44:8080都能够访问资源,而同网段下其他主机访问192.168.31.44:8080也能够访问。


上图为使用同一局域网下移动设备访问该服务器时的本地地址和外部地址,可以看到,本地地址此时实际上就是该网卡的ip地址,目的地址是我的移动设备的ip和一个动态端口号。
推荐一个超级强大的windows端程序,OpenArk,整合了诸多功能,在查看网络方面也具有良好的用户体验。

Github下载地址:https://github.com/BlackINT3/OpenArk/releases/tag/v1.2.2
边栏推荐
猜你喜欢
随机推荐
30 SCM common problems and solutions!
tracepoint
LeetCode 0086.分隔链表
tar: /usr/local:归档中找不到tar: 由于前次错误,将以上次的错误状态退出
《汇编语言-王爽》第3章笔记及实验
cpu-z中如何查看内存的频率和内存插槽的个数?
Crawler learning 5--- anti crawling identification picture verification code (ddddocr and pyteseract measured effect)
G1和ZGC垃圾收集器
【Cocos Creator 3.5.1】event. Use of getbutton()
多线程带来的的风险——线程安全
Win 10 如何打开环境变量窗口
Netease cloud music params and encseckey parameter generation code
Using CSDN to develop cloud and build navigation websites
1317. convert an integer to the sum of two zero free integers
Gaussian distribution, linear regression, logistic regression
426-二叉树(513.找树左下角的值、112. 路径总和、106.从中序与后序遍历序列构造二叉树、654. 最大二叉树)
Quick personal site building guide using WordPress
WebRTC系列-网络传输之7-ICE补充之提名(nomination)与ICE_Model
【Cocos Creator 3.5.1】this. node. Use of getposition (this.\u curpos)
Active learning








