code: public static void setDefaultProxy(InetAddress ipAddress,int port,
                                        String user){
        defaultProxy = new Socks4Proxy(ipAddress,port,user);
     }
docs: Sets SOCKS4 proxy as default.
  @param ipAddress Host address on which SOCKS4 server is running.
  @param port Port on which SOCKS4 server is running.
  @param user Username to use for communications with proxy.