Java 获取主机真实IP 非虚拟机网卡IP等 使用库: <!-- oshi-core 主机监控 --> <dependency> <groupId>com.github.oshi</groupId> <artifactId>oshi-core</artifactId