I want to get the delay time between 2 PC by this way:
currentTime = System.currentTimeMillis();
isPinged = InetAddress.getByName("192.168.6.18").isReachable(2000);
currentTime = System.currentTimeMillis() - currentTime;
System.out.println("----"+isPinged+":"+currentTime);
but the results always be "false" except "localhost",I tried change the getByName("192.168.6.18")
to the PC of LAN ,or the website like "www.facebook.com",but it has no effect