Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.1k views
in Java FTP by
Hi there,

Have been using edtFTPj for a couple of months and has been very handy library - many thanks.

Unfortunately I've got a small issue on a Windows 2003 Server which uses the IP Security Policies in Local Security Settings. I've checked FTP Server and Client but when I try upload some files (via a Servlet in Tomcat) I get the following error:
No route to host: connect

And the following in the log:

---> USER {user}
331 Password required for {user}.
---> PASS ********
230 User {user} logged in.
---> TYPE I
200 Type set to I.
---> CWD {folder}
250 CWD command successful.
---> SYST
215 UNIX Type: L8
---> PASV
227 Entering Passive Mode (207,44,236,17,198,236).

I can FTP fine from the command prompt to the server in question and upload files OK but edtFTPj fails. If I un-assign the Security Policy (ie turn if off) it works fine.
I obviously need to change something in the Policy settings - can anyone please help.

Thanks,
Ian

2 Answers

0 votes
by
I've added a rule to the FTP Client that allows outgoing connections on any port to the specific IP address I'm trying to communicate with. That solved the issue. --- sorry.
0 votes
by (161k points)
I don't know how to configure your FTP server's security policies, but it is possible that swapping to active mode transfers will work.

Categories

...