Enable Passive Mode on FTP Server
Last updated
Last updated
DeviceOn FTP default setting is active mode. However, FTP runs active mode may fail in cases where the server is behind a router or the server deplyed on Azure/AWS or other cloudβs virtual machine. And that will cause DeviceOn initialize failure. To solve this issue, you should change FTP server to passive mode.
Open the ftpd-typical.xml on text editor tool that located in
Add the following XML attribute (data-connection) into listeners tag and give your passive ports range and external DNS.
β60001-60100β means in passive mode, ftp client uses port 60001 to 60100 to transfer data. You could change it to any available ports range. βYOUR_EXTERNAL_DNSβ means in passive mode, clientβs destination domain name. You should replace it with real domain name which can be access from external side. After that, restart the service (Apache FtpServer ftpd) to apply setting.
Add inbound security rules on your network security group (ex, Azure Network Security Groups and Firewall Rules), make sure blow ports are available.
2121 (command port)
60001-60100 (Passive port)
Restart DeviceOn service, stop/start the βManagement Serviceβ via server tray icon.