Hi,
When using the server in active mode, is it possible to restrict it to
using local port 20 (standard ftp-data)? As far as I can see, it uses
local ports > 1024 which makes it impossible to get through our
firewall.
I tried to change the code in FtpDataConnection from
m_dataSoc = new Socket(m_address, m_port);
to
m_dataSoc = new Socket(m_address, m_port,
InetAddress.getLocalHost(), 20);
but that led to BindExceptions when several clients tried to connect.
Do you have any ideas how to resolve this problem?
Regards,
Chris