public void createClient() {
        
        
        Socket socket;
        BufferedReader in;
        PrintWriter out;

        try {
        
        	socket = new Socket(InetAddress.getLocalHost(),5000);   
            System.out.println("Demande de connexion ...");
            
            BufferedWriter w = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
            w.write(String.valueOf(10));
            w.flush();            
            
            System.out.println("Envoie de la valeur ...");
            System.out.println("Attente de la reponse ...");
            
            in = new BufferedReader (new InputStreamReader (socket.getInputStream()));
            String message_distant = in.readLine();
            int i = Integer.parseInt(message_distant);
            System.out.println("value : " + i);
                
            socket.close();
               
        } catch (UnknownHostException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }