We are using Godaddy hosting. We have python script which works fine locally, but from godaddy cpanel, it stops when trying to connect to 3rd party FTP (for fetching CSV). It gives error:
[Errno 111] Connection refused
Py script:
def connect_to_ftp():
global ftp
ftp = FTP()
print(“FTP Started”)
ftp.connect(FTPSERVER, FRPPORT)
It gives error on ftp.connect. We contacted Godaddy and they suggested that Cloudflare is blocking it. We have a catcher on FTP which catches every ping to server and it’s unable to find any hit either. We even added FTP’s IP, FTP’s hostname in Firewall Access rules, but still the same issue. This script is hosted on a subdomain which is added on both godaddy and cloudflare and other files work fine. So we even changed subdomain on cloudflare from proxy to DNS only but still the same issue. Please help us troubleshoot this issue.
Thanks