public Client_Socket(String hostName, int portNumber) throws ConnectException {

        try {
            try {
                echoSocket = new Socket(hostName, portNumber);
            } catch (ConnectException e) {
                throw e;
            } catch (UnknownHostException e) {
                System.out.println(UNKNOWN_HOST);
            }

            out = new PrintWriter(echoSocket.getOutputStream(), true);

        } catch (ConnectException e) {
            throw e;
        } catch (IOException e) {
            e.printStackTrace();
        }
    }