dear sirs, would you please help me in following: 1. How to sense Inet connection in java? itried this, works well for first call, but can not update itself.. /////////////// import java.net.*; class CheckNet { public static void main(String args[]) { while(true) { check(); try{ Thread.sleep(1000); }catch(InterruptedException ie){System.out.println(ie);} } } static void check() { try { String hostAddress ; InetAddress localHost ; localHost = InetAddress.getLocalHost(); hostAddress = localHost.getHostAddress(); if (hostAddress.equals( "127.0.0.1" )) System.out.println("Not connected"); else System.out.println("Connect to host: " + hostAddress);
} /////////////////////////////////////////////// 2. How to sense launch of an external application like IExplorer 3.How to block data exchange from local machine ie block internet connection so that browser can not fetch data from sites? shailesh bilalashailesh@yahoo.com theshailesh@hotmail.com