Opening up your firewall to allow connections to your FTP server. There are two steps to running an FTP server: Configuring and starting the FTP server. This tutorial will show you how to do that. I've re-written the code so many times its doing my head in and i keep getting errors such as: sftp = ftplib.FTP('', 'MYUSERNAME', 'MYPASSWORD')įile "C:\Python27\lib\ftplib.py", line 117, in _init_įile "C:\Python27\lib\ftplib.py", line 135, in connectįile "C:\Python27\lib\ftplib.py", line 210, in getrespįile "C:\Python27\lib\ftplib.py", line 196, in getmultilineįile "C:\Python27\lib\ftplib.py", line 183, in getlineįile "C:\Python27\lib\socket.py", line 447, in readlineĮrror: An existing connection was forcibly closed by the remote hostĪny help would be great! Thanks in advance. The easiest way to run an FTP server is with a Python script that starts a simple FTP server. To get an idea of what it will be like, check out JetHTTP, which is similar in design and interface. I was just putting editing the file with username and password without putting user'username' and pass'password' oops fail. It will run out of the box with no configuration and with a nice GUI too. It does exactly what you describe, and it can run without root privileges (you would have to use a port > 1024 of course). I've got a folder on my desktop which contains two files: text.txt and upload_to_ftp.py. 2 Too bad I haven't had time to finish JetFTP. I'm really struggling just to get a simple.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |