I'm currently struggling with some difficulties to fetch android files using a FTP server and Python. I installed on my Android device a application to act as an FTP server. I tested on the Windows explorer and was able to view and interact with the ftp data.
Now, I'm trying to create a simple Python script to extract the data of my device. So far I have the following line:
from ftplib import * ftp = FTP('123.456.7.89:13000', 'username', 'password')
When I try to connect using this host I receive the following error message:
[Errno 11004] getaddrinfo failed
If I change the code to
ftp = FTP('123.456.7.89, 'username', 'password')
I receive the following message
[Errno 10061] No connection could be made because the target machine actively refused it
I was also able to list the files of a know test ftp 'ftp.microsoft.com' so probably the issue is in someway specific the way I'm trying to declare my host?