public void testSocket() throws Exception {
System.out.println("Connecting to unidata...");
System.out.println("testSocket");
UniSession uSession = new UniSession();
int port = uSession.connection.getPort();
System.out.println("Testing connection to " + SERVER_ADDRESS + " on port " + port + "...");
Socket test_socket = new Socket(SERVER_ADDRESS, port);
if (test_socket.isConnected()) {
System.out.println("Connection successful");