Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro Java
|
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2006, 06:36 AM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default FTP connection to a Proxy

My application requires get, put and rename operations to be performed through Java.

I am using commons-net API by jakarta. The code is able to connect to most of the servers, but in case of a specific proxy server, the connection fails. The IP address of the said server keeps on changing between two values. When the request is routed to one of these IP's the code completes successfully, but fails for the other IP.

Interestingly, if I try FTP through command prompt, or PERL, it always completes. Only Java is not able to connect.

Another thing is that this application also requires SFTP support, so I tried JSch API from JCraft. This also is able to connect to all the servers except the above mentioned proxy server. But in this case, the connection always fails, irrespective of the IP of the proxy.

Please help me out as I've been stuck at this problem for weeks now, also I couldn't find a similar problem anywhere else.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue in Upload/download FTP file via Proxy C#.NET naveenh C# 3 June 20th, 2008 08:51 AM
Generate Proxy with Authentication rodmcleay .NET Web Services 0 April 12th, 2005 01:40 AM
Windows Authentication through a Proxy richsabel General .NET 2 March 2nd, 2005 12:00 PM
Problem with FTP connection behind a proxy ammxxx .NET Framework 2.0 0 November 23rd, 2004 06:32 AM
Proxy Server Settings??? - Help! javacelt JSP Basics 0 November 1st, 2003 06:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.