当前位置:网站首页>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
边栏推荐
- expect脚本中使用scp命令的方法,expect脚本中scp命令获取不了值的问题完美解决方法
- 日期 数据库日期 字符串 之间互相转换
- 【QT小点】QT下载链接
- C Primer Plus 第11章_字符串和字符串函数_代码和练习题
- Senior [Software Test Engineer] learning route and necessary knowledge points
- Proxy reflect usage details
- 【Cocos Creator 3.5.1】event.getButton()的使用
- 信息系统项目管理师---第七章 项目成本管理
- Database - index
- 【QT小记】QT元对象系统简单认识
猜你喜欢

openstack实例重启状态就会变成错误处理方法,容器搭建的openstack重启计算节点compute服务方法,开机提示Give root password for maintenance处理方法

30 SCM common problems and solutions!

Dev++ environment setting C language keyword display color

426 binary tree (513. find the value in the lower left corner of the tree, 112. sum of paths, 106. construct a binary tree from the middle order and post order traversal sequence, 654. maximum binary

Openresty usage document

yaml文件加密

机 器 学 习

The risk of multithreading -- thread safety

Run opcua protocol demo on raspberry pie 4B to access kubeedge

C Primer Plus 第11章_字符串和字符串函数_代码和练习题
随机推荐
Nlp-d62-nlp competition d31 & question brushing D15
WebRTC系列-網絡傳輸之7-ICE補充之提名(nomination)與ICE_Model
【Cocos Creator 3.5.1】坐标的加法
The risk of multithreading -- thread safety
Assembly language - Wang Shuang Chapter 13 int instruction - Notes
[FPGA] UART serial port_ V1.1
【Cocos Creator 3.5.1】event.getButton()的使用
函数栈帧的形成与释放
vscode korofileheader 的配置
Active learning
The restart status of the openstack instance will change to the error handling method. The openstack built by the container restarts the compute service method of the computing node and prompts the gi
软件测试年终总结报告模板
Database - index
Open the door small example to learn ten use case diagrams
IAR Systems全面支持芯驰科技9系列芯片
爬虫学习5---反反爬之识别图片验证码(ddddocr和pytesseract实测效果)
Configuration of vscode korofileheader
Kubesphere cluster configuration NFS storage solution - favorite
How win 10 opens the environment variables window
Altium designer 19 device silk screen label position shall be placed uniformly in batches