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 "";
}
}