This content has been marked as final. Show 2 replies
i googled How Detect internet Connection using Java?
and found this code
Process p1 = java.lang.Runtime.getRuntime().exec("ping www.google.com");
// return 0(zero) if internet is availble
catch (Exception e)
// caught exception
It is working fine in windows.
How change above code so that it works for mac??
Thnax in advance