Passive FTP results in zero byte file

I am running FTP using IIS 8 on Windows Server 2012.

I have an FTP site that I can successfully send files in using active FTP mode but if I use passive mode to the same site with the same FTP account credentials I see the file appear in the folder with a zero byte size for a second or two and then the file disappears.

This is running in an AWS environment.

I have configured a port range in the FTP Firewall Support settings on IIS for this site and the FTP server has an AWS security group with the same ports allowed inbound from any address.

Can anyone help ?

TIA
ccfcfcAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

moon_blue69Commented:
When you are using passive mode, it is the client initiate connection and the server tells the client which port it is listening to. If ftp works in active mode but not in passive mode, please check firewall settings on the server side. A beautiful article which would further help you to troubleshoot can be found here.

http://slacksite.com/other/ftp.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ccfcfcAuthor Commented:
Thanks for the response. I will take a look at the article.

If I have configured the FTP server for ports 49152-65535 and I have allowed those ports access from any IP address should that not be working ?

How can I confirm what port the FTP server has told the client to use ?
0
moon_blue69Commented:
How are you connecting to the server? Which FTP client? Use debugging as you may have noticed in the example in the aforementioned article you will see the response

227 Entering Passive Mode (192,168,150,90,195,149).

So I would think the listening port is 195*256+149
0
ccfcfcAuthor Commented:
I connect using DOS and simple FTP command line
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.