That's how I programmatically Connect to an FTP server: Python code
ftp = ftplib.FTP (settings.FTP_IP)
ftp.login (settings.FTP_LOGIN, settings.FTP_PASS)
# ...
# here I upload files to the server
# ...
ftp.quit ()
But just as things with IPv4. But how to connect to the server via IPv6? I watched some liby, tried to put them in the shell, connect, but alas, it did not work.
Tell me if anyone has dealt with this.