Hi, folks
I'm trying to integrate FtpServer in my application. Now I have a problems
while my server is working with Windows Explorer client. I don't know how to
fix those bugs, so I post here hope someone could help me, thanks a lot!
My server runs on a Linux based device, and I have no root access, that
means I cannot bind to any TCP ports below 1024, of course I cannot use port
21 as usual. So I decide to use port 2211 to be my listen port. Then I use
following code fragment to change default passive port that will report to
client:
DataConnectionConfigurationFactory dataConnFactory = new
DataConnectionConfigurationFactory();
ListenerFactory factory = new ListenerFactory();
dataConnFactory.setPassiveAddress(factory.getServerAddress());
dataConnFactory.setPassiveExternalAddress(factory.getServerAddress());
dataConnFactory.setPassivePorts("4000-4199");
factory.setDataConnectionConfiguration(dataConnFactory.createDataConnectionConfiguration());
Now the problem is that this works great with most of FTP clients but failed
while working with Windows Explorer. The Windows will show me an error
message, please see attached screen snapshot for details.
the compatibility with Windows Explorer is very important because it's the
first choose for most of my users.
thanks a lot
Alex