-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage on ESP32 / Error: Could not connect to... #2
Comments
You can enable debugging like this: from ftplib import FTP
class DebugFTP(FTP):
debugging = 1
ftp = DebugFTP(host='192.168.0.14', port=21, user='esp32', passwd='1234') This will print the exception message when the socket connection fails and may give some clue why that is. |
Second trial returns no debug :/ |
The second try does not use the correct syntax for the address. Only IP addresses are allowed, no URLs. First trial gives an important clue:
It seems that the call to |
Sorry, when I couldn't understand first clue, I also wanted to try it with
FileZilla Server works fine I guess, here is the output of my connection from Chrome:
Edit2: I guess my I have also port forwarding issue, I'm not sure it is related with this. I couldn't connect to my server from another computer in same network. Port forwarding is active but idk. If these two problem are connected, let me know. |
Hmm, not sure why the You might also try the |
No further feedback. Assuming improper network configuration. Feel free to re-open, if you have further information. |
Can I use it on ESP32 directly? I succesfully imported it on my board, but couldn't connect to FTP server.
>> ftp = FTP(host='192.168.0.14',port=21,user='esp32',passwd='1234')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ftplib.py", line 206, in __init__
File "ftplib.py", line 264, in connect
File "ftplib.py", line 242, in _create_connection
Error: Could not connect to ('192.168.0.14', 21)
I can access to the storage via Chrome, with same settings (user, passwd, etc.)
The text was updated successfully, but these errors were encountered: