Welcome to Ebugg-i.com

Thanks for coming to Ebugg-i.com.

Ad blocker detected


Our website is made possible by displaying online advertisements to our visitors. We need to pay our bills (hosting charges) and we can't do that for free. Please consider supporting us by disabling your ad blocker on our website and whitelist our website.
Please disable ad blocker and reload this web page
Close this message

[Answering] Upload Ftp commands in C# program are blocked by Windows 7 firewall

Posted on: Jun 28 2014 Category :Windows > Windows7 Security Views: 965 | Subscribe


Hello everybody,

I have developped a C# application which launches a Ftp command file.

But I cannot upload the files.

When I run the Ftp command file manually, it works.

And when I disable the Windows 7 firewall for domain, the C# application works.

Here is the Ftp command file :

OPEN 100.100.100.100user usr_essaipwd_essaibinarycd dir_essaimput "C:Essai_Ftp*.doc"quit

And here is the Ftp log file when I try to run the C# application :

ftp> Connecté à 100.100.100.100OPEN 100.100.100.100220 ESSAI1ftp> user usr_essai331 User usr_essai, password please230 Password Ok, User logged inftp> binary200 Type Binaryftp> cd dir_essai250 Change directory okftp> ftp> mput "C:Essai_Ftp*.doc"200 Port command received425 Unable to open the data connection200 Port command received425 Unable to open the data connection200 Port command received425 Unable to open the data connection200 Port command received425 Unable to open the data connectionftp> ftp> quit221

I have tried to exclude some programs from the firewall.

I have created out going rules for excluding "ftp" and "w3wp.exe" in the firewall.

But none of these actions have made the C# application to work.

Do you have an idea ?

Thank you very much in advance.

Laurent.




Post your comments/solution

Get email updates. Virus Removal Tips, News, How to, Threat Alerts.

Bitdefender Antivirus for Mac and PC

Leave a comment!