FTP connections?

Does anyone use FTP connections between the device as server and a PC as client?

I used primitive ftpd for years. Was always good and simple. But for a few months now it doesn’t work anymore. Concrete: is starts up and everything looks good but I can’t establish a connection on the PC side. Whatever application I use there (filezilla, gFTP, several ftp clients on the command line) … I don’t get it.

I speculate about the ports. primitive ftpd opens port 12345 for FTP and 1234 for SFTP by default, I didn’t change this. Is it possible that these none standard ports are blocked now by Advanced Privacy or whatever?

I tried also other FTP apps with different but also none standard ports. Same results, no connection from a client.

Who knows that?

Just tried MiXplorer’s integrated FTP server (no encryption on TCP/2121), runs fine.
Also OK running it on TCP/12345.
Device is Xiaomi Mi MIX2 running /e/OS 2.1 T
If you wish to try it, install packages are available here: addons – Google Drive. Use the top-right menu to launch servers.

Tried this.

I saw that the success depends on RethinkDNS. Damned. Seems that Rethink’s firewall handles ports generally, even when an app is configured to be bypassed completely. So I really MUST stop Rethink completely to get open FTP ports. When I do this I can indeed connect with an FTP client.

Not good. Rethink’s firewall allows rules to define which ports should be open. But FTP uses a range of unknown ports for the file transmission. I will ask about this …

I use SimpleSSHD from F-Droid to expose the phone’s file system on my computer(s) over my wifi network. Then I can just copy, paste, drag and drop, etc., between them, securely, via sftp.

2 Likes

FTP is usually a pain in the a$$ when it comes to firewalling and/or NAT/PAT.
I agree with @Taurus , you may switch to SFTP (FTP over SSH, not to be mistaken with FTPS).

1 Like

Yes, but the problem with the closed port remains. OK, it’s then probably only one and it’s known and constant. But SFTP is also slow - with plain FTP I used up to 8 connections (this means: transmissions) in parallel. And when you transfer a 200MB double CD from here to there this matters.

If you can go offline, maybe this could help? [LIST] Recommended FOSS Applications - #110 by smu44

1 Like

This topic was automatically closed after 90 days. New replies are no longer allowed.