String ip = null;
try {
InetAddress ia = InetAddress.getLocalHost();
ip = ia.getHostAddress();
} catch (Exception e) {
e.printStackTrace();
}
String ip = null;
try {
InetAddress ia = InetAddress.getLocalHost();
ip = ia.getHostAddress();
} catch (Exception e) {
e.printStackTrace();
}