Hello
I need to import a .zip file from a Brazilian FTP server. It works perfectly on my development machine, both using Ruby's native Net / Ftp and using linux wget, the problem is that it does not work in my production environment on Heroku, it gives time out on the connection: "Connecting to ftp.xxxxxx .com.br (ftp.xxxxxx.com.br) | xxxx.xx.xxx.xxx |: 21 ... ". I have also tested using wget on a virtual machine on Digital Ocean and the problem persisted.
In the face of this error, I can only conclude that the server does not accept IP connections outside of Brazil.
Any suggestions for getting around the problem? I'm thinking of hiring a host here in Brazil or even creating an Amazon EC2 instance in the São Paulo Region (the Ip will be National in this case?) Just to host an API that will download this file and then save it to Amazon S3 , where I have full access to the files.
Any better suggestions on how to get around the problem?