I am uisng EDTFtpj and I can not establish connection to remote host.
If I use ftp from command prompt I have to do following
- I type ftp
- Remote host answers with prompt ftp>
- I type open name_of_host port
- Remote host answer with prompt username> and I put user name and password and connection
is established.
If I try from command prompt open connection in following way
ftp name_of_host port
remote host refuse connection.
However, when I use EDTFtpj in following way
try {
noviObje = new com.enterprisedt.net.ftp.FileTransferClient();
noviObje.setRemoteHost("200.200.200.123");
noviObje.setRemotePort(10021);
noviObje.getAdvancedFTPSettings().setAutoLogin(false);
noviObje.connect();
noviObje.setUserName("user_name_a");
noviObje.setPassword("password_a");
noviObje.setContentType(com.enterprisedt.net.ftp.FTPTransferType.BINARY);
noviObje.getAdvancedFTPSettings().setConnectMode(com.enterprisedt.net.ftp.FTPConnectMode.ACTIVE);
noviObje.manualLogin();
I can not estblish connection.
Please, help me.
Thank you.