FTP thru proxy

am trying to connect to FTp thru proxy. I am using jscape's FTPclient
i set the properties as System.setProperty() for ftpproxy host & port
but still it is not working.
Also my proxy is set to make Ftp connection
Plz do help me out . i am not getting a solution to this
Thank u
priya

Hi,
It may help you :-
Ftp ftp = new Ftp();
//capture Ftp related events
ftp.addFtpListener(this);
ftp.setHostname(hostname);
ftp.setUsername(username);
ftp.setPassword(password);
ftp.connect();
ftp.setBinary();
As i have used this jscape inetfactory for working with ftp(but i have not tried with proxy). It worked for me. I just have passed the Hostname, username and password of the ftp, and the files are transfered to the respective location specified by me.
Best of luck,
R S

Similar Messages

  • Ftp thru a proxy server

    I've a PC and my Mac g4/466 with system 10.4.
    With the PC i can connect to the ftp thru proxy server without problem, the PC has a option called HTTP/1.1. With this one selectiones all is gong ok, but if I disable this, net ftp doesn't connect.
    I try to connect via the Mac, and I can't, impossible, I tried with all ftp programs knowed and more! I look for the HTTP/1.1 option, but in the Mac I can't find it. So my Mac don'¡t connect to the ftp.
    Someone can help me??? I don't know what to do.
    Thanks in advance.
    Please answer the question if you know certainly that you can help me.

    OK, turn off the Mac's Firewall for a test, then lets try ftp via Terminal to see if we get more clues/info...
    http://voidin.blogspot.com/2005/10/how-to-ftp-files-using-osxs-built-in.html
    http://mmughrabi.blogspot.com/2007/10/using-mac-os-x-terminal-as-ftp-client.html
    I'd also open Console in Applications>Utilities & watch for clues.

  • Endpoint for FTP based proxy in Linux-urgent

    Hi,
    I have configured FTP based proxy. Both FTP server and ALSB are running on same machine. I have configured endpoint as ftp://<ip>:21/. FTP directory is /home/alsb
    I have also mentioned error,archive and download dirs in /home/Dir/download ,/home/Dir/error,/home/Dir/archive.
    Inspite of this the proxy is not polling fo messages from FTP server. The name of the file changes to <filename>.stage but nothing happens after that.
    The other alternative config done was to enable remote streaming.In this case,the file polls but it moves to error dir.None of the alerts configured in proxy are executed.
    Can anyone tell me where the problem is?
    Thanks.
    Arti

    Hi,
    I didn't find any error in OSB logs.This was the msg in the log:
    ####<Aug 6, 2009 5:54:10 PM EDT> <Info> <WliSbTransports> <DIA2-RH52> <AdminServer> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1249595650028> <BEA-381113> <File ./CntctOpt_data.txt renamed to CntctOpt_data.txt__5970064165513615536--40acb272.122ebdf8770.-109a.Stage on the remote host 192.168.14.126 for the service endpoint ProxyService$3sixty$proxy$contact$inbound$DummyProxy>
    Also found this :
    javax.jms.JMSException: [JMSPool:169803]JNDI lookup of the JMS connection factory weblogic.wlsb.jms.transporttask.QueueConnectionFactory failed: javax.naming.NameNotFoundException: While trying to lookup 'weblogic.wlsb.jms.transporttask.QueueConnectionFactory' didn't find subcontext 'wlsb'. Resolved 'weblogic'; remaining name 'wlsb/jms/transporttask/QueueConnectionFactory'
    Resolved 'weblogic'; remaining name 'wlsb/jms/transporttask/QueueConnectionFactory'
         at weblogic.deployment.jms.JMSExceptions.getJMSException(JMSExceptions.java:29)
         at weblogic.deployment.jms.JMSConnectionHelper.lookupConnectionFactory(JMSConnectionHelper.java:471)
         at weblogic.deployment.jms.JMSConnectionHelper.openConnection(JMSConnectionHelper.java:268)
         at weblogic.deployment.jms.JMSConnectionHelper.<init>(JMSConnectionHelper.java:184)
         at weblogic.deployment.jms.JMSSessionPool.getConnectionHelper(JMSSessionPool.java:469)
         at weblogic.deployment.jms.PooledConnectionFactory.createConnectionInternal(PooledConnectionFactory.java:332)
         at weblogic.deployment.jms.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:226)
         at com.bea.wli.sb.security.SecurityModuleImpl$5.run(SecurityModuleImpl.java:521)
         at com.bea.wli.sb.security.SecurityModuleImpl$5.run(SecurityModuleImpl.java:520)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at com.bea.wli.sb.security.SecurityModuleImpl.runAlsbPrivilegedAction(SecurityModuleImpl.java:376)
         at com.bea.wli.sb.security.SecurityModuleImpl.createJmsConnection(SecurityModuleImpl.java:524)
         at com.bea.wli.sb.transports.poller.PollEngine.sendMessage(PollEngine.java:133)
         at com.bea.wli.sb.transports.poller.PollEngine.putMessageInQueue(PollEngine.java:108)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:79)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    I am using a different connection factory.Not sure why this error is being encountered.
    Edited by: arrajago on Aug 7, 2009 2:04 AM

  • Ftp via Proxy server

    Is it just me or is documentation for FTP and all related thereto rather lacking and such that exists rather confusing?
    Anyway, I have an FTP related question. I wish to connect to an FTP server. Trouble is that the internet connection goes through a proxy server.
    Step 2 of connecting to the FTP server works when I connect to the proxy server myself first (open Internet explorer and type in the user and password) and then run the FTP connection program (uses Jakarta)
    However, step 1 is proving problematic. Here is the code:
    System.getProperties().put("ftp.proxySet","true");
         System.getProperties().put("ftp.proxyHost", "proxy.abc.def");
         System.getProperties().put("ftp.proxyPort", "80");
         System.getProperties().put("ftp.proxyUser", "auser");
         System.getProperties().put("ftp.proxyPassword", "apswd");
    Then comes the code for part 2 - ie connect to ftp host -      
    connect("abcd.dfg.ert");
    However, when I run the program and it comes to do the actual connection to the FTP host, part 2 above, I get "java.net.ConnectException: Connection timed out: connect".
    Any suggestions as to what I am doing wrong would be greatly appreciated. I've been banging my head against the wall on this since the start of the week.

    Just a further update on the above :
    I saw some advice suggesting I need to connect to a SOCKS server as well. So I put the below code in place.
    System.getProperties().put( "socksProxyPort", "80");
    System.getProperties().put( "socksProxyHost" ,"proxy.abc.def");
    However, this gave me the same error as above.
    Then I heard that I need to authenticate myself to the SOCKS server.
    So, here is what I wrote to do that:
    Authenticator.setDefault(new Authenticator(){
    protected PasswordAuthentication getPasswordAuthentication() {
    return new PasswordAuthentication("auser", "apswd".toCharArray());
    I used the same username and passwords as I had used for the ftp.proxyUser and ftp.proxyPassword, because I do not have any other passwords - perhaps this is the incorrect thing to do....?
    Then, I got the following exception:
    java.net.SocketException: Malformed reply from SOCKS server
    Does that mean I am actually connected to the SOCKS server or not, I wonder. I read in a few places that some proxies use SOCKS and some don't. I don't know how to determine whether mine does or not. When I look at the properties of the proxy in Internet explorer, I notice that the SOCKS section is blanked out. I can fill it in myself, of course, but my program still has the same errors as above.

  • Does Juniper have anything similar to Cisco's 'cut-thru proxy?

    Has anyone configured a Juniper to authorize users 'thru' a firewall?
    Sent from Cisco Technical Support iPad App

    Hi Bro
    You're lucky I'm in a good mood today. Normally, I won't answer questions pertaining to non Cisco products, because I have less faith in them but I guess I'll answer your question.
    Yes, Juniper Netscreen FW do have similar feature with Cisco Cut-Through Proxy. It's called WebAuth. For further details on this, please click on this URL http://kb.juniper.net/InfoCenter/index?page=content&id=KB4103
    Here are some extra info for you :-)
    a) Only FTP/Telnet/HTTP are supported if you want to have transparent interception.
    OR
    b) If you want to let all users to be authenticated first then the option is WebAuth in which user has to manually type in the WebAuth Server IP Address configured at NetScreen to authenticate themselves before they are granted access to any services
    c) Only Local Database, RADIUS and LDAP authentication source are supported (No TACACS support as opposed to PIX/ASA)
    P/S: if you think this comment is useful, please mark this question as answers and rate this comment nicely :-)

  • FTP through proxy

    All,
    Is it possible to use the SAP XI FTP adapter through an internet proxy?  I don't find any configuration parameters to specify the ip-address and ftp-port.
    Kind regards, Guy Crets

    It seems impossible to specifiy the ip-address and port number of a proxy server.  Only the ip adress and port number of the ftp server can be specified.
    I want to connect with the FTP adapter to an FTP server somewhere on the Internet.  To go out of our network on to the Internet, I need to go through a proxy.
    Looking forward to your feedback/answers.
    Regards, Guy Crets

  • How to make udp datagram pass thru proxy server?

    I have to make a video stream system. And I found that there are a lot of user is behind the firewall or proxy server, how should i do to make the udp streaming media pass thru the firewall or proxy????
    does the https tunnel help?

    Thanks for your advise, but does http tunnel only accept for the TCP problem? since my server will broadcast a stream of udp to the user, so how should i do that?

  • File size when doing ftp via proxy

    Hi ALL,
    I can not see file size when doing ftp download through proxy.
    Why?

    Welcome to the Apple Discussions.
    There’s a second setting in the New Message Window in Mail that only appears if you have a JPEG attached:
    Uploaded with plasq's Skitch!
    Regards
    TD

  • How to make rtp udp datagram pass thru proxy server?

    I have to make a video stream system. And I found that there are a lot of user is behind the firewall or proxy server, how should i do to make the udp streaming media pass thru the firewall or proxy????
    does the https tunnel help?

    Tunnelling with HTTP is the only way.

  • Oracle Service Bus 11g - FTP Transport Proxy

    We have a requirement in OSB for FTP transport.
    1. Proxy Service(Named poll_XML) will poll for a XML file in FTP location.
    2. This polled file will contain names of 3 different files in body.
    3. Another Proxy Service(named poll_images), need to poll these 3 files from different FTP Location.This FTP location is fixed.
    4. A Business Service will send these files with some XML data over SOAP to other system.
    Please suggest some possible solution.
    For the FTP polling with Proxy service, we have to mention file name in FTP Transport configuration page. Can we change this file name During Run Time ?
    Can we make any Dynamic regular expression which picks file name from XML file, which was polled from first Proxy Service(poll_XML).

    HI
    you can change file name during run time by using Transport Headers activity,in that you just need to select type of property you want( like dynamic file name,dynamic file directory).
    Thanks
    bala

  • Accessing a servlet thru Proxy server

    I have a servlet and It has to be accessed by a Client Application. The Cleint cannot directly access this servlet. He has to come thru a proxyServer.
    Client application is opening a URL Connection to my Servlet by using the Proxy parameter in the URL.openConnection(Proxy).
    It fails "Authorization failure giving error 407"
    How do I authorize the proxyServer to connect to my Servlet?
    I tried putting an Authenticator class to return the userId and Password and installed the authenticator before opening the urlConnection.
    It doesn't call the Authenticator's getPasswordAuthentication() method at all.
    Any ideas on How to make an authenticated connection thru a ProxyServer.
    Thanks,

    Not sure what Tomcat you're running on or how you're accessing the servlet from the applet but here are some hints:
    http://www.netbeans.org/servlets/ReadMsg?msgId=364394&listName=nbusers
    http://www.netbeans.org/servlets/ReadMsg?msgId=495317&listName=nbusers
    HTH

  • ICloud bkup & system update fail thru proxy

    Using iPhone 4S with iOS 6.
    I can't backup to iCloud or even check if a software update is available ("Unable to Check for Update" error) when connected to my corporate wifi network, which requires proxy authentication.
    All apps work fine. No issues at all thru wifi at home.
    Any hints?

    FYI: issues persist in iOS 6.0.1

  • SOAPConnection thru Proxy host

    I'm using jwsdp of sun. I'm trying to write a client which calls a service throught a proxy host.
    Can some one guide me how do we implement this, as SOAPConnection does not have like setRequestProperty etc.,
    A snippet of code which is working without a proxy host.
    String endpoint = "http://localhost:8080/servlet/ReceiveSOAPMessageServlet";
    SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = scf.createConnection();
    MessageFactory mf = MessageFactory.newInstance();
    SOAPMessage msg = mf.createMessage();
    SOAPPart soapPart=msg.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    FileInputStream fis = new FileInputStream(path+fileName);
    StreamSource ssrc=new StreamSource(fis);
    soapPart.setContent( ssrc );
    fis.close();
    msg.saveChanges();
    SOAPMessage reply = connection.call(msg, endpoint);
    Thanx

    Hi,
    Although I have not got any responses, I have found a solution to work with JWSDP instead of using Apache Axis.
    Replace the code
    SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = scf.createConnection();
    with
    HttpSOAPConnectionFactory hscf = new HttpSOAPConnectionFactory();
    HttpSOAPConnection connection = (HttpSOAPConnection) hscf.createConnection();
    connection.setProxy(proxyHost, proxyPort);
    HttpSOAPConnectionFactory class is avaialble in com.sun.xmlmessaging.saaj.client.p2p
    Note:
    In the above class there is no method to set username/password for proxy host. I'm still investiaging on this if anyone has any idea please let me know , meanwhile if you have proxy host you have to pass thru to reach a service you can use the above code.

  • This URL will not go thru proxy

    This URL will not go thru our BM server:
    https://smcwired.swmich.edu/render.U....P_AddDropCrse
    Get a 504 Gateway Time-Out error immediately.
    If I bypass BM, it does work.
    running BM3.8sp5 on NW6.5sp6
    Tried using original proxy.cfg file
    Currently using Craig's proxy.cfg file with tunneling on, tunneling loggin on, added port8=9042 to tunnelling list. Getting nothing in tunneling log file.
    Have added smcwired.swmich.edu & smcfocus.swmich.edu to non cacheable sites.
    Any ideas of why & what to do?
    Thanks,
    Rick

    In article <[email protected]>, Rlremynse wrote:
    > This URL will not go thru our BM server:
    > http://tinyurl.com/cmpe96
    >
    > Get a 504 Gateway Time-Out error immediately.
    >
    Hmm. I just tried it on my proxy, and got the (very quick) timeout.
    Then I tried it on another browser not going through proxy, and got the
    same timeout error. But a few seconds later, it connected. Seems a
    pretty sensitive timeout, if it pops up in a second or so.
    Tried it some more, and saw that it was a session expired notice rather
    than a pure timeout. Tried it again on my proxy (BM3.9sp1), and
    clicked on the little connect here link on the session timeout page,
    and it worked.
    So...it's balky, but for me it's working through my BM proxy now.
    Craig Johnson
    Novell Support Connection SysOp
    *** For a current patch list, tips, handy files and books on
    BorderManager, go to http://www.craigjconsulting.com ***

  • Ftp via proxy server 4.0.1

    We have proble with ftp access via our proxy server 4.0.1, with authentization to LDAP database.
    We can connect to anonymous FTP servers with Firefox, but to nonanonymous we can not.
    If we use some software for connect to FTP (Total Commander etc.), we can not connect to anonymous and nonanonymous FTP.
    connecting process to anonzmous FTP with Total Commander:
    Connect to:(12.10.2006)
    hostname=ftp.nai.com/CommonUpdater
    Firewall=192.168.1.112:8080
    Connect
    GET ftp://ftp.nai.com/CommonUpdater/HTTP/1.0 Host:ftp.nai.com/CommonUpdater
    HTTP/1.1 200 OK
    Copied (12.10.2006 ..) http://ftp.nai.com/CommonUpdater/ -> D:\temp...
    and then popup error window "Connecting closed"
    thanks

    Does total commnder recognize http proxy gatewaying for ftp?
    If so, can you capture the traffic between the total commander, the proxy, and the ftp server? (Use any available snoop commands to do this.) and paste it here?

Maybe you are looking for

  • Email Signatures With Pictures on iOS

    Has anyone found a permanent solution to the issue of pasted images in Email Signatures on iOS turning into blank boxes?  I'm able to successfully paste my email signature into the settings in iOS but after a few minutes, they turn into blank boxes.

  • How to import MXML Component in ActionScript

    Hello, I'm having a structure similar to this: root    - components        - subcomponents (MyCustomMXMLComponent)    - views In views package I have a piece of AS where I want to instantiate an MXML Component from subcomponents. In Views: var data:D

  • Dead video? Ultra30 Creator3D

    I recently purchased a used ultra 30 creator 3d. Seemed to work fine and i got a bunch of stuff installed, but today when i went to turn on the machine the video is dead. the machine comes up just fine, and I can telnet into the machine from my bsd b

  • Select a location to which a plant has been assigned

    Hi all. We Work in SRM 5.0 Extended Scenario, ECC 6.0. When I try to make a PO from a SC system sends me the following error: Select a location to which a plant has been assigned. I made corrections in the organizational unit, assign default to the p

  • Mixing Timeline Sequence Settings

    Hey all, I have this sitcom that I've filmed. Episodes 1-4 are shot with a Sony HDRFX7. And then for Episode 5 (finale) we filmed it with a different camera. JVC HD something. Problem is, our opening title theme song clip is made up of clips from epi