Remote FTP access

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Post Reply
danielm
Posts: 161
Joined: Mon Oct 05, 2015 12:24 pm

Remote FTP access

Post by danielm » Thu Aug 11, 2016 8:40 am

I am trying to access my host running WiPy port remotely via Internet. I set up port forward on my router. I also set limit to 1 simultaneous connection and plain FTP mode. This is log from FileZilla:

Status: Connecting to XXX:8021...
Status: Connection established, waiting for welcome message...
Status: Server does not support non-ASCII characters.
Status: Logged in
Status: Retrieving directory listing...
Status: Server sent passive reply with unroutable address. Using server address instead.
Command: LIST
Response: 150
Error: The data connection could not be established: ETIMEDOUT - Connection attempt timed out
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing

Any ideas what could be wrong?

User avatar
dhylands
Posts: 3301
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Remote FTP access

Post by dhylands » Thu Aug 11, 2016 4:30 pm

The WiPy only supports passive mode:
http://docs.micropython.org/en/latest/w ... ftp-access
http://slacksite.com/other/ftp.html

This means that the client opens 2 ports to the server, and the second port is specified by the server (the WiPy in this case).

This means that you probably won't be able to setup your router since the second port won't be known ahead of time.

What you should do is to ssh/scp into another computer on the same side of the router as the WiPy and then ftp from there.

danielm
Posts: 161
Joined: Mon Oct 05, 2015 12:24 pm

Re: Remote FTP access

Post by danielm » Thu Aug 11, 2016 4:53 pm

Thank you for an explanation.

My goal is to copy files to and from the MP host. Therefore, another option is to use rshell through default Telnet port. Btw, does rshell work well on Windows 7 64bit? It did not work for me. It works ok on Ubuntu 14.04 LTS.

User avatar
dhylands
Posts: 3301
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Remote FTP access

Post by dhylands » Thu Aug 11, 2016 5:00 pm

I believe that the latest version of rshell works fine under Windows 7-64 bit (I had tested it under that environment in the past).

It does require python3.

I primarily use cygwin when using Windows, but I've also tested it using cmd as well.

Post Reply