How to access FTP in Java?

I can't access my FTP folder on the D-Link DNS-321 why?

  • I just got the d-link dns-321 network attached storage and it has a built in FTP server in it. I already set up the FTP server. I use port 1025. I have a Motorola cable modem, a SPA2102 phone adapter with router, a Linksys WRT310N router. I have a cable modem connected to a phone adapter then connected to the router and the router connected to the dns-321. I forwarded the port 1025 from the phone adapter to the router and the router to the dns-321. Today, I tried to access the ftp server away from home and I entered the correct user name and password to the ftp server and I got an error message on the screen says, "An error occured opening that folder on the FTP Server. Make sure you have permission to access that folder. Details: 200 TYPE is now ASCII. 227 Entering Passive Mode (192,168,1,104,89,13)" Why is that???

  • Answer:

    Looks like some security issue. It seems like you are actually connecting ok, so the port forwarding is working. FTP requires a login of some sort. It may be case sensitive for both user name as well as the password. Also, the FTP directories may be "protected", so go back into that setup, and try to open a directory for full access by anyone. Try as a test, anonymous login for a folder if you can, just to see if it is security or a folder permissions issue. Also, some FTP use port 20 as a response/transfer port, depending on mode. EDIT: Quote: "You cannot properly configure passive ftp on the DNS-321 - but - if your ftp client is using active ftp and is not behind a NAT firewall/router, active ftp on a non-standard port (one other than 21) will work because there will be no problem with the data connection being blocked."

dt501 at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.