I try to create FTP connection via Tramp, but the output I get on AngeFTP is:
ftp> open android.local
ftp: Can't connect to `192.168.0.21:21': Connection refused
ftp: Can't connect to `android.local:ftp'
ftp>
I have tried many different options, but nothing works. SFTP works fine, but I can't get FTP working. Here is my config:
/etc/hosts
192.168.0.21 android.local
~/.netrc
machine android.local
login foo
password foo
port 2221
init.el
(set-register ?a (cons 'file "/ftp:foo@android.local:#2221:/storage/0123-4567"))
Any ideas?
EDIT:
I was able to connect via ftp client from the terminal (outside Tramp) with the command ftp ftp://foo:foo@192.168.0.21:2221
, but can't replicate that via Tramp.