Cannot list FTP directory using ftplib – but FTP client works
问题 I'm trying to connect to an FTP but I am unable to run any commands. ftp_server = ip ftp_username = username ftp_password = password ftp = ftplib.FTP(ftp_server) ftp.login(ftp_username, ftp_password) '230 Logged on' ftp.nlst() The ftp.nlst throws this error: Error: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond I've tested the connection