public static String getLocalIp(){
InetAddress ia=null;
try {
ia=ia.getLocalHost();
String localip=ia.getHostAddress();
return localip;
}catch (Exception e){
logger.error("{获取本地IP}" + e.getMessage());
return "";
}
}
1266

被折叠的 条评论
为什么被折叠?



