FTP Data Connection Issue

Hello, FTP site connection problem with data connection, I have opened and forwarded the port 2121 in my router to local windows 10 pc I have also disabled firewall on windows 10 machine where the FTP site is in iis manager, every time i try to connect using WinSCP or Filezilla it shows message of "connected waiting for welcome messege and then says retriving directory  listings"  and get disconnet, I have setup FTP to no encryption just to test it first but i cannot connect at all from outside even my public ip is static, i have included the logs for refrence.
Yasir ArfatJunior System AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Andrew LeniartIT Consultant & Freelance JournalistCommented:
Sample code/data

Hi Yasir,

It's probable that no experts have been able to try and help you because you forgot (or made a mistake) in uploading the logs for experts to examine.

Please upload the logs so that experts may take a look to see what errors are reported in there.

I hope that's helpful.


Andrew Leniart
EE Topic Advisor
Are you trying active or passive FTP?

NAT firewalls, at either the client or server side tend to break FTP. FTP requires TWO ports. The first one is static, typically tcp/21 to the server. The second port is dynamic. In active FTP, the FTP SERVER opens up a data connection to the client. Most client firewalls will reject this connection request.

The second method, called passive FTP, the client must open up a second data connection to the FTP server to the port specified by the server over the control connection. The port can be any available port specified by the server OS, though some FTP servers allow you to specify a range of possible ports. The server firewall then has to also forward that second data connection to the FTP server. If you limit the possible ports to a range, you can specify the firewall to allow that range of ports. Some firewalls can inspect the FTP control traffic and dynamically forward the port to the FTP server. This only works on unencrypted FTP sessions.

For more information, see
Tom CieslikIT EngineerCommented:
In case like this I've always try to enable passive connection.
Try to set passive connection on FTP and use telnet or any ftp software.
I like Total Commander.
It's free (shareware) and it has excellent FTP client build in

Also most FTP server is using port 21. Make sure your FTP is configured on port 2121 if you did opened this port on firewall or just forward port 21
Yasir ArfatJunior System AdministratorAuthor Commented:
I have asked network support team and they have forwarded port 2121 to the iis Pc, I have also mentioned external ip in the iis firewall option and port range between 5000 to 6000 and restarted firewall and ftp site in iis, I have tried contacting using passive mode but it ends up at directory listing so it seems like data connection is the culprit please advise.
You need to port forward both 2121, and 5000-6000 to the FTP server. The passive port range needs to be specified as 5000-6000 In IIS Manager. See this link for instructions.


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
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
Windows 10

From novice to tech pro — start learning today.