• Windows explorer can't open external FTP
    14 replies, posted
Hello FP'ers! Recently I build an FTP server using my raspberry pi B+ and an external hard drive and it works pretty well. but when I try to add the server to windows explorer it gives me an error. This only happens when I connect through the external IP, if I connect with the raspberry's internal IP it does work. The error I get is as followss: FTP Folder Error(title) An error occurred while opening that folder on the FTP Server. Make sure that you have permission to access that folder. Details: 200 Switching to ASCII mode. 227 Entering Passive Mode(192,168,1,116,16,147). Does anyone know what to do?
You need to make sure the Pi is port forwarded on your router with the port you configured it to use.
[QUOTE=SteelSliver;47267150]You need to make sure the Pi is port forwarded on your router with the port you configured it to use.[/QUOTE] I portforwarded ports 20-22 and 4242-4243 (passive min-passive max) I can access the server externally through filezilla and browsers(not IE though). But I just can't add the netwerk drive
Local network storage uses the SMB protocol. Assuming you run Linux, you'll have to install Samba file server. In case you have added that, right click Computer in the start menu, and select Map Network Drive.
[QUOTE=Merijnwitje;47268271]Local network storage uses the SMB protocol. Assuming you run Linux, you'll have to install Samba file server. In case you have added that, right click Computer in the start menu, and select Map Network Drive.[/QUOTE] No, you can just use an URL like "ftp://ftp.swfwmd.state.fl.us/pub/" in your Windows Explorer, try it.
I could add my FTP through internal IP by adding network drive and typing [url]ftp://username:password@(internal[/url] IP). But this does not work for my external IP while I have atleast ports 20-22 forwarded and the passive ports
[QUOTE=Cyberuben;47268317]No, you can just use an URL like "ftp://ftp.swfwmd.state.fl.us/pub/" in your Windows Explorer, try it.[/QUOTE] I know that, I use FTP at my paranoid school by just using Windows Explorer. I'm talking about adding a network drive, I've read somewhere that doesn't support FTP.
[QUOTE=Merijnwitje;47268379]I know that, I use FTP at my paranoid school by just using Windows Explorer. I'm talking about adding a network drive, I've read somewhere that doesn't support FTP.[/QUOTE] But nowhere in his OP do I read anything that has to do with SMB.
He means these network drives: [T]http://i.imgur.com/tvzkW72.png[/T] I use them myself as well, and I've already tried adding a network drive from [url]ftp://192.168.0.17[/url] (the local address of my home server), which did not work. After setting up the File Sharing role in Windows Server 2008, it does work. Also, the server is not available right now because I'm at college. As for the FTP folder, I've assigned both the file transfer protocol, and another share to the same folder to easily move stuff from our computers without having to use FTP in the local network.
[IMG]http://i.imgur.com/G8KwFFd.png[/IMG] [editline]6th March 2015[/editline] [QUOTE=SteelSliver;47267150]You need to make sure the Pi is port forwarded on your router with the port you configured it to use.[/QUOTE] Ports 20-22 (also SSH port) and the passive ports are forwarded. Any more?
[url]http://www.ncftp.com/ncftpd/doc/misc/ftp_and_firewalls.html#PASVNATProblems[/url] FTP servers have trouble with NAT, it seems. If you're using vsftpd, try adding pasv_address=<your external ip> to /etc/vsftpd.conf.
Sometimes mapping a network drive in explorer can be a pain in the back side; you could try using the "net" command to map it instead. EG: net use Z \\myServerOrIP\myShare /user:share mySharePassword OR try this: click the connect to a web site text [T]http://puu.sh/gp1lP.png[/T] [T]http://puu.sh/gp1nu.png[/T] SFTP is a better way of going about it but windows dosent support SFTP(?)
[QUOTE=fauxpark;47269410][url]http://www.ncftp.com/ncftpd/doc/misc/ftp_and_firewalls.html#PASVNATProblems[/url] FTP servers have trouble with NAT, it seems. If you're using vsftpd, try adding pasv_address=<your external ip> to /etc/vsftpd.conf.[/QUOTE] Bro! You're a god! Thank you man!
Oh god. Guys. If I specify the passive IP as my external IP. I can't connect internally anymore
[QUOTE=blackrossy;47275676]Oh god. Guys. If I specify the passive IP as my external IP. I can't connect internally anymore[/QUOTE] Weird. I just set up a test vsftpd 2.3.5 on my server (Debian Wheezy) and it just worked. It's fine both internally and externally. Here's my /etc/vsftpd.conf (comments omitted obviously), I've done nothing to it other than add the three lines at the bottom: [code]listen=YES #listen_ipv6=YES anonymous_enable=YES #local_enable=YES #write_enable=YES #local_umask=022 #anon_upload_enable=YES #anon_mkdir_write_enable=YES dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES #chown_uploads=YES #chown_username=whoever #xferlog_file=/var/log/vsftpd.log #xferlog_std_format=YES #idle_session_timeout=600 #data_connection_timeout=120 #nopriv_user=ftpsecure #async_abor_enable=YES #ascii_upload_enable=YES #ascii_download_enable=YES #ftpd_banner=Welcome to blah FTP service. #deny_email_enable=YES #banned_email_file=/etc/vsftpd.banned_emails #chroot_local_user=YES #chroot_local_user=YES #chroot_list_enable=YES #chroot_list_file=/etc/vsftpd.chroot_list #ls_recurse_enable=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/private/vsftpd.pem pasv_min_port=50000 pasv_max_port=51000 pasv_address=<my ext. ip>[/code] My IPTables: [code]# vsftpd -A INPUT -p tcp -m tcp --dport 20 -j ACCEPT -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT -A INPUT -p tcp -m tcp --dport 50000:51000 -j ACCEPT[/code] Port forwarding on my gateway: [img]http://i.imgur.com/QfKZbVf.png[/img] If it still doesn't work, have a hunt around in your log files, see if you can find anything there.
Sorry, you need to Log In to post a reply to this thread.