Problems with FTP Client Server

Asked By 10 points N/A Posted on -

I m having problems,performing FTPof a file to another machine. Can someone tell me how to use FTPClient?

public class Example1
public static void main(String args[]) throws MalformedURLException
FtpClient FTP = new FtpClient();
OutputStream theFile = ftp.put("c:\Madhu\sports\2003\feb\archive_display.html");

It says it cannot resolve symbol FtpClient do I have to download any jar file. If yes then where do i download it from and here do i place it and how do i make my program recognize it.

I tried using FTP Client Library from a site suggested on the ranch but to no avail. So if someone can send me the code for FTP client and also tell me if any jar files are to be installed, if yes where?

Answered By 0 points N/A #142270

Problems with FTP Client Server



Following are some problems with FTP Client Server.
-Check the FTP server that it would be passive enabled or disabled.
-Data connections may originate from the server to the client, but also as coming from the client to the server.
-Data connections can be redirected to random port numbers.
-Make sure the server is the firewall to open connections to allow in the passive TCP / IP port range. (You have a range of port numbers open in addition to the basic ftp port – see your server for the range).
-Additional TCP / IP connections may be used for the transfer of data.
-Data connections destination addresses to be negotiated over-the-fly between the client and server over the channel used for the control connection.
-The control connection is not active, while the transfer of data takes place on the data connection.

Login/Register to Answer

Related Questions