I am facing a problem with the FTP connectivity between two Windows servers. Both servers are present in two different networks behind their respective firewalls. I have opened the port 21 in both firewalls to allow FTP connectivity. I tried to do the telnet in both directions and it is working.
Once telnet worked fine, I added and enabled FTP service in the FTP server and trying to pull the files from another (client) server. Unfortunately it is not working for me and getting 'Connection Timed Out' error. I also tried directly connecting from Winscp and same error (Connection Timed Out) I am getting.
I am really in trouble as I spent one week in all these activities and still no luck. Can someone please help here.
2020-02-11 17:10:29 10.211.74.3 - 10.232.163.75 21 ControlChannelOpened - - 0 0 cd8cf557-d62d-4076-8d35-7e4ff9d8ff5b -
2020-02-11 17:10:29 10.211.74.3 - 10.232.163.75 21 USER anonymous 331 0 0 cd8cf557-d62d-4076-8d35-7e4ff9d8ff5b -
2020-02-11 17:10:29 10.211.74.3 - 10.232.163.75 21 PASS 230 0 0 cd8cf557-d62d-4076-8d35-7e4ff9d8ff5b /
2020-02-11 17:10:29 10.211.74.3 - 10.232.163.75 21 opts utf8+on 200 0 0 cd8cf557-d62d-4076-8d35-7e4ff9d8ff5b -
2020-02-11 17:10:29 10.211.74.3 - 10.232.163.75 21 syst - 215 0 0 cd8cf557-d62d-4076-8d35-7e4ff9d8ff5b -
2020-02-11 17:10:29 10.211.74.3 - 10.232.163.75 21 site help 214 0 0 cd8cf557-d62d-4076-8d35-7e4ff9d8ff5b -
2020-02-11 17:10:29 10.211.74.3 - 10.232.163.75 21 PWD - 257 0 0 cd8cf557-d62d-4076-8d35-7e4ff9d8ff5b -
2020-02-11 17:10:29 10.211.74.3 - 10.232.163.75 21 TYPE A 200 0 0 cd8cf557-d62d-4076-8d35-7e4ff9d8ff5b -
2020-02-11 17:10:29 10.211.74.3 - 10.232.163.75 21 PASV - 227 0 0 cd8cf557-d62d-4076-8d35-7e4ff9d8ff5b -
2020-02-11 17:11:09 - - 10.232.163.75 58684 DataChannelClosed - - 258 15 cd8cf557-d62d-4076-8d35-7e4ff9d8ff5b - 6 1 Answer
Just to update, finally I have resolved the issue.
I switched to FTPS approach for security purpose but it did not resolve the problem. After going number of articles on FTPS communication, I got to know that the issue may get resolved by opening a data channel port range on the client server's network firewall. My network team helped to me open a data channel port range and it worked.
Thank you all.