public static String getLocalHostIp(){
InetAddress localhost = null;
try {
localhost = InetAddress.getLocalHost();
String ip = localhost.getHostAddress();
return ip;
} catch (UnknownHostException e) {
e.printStackTrace();
return "unkown host";
}
}