System.out.println("looks like we are connected to the proxy ...");  BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream())); String line; while ( (line = in.readLine()) != null) { System.out.println(line); }
    public static void main (String args[]) {        Socks4 proxy = new Socks4("201.252.3.145",1080, "anonymous");        try {            proxy.connect("195.58.170.125", 21);        }catch(Exception e) {            e.printStackTrace();        }    }