Python - ftplib.FTP_TLS Port - Stack Overflow
stackoverflow.com › questions › 27385506Dec 09, 2014 · Oddly, the FTP_TLS object has no direct port parameter on the constructor like the FTP object does. you can set the port prior to calling the constructor and that works. ftplib.FTP_TLS.port=1234 ftplib.FTP_TLS ( 'ftphost.domain.tld', 'user', 'password' ) Share answered Jul 13, 2020 at 19:51 Roger Weber 91 1 1 Add a comment Your Answer