获取本机ip地址

InetAddress.getLocalHost().getHostAddress()

原文地址:https://www.cnblogs.com/penghq/p/8663903.html