🧡 Skip to main content🔍 Skip to search
Thomas UnderwoodBy Thomas Underwood 🕜 Updated on January 27, 2023 at 1:30 pm

The FTP protocol was introduced when network firewalls did not exist. Using the FTP Service on a server (behind a firewall) creates a set of challenges because firewalls must work around the FTP protocol's shortcomings…

Overview

Sometimes, when using FTP & Cloud Actions with a regular FTP or an encrypted FTPS connection, the Task may fail unexpectedly with a Lost connection. Disconnected from server error message.

Most likely, this happens due to the firewall settings. If the StatefulFTP option is set to Enable, this may be the cause of the problem. To see the current firewall settings, use the following command:

netsh advfirewall show global StatefulFTP

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

Fix connection problem

To fix the FTP connection problems, simply use the following command on the local machine (not on the FTP server's machine):

netsh advfirewall set global StatefulFTP disable

Validate

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

netsh advfirewall show global StatefulFTP

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

Learn more?

Network Triggers

Network Actions

YouTube video · Monitor an FTP server & send file via email

How seamless automation works? A 90-second demo.

Need assistance?

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