public static boolean telnetTest() { boolean b=false; Socket server = null; try { server = new Socket(); InetSocketAddress address = new InetSocketAddress( "192.168.1.101", 80); server.connect(address, 5000); b=true; } catch (UnknownHostException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return b; } goodly