public static String IP()
{
String ip = "";
try
{
String hostName = InetAddress.getLocalHost().getHostName();
InetAddress[] ipList = InetAddress.getAllByName(hostName);
for(int i = 0;i < ipList.length;i++)
{
ip = ipList[i].getHostAddress();
}
}
catch(Exception e)
{
//T.Mess(null,e.getMessage());
}
return ip;
}