1Panel icon indicating copy to clipboard operation
1Panel copied to clipboard

[Bug]The host information does not match the actual public IP address of the machine

Open LanQin996 opened this issue 1 year ago • 1 comments

Contact Information

[email protected]

1Panel Version

v1.10.29-lts

Problem Description

目前1panel显示系统信息的主机地址是按照eth0网卡来显示IP 但一些VPS服务商在网卡上使用的是内网IP 导致IP显示不准确

Image

Image

Steps to Reproduce

eth0网卡填入内网IP 具体服务商如何操作原理我也不是很清晰,但实际网卡上并没有公网IP

The expected correct result

No response

Related log output


Additional Information

No response

LanQin996 avatar May 16 '25 02:05 LanQin996

感谢反馈。 概览页面所展示的主机 IP 是基于系统默认路由的出站地址,这通常由主网卡(如 eth0)提供。 在部分云服务商中,公网 IP 是通过 NAT 映射实现的,因此主网卡上的实际 IP 通常为内网地址。

wanghe-fit2cloud avatar May 16 '25 06:05 wanghe-fit2cloud