Thomas UnderwoodBy Thomas Underwood🕛Updated on June 18, 2021 at 12:00 pm

Using the FTP Service on a server behind a firewall creates a set of challenges because of the way FTP works.

Overview

Sometimes, if using FTP & Cloud Actions with a regular FTP or an encrypted FTPS connection, Task may fail unexpectedly with a Lost connection. Disconnected from server error message. Most likely, this happens due to firewall settings. If StatefulFTP option is set to Enable, this may be a cause of the problem. To see current firewall settings, use the following command:

netsh advfirewall show global StatefulFTP

Global Settings:
---------------------------------------------
StatefulFTP                            Enable
Ok.

Fix connection problem

To fix FTP connection problems, simply use the following command:

netsh advfirewall set global StatefulFTP disable

Validate

To verify new configuration, see firewall settings again, by entering netsh advfirewall show global StatefulFTP command again:

netsh advfirewall show global StatefulFTP

Global Settings:
---------------------------------------------
StatefulFTP                           Disable
Ok.

Learn more?

Need assistance?

If you have any questions, please do not hesitate to contact our support team.