I am using a filezilla ftp server and commons.net.ftpclient to access it from java. I create a connection and login successfully, but when i try to list the directories of the current working directory, the server terminates the connection. I've tried all the active and passive modes but the same issue arises due to which my connection gets terminated. I've also given the user created on the server full previlidges on the shared directory and that didn't fix anything. The code is very straight forward so im not posting it. Am i missing something in the flow?
Thanks.