import java.net.Socket;
import java.net.URISyntaxException;
public class Test {
/**
* @param args
* @throws URISyntaxException
*/
public static void main(String[] args) {
Socket s = null;
try {
s = new Socket("localhost", 61616);
System.out.println(s + "OK");
} catch (Exception exception) {
System.out.println(" ERROR");
} finally {
try {
if (s != null)
s.close();
} catch (Exception ee) {
}
}
}
}