inet = InetAddress.getLocalHost();
ip = inet.getHostAddress();
} catch (Exception e) {
log.error(e);
}
<BUG>}
if(null != ip && ip.contains(",")){
ip = ip.substring(0, ip.indexOf(","));</BUG>
}
return ip;

inet = InetAddress.getLocalHost();
ip = inet.getHostAddress();
} catch (Exception e) {
log.error(e);
}
}
return ip;
