Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
fm_ftp_pc [2013/10/29 10:32]
Stefan
fm_ftp_pc [2013/11/25 15:34] (current)
Stefan
Line 1: Line 1:
 ====== FTP on a PC ====== ====== FTP on a PC ======
-FTP has fast transfer rates and can be used both on the home network (LAN) and remotely (WAN). However, the files have to be transferred to the computer first, before you can open and view them. Also, you will have to know the IP address of your network drive and for remote access, port forwarding on the network router is required.+FTP has fast transfer rates and can be used on both the home network (LAN) and remotely ​from outside your home (WAN). However, the files have to be transferred to the computer first, before you can open and view them. Also, you will have to know the IP address of your network drive and for remote access, port forwarding on the network router is required.
  
 <​note>​To find out the IP address of your network drive, login via web interface and then go to [[system_information_server_info|Preferences > Server Info]]. The **Local IP Address** can be used on your home network and the IP address seen under **UPnP Port Forwarding** can be used for remote access.</​note>​ <​note>​To find out the IP address of your network drive, login via web interface and then go to [[system_information_server_info|Preferences > Server Info]]. The **Local IP Address** can be used on your home network and the IP address seen under **UPnP Port Forwarding** can be used for remote access.</​note>​
Line 6: Line 6:
 <note tip>When using FTP, we recommend installing a dedicated [[fm_ftp_pc#​ftp_client|FTP client]]. This is not only more convenient but also makes it easier to manage your accounts and files.</​note>​ <note tip>When using FTP, we recommend installing a dedicated [[fm_ftp_pc#​ftp_client|FTP client]]. This is not only more convenient but also makes it easier to manage your accounts and files.</​note>​
  
-<note important>​If you would like to login remotely ​using FTP, set up port forwarding on your network router first. Redirect the incoming FTP traffic on port 21 to the IP address of your network drive. Otherwise, you can only use FTP when both your computer and the network drive are connected to the same local network. For more information about port forwarding and how to setup your network router, please see the guides at http://​portforward.com or refer to the documentation of your network router.</​note>​+<note important>​If you would like to connect ​remotely ​via FTP, set a port range for passive FTP and set up port forwarding on your network router first. Redirect the incoming FTP traffic on port 21 to the IP address of your network drive and do the same for the passive port range. Otherwise, you can only use FTP when both your computer and the network drive are connected to the same local network. For more information about port forwarding and how to setup your network router, please see the guides at http://​portforward.com or refer to the documentation of your network router.</​note>​
  
 ===== Setup FTP Service ===== ===== Setup FTP Service =====
Line 12: Line 12:
   - Go to [[services_ftp|Preferences > FTP]].   - Go to [[services_ftp|Preferences > FTP]].
   - Make sure the FTP service is up and running.\\ {{:​ftp.jpg?​nolink|}}   - Make sure the FTP service is up and running.\\ {{:​ftp.jpg?​nolink|}}
-  - If you plan on using an SSL encrypted FTP connection, enable the option **Enforce SSL**+  - If you plan on connecting remotely from outside your home networkit's best to enable the option **Enforce SSL** and to assist port forwarding, it's necessary to set a **passive port range** of about 50-100 ports.\\ {{:​ftp-remote.jpg?​nolink|}}
- +
-<note warning>​The option ​**Enforce SSL** is currently only supported on the home network (LAN) and does not work when connecting remotely from the outside.</​note>​+
  
 ===== File Explorer ===== ===== File Explorer =====
Line 28: Line 26:
 ===== FTP Client ===== ===== FTP Client =====
 A FTP client makes it easier to manage multiple accounts and it is also more convenient to transfer the files. In addition, the FTP client provides functions like pause, resume, error logs, backup and more. If you already have a FTP client, simply use your preferred program. If you are still looking for a client, you could try [[http://​filezilla-project.org/​|FileZilla]] or [[http://​www.coreftp.com/​|Core FTP]] just to name two. A FTP client makes it easier to manage multiple accounts and it is also more convenient to transfer the files. In addition, the FTP client provides functions like pause, resume, error logs, backup and more. If you already have a FTP client, simply use your preferred program. If you are still looking for a client, you could try [[http://​filezilla-project.org/​|FileZilla]] or [[http://​www.coreftp.com/​|Core FTP]] just to name two.
 +
 +==== Home Network (LAN) ====
 +In this environment,​ both the network drive and the computer where the FTP client is installed are connected to the same local network.
  
   - Start up your FTP client. In this example, we are using FileZilla.\\ {{:​fm-ftp-pc06.jpg?​nolink|}}   - Start up your FTP client. In this example, we are using FileZilla.\\ {{:​fm-ftp-pc06.jpg?​nolink|}}
   - Open the Site Manager.\\ {{:​fm-ftp-pc06a.jpg?​nolink|}}   - Open the Site Manager.\\ {{:​fm-ftp-pc06a.jpg?​nolink|}}
   - Click **New Site** and create a new account for your network drive.\\ {{:​fm-ftp-pc07a.jpg?​nolink|}}   - Click **New Site** and create a new account for your network drive.\\ {{:​fm-ftp-pc07a.jpg?​nolink|}}
-  - For the host, enter the **IP address** of your network drive. ​On your home network, use the local IP address. For remote access, use the external IP address.\\ {{:​fm-ftp-pc08a.jpg?​nolink|}}+  - For the host, enter the **IP address** of your network drive (e.g. 192.168.33.30). Use the local IP address ​as seen under [[system_information_server_info|Preferences > Server Info]] but without ​the port number.\\ {{:​fm-ftp-pc08a.jpg?​nolink|}}
   - For the protocol, select **FTP - File Transfer Protocol**.\\ {{:​fm-ftp-pc08b.jpg?​nolink|}}   - For the protocol, select **FTP - File Transfer Protocol**.\\ {{:​fm-ftp-pc08b.jpg?​nolink|}}
-  - For the encryption, select **Use plain FTP**. If you have setup the FTP server to use SSL encryption, select **Require explicit FTP over TLS** instead.\\ {{:​fm-ftp-pc08c.jpg?​nolink|}}+  - For the encryption, select **Use plain FTP**. If the FTP server ​is set to use SSL encryption, select **Require explicit FTP over TLS** instead.\\ {{:​fm-ftp-pc08c.jpg?​nolink|}}
   - For the logon type, select **Normal** and then enter the username and password of your user account on the network drive. As an example, the administrator would enter **admin** for both username and password.\\ {{:​fm-ftp-pc08d.jpg?​nolink|}}   - For the logon type, select **Normal** and then enter the username and password of your user account on the network drive. As an example, the administrator would enter **admin** for both username and password.\\ {{:​fm-ftp-pc08d.jpg?​nolink|}}
   - Under normal circumstances,​ these are all the settings you have to configure and the rest can be left at default. However, if you have changed the port number for the FTP server and it's not using the default port 21, remember to enter the correct port number in the FTP client at this point.   - Under normal circumstances,​ these are all the settings you have to configure and the rest can be left at default. However, if you have changed the port number for the FTP server and it's not using the default port 21, remember to enter the correct port number in the FTP client at this point.
Line 42: Line 43:
 <​note>​If there is an option to set the charset that is used to encode the file names, set it to **UTF-8**.</​note>​ <​note>​If there is an option to set the charset that is used to encode the file names, set it to **UTF-8**.</​note>​
  
-<note important>​If you would like to login remotely using FTPset up port forwarding ​on your network router ​firstRedirect ​the incoming FTP traffic ​on port 21 to the IP address of your network drive. ​Otherwise, you can only use FTP when both your computer ​and the network drive are connected ​to the same local networkFor more information about port forwarding ​and how to setup your network routerplease see the guides ​at http://​portforward.com or refer to the documentation of your network ​router.</note>+==== Remote Connection (WAN) ==== 
 +In this environmentthe computer where the FTP client is installed is not on the same network as the network drive. The connection is established over the internet from outside your home. 
 + 
 +=== Network Router === 
 + 
 +  - Write down the port number and the passive port range from your network drive.\\ {{:​ftp-remote.jpg?​nolink|}} 
 +  - Login to your network router. ​This is the device that connects your home network to the internet. In some cases, this device has been provided by your ISP and in some cases it will be your own device, most likely a wireless access point that provides both the wired and the wireless network connection at your home. 
 +  - Find a setting called **Port Forwarding**. This function might be named differently ​on your particular router (e.g. Virtual Server), so it's best to first consult the user manual. You can also find some guides at http://​portforward.com if the documentation doesn'​t include any samples. 
 +  - Setup port forwarding for TCP port 21 or whatever number you have set for the FTP port and redirect it to the IP address of your network drive. ​In most casesthe router will have a pre-set value for FTP traffic, so you can simply select ​FTP from a drop-down list. 
 +  - Setup port forwarding for the passive port range. In this example, you would redirect the traffic from TCP ports 50100-50200 to the local IP of your network drive at the same range 50100-50200. 
 + 
 + 
 +=== FTP Client === 
 + 
 +  - Start up your FTP client. In this example, we are using FileZilla.\\ {{:​fm-ftp-pc06.jpg?​nolink|}} 
 +  - Open the Site Manager.\\ {{:​fm-ftp-pc06a.jpg?​nolink|}} 
 +  - Click **New Site** ​and create a new account for your network drive.\\ {{:​fm-ftp-pc07a.jpg?​nolink|}} 
 +  - For the host, enter the external **IP address** of your home network (e.g. 121.88.23.334). Go to [[system_information_server_info|Preferences > Server Info]] and copy the IP address seen under **UPnP Port Forwarding** but without the port number.\\ {{:​fm-ftp-pc12a.jpg?​nolink|}} 
 +  - For the protocol, select **FTP - File Transfer Protocol**.\\ {{:​fm-ftp-pc12b.jpg?​nolink|}} 
 +  - For the encryption, select **Use plain FTP**. If the FTP server is set to use SSL encryption, select **Require explicit FTP over TLS** instead.\\ {{:​fm-ftp-pc12c.jpg?​nolink|}} 
 +  - For the logon type, select **Normal** and then enter the username and password of your user account on the network drive. As an example, the administrator would enter **admin** for both username and password.\\ {{:​fm-ftp-pc12d.jpg?​nolink|}} 
 +  - Under normal circumstances,​ these are all the settings you have to configure and the rest can be left at defaultHowever, if you have changed the port number for the FTP server ​and it's not using the default port 21, remember ​to enter the correct port number in the FTP client at this point. 
 +  - Double check all your settings and then click **Connect**. If you are using SSL encryptionyou will be prompted to accept ​the certificate ​at this point.\\ {{:fm-ftp-pc12e.jpg?​nolink|}} 
 +  - You can now manage your files on the network drive. 
 + 
 +=== Troubleshooting === 
 + 
 +  * Some internet service providers block traffic on port 21. If that's the case, please change the port number ​to something above port 1024. 
 +  * If you already have a FTP server on the home network, make sure to use a different port for the FTP server on the network drive. 
 +  * When testing the remote FTP connection, ​your computer cannot be connected to the home network. 
 +  * To troubleshoot port forwarding, you can use the command console with a telnet command like "​telnet 121.22.23.334 21". If the connection can be established successfully,​ you should get a greeting from the FTP server (e.g. 220 <vsFTP 2.2.0>). 
 +  * To check if the problem is related to the settings on the network router, you can temporarily add the IP address of your network drive to the DMZ zone. This should theoretically forward all traffic to your network drive and skip the firewall. 
 +  * Most homes have a dynamic external IP address. This means that when you reboot the network router, it's likely that you will be assigned a new IP address. Make sure that you are using the correct IP in your FTP client. 

ebook

AKiTiO MyCloud eManual
for iPad, Nook, Sony Reader, etc.

ePub format