My application is: ping host IP(in LAN) address from my machine.
InetAddress address = InetAddress.getByName("host IP address");
boolean b=(address.isReachable(10000));
When i run that web application ping is done from my machine so in my tomcat web server this application is running but is it possible to connect host ip address from my machine but i will put my application in another machine's tomact web server, which is also in my LAN. So ping will be done from my machine but another machine will run this application.