public void startClient() {
		try {
			connectToServer(); // Connect to a Server
			setupStreams(); // Creates data streams
			readyListen();
		} catch (EOFException eofException) {
			System.out.println("\n Client Closed the Connection");
		} catch (IOException ioException) {
		    System.out.println("\n Connection lost to other");
            node.isConnectedAsClient = false;
            try {
                node.setPacket(InetAddress.getLocalHost().getHostAddress(), 0,node.isConnectedAsClient, node.serverFree);
            } catch (Exception e) {
                System.out.println("Address Error");
            }
            node.sendMessagePD();
            node.relistenPD();
		} finally {
		//	closeSockets();
		}
	}