public Client() throws IOException
    {
        hostname = "localhost";
        port = 10000;
        s = new Socket(hostname, port);
        reader = new BufferedReader(new InputStreamReader(s.getInputStream()));
        writer = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));
    }