How do I connect from FTP client on my phone to localhost ftp server?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I connect from FTP client on my phone to localhost ftp server?
Hi all,
so I have installed vsftpd on my Debian Buster system, now I want to check my IP address and it gives the following: XXX.X.X.1/8. I believe this refers to localhost IP address on my computer.
No I want to connect from Android phone using AndFTP application, but when you add Hostname as your local IP address as describer above, it fails.
I am using standart Virgin Media Hub 3.0 here in UK, but the question is can I even connect through this hub to my localhost PC with anFTP application or do I have to provide an IP address of the router itself?
Is it even possible and how do I get that hubs IP address whilst using Linux terminal?
I second the recommendation to drop FTP and stay with SFTP. For that, uninstall vsftpd and install openssh-server. Then you will have SFTP support on your server and can then adjust it to work with keys.
Then once you can log in from Android using SFTP with keys over the LAN, forward port 22 on your router (or another external port) to your server's port 22.
Some reasons to stay with SFTP is that SFTP is very easy to set up and requires only one port be opened and forwarded from your router. FTP, on the other hand, requires various random per-connection ports to be opened. Even experienced system and network adminstrators find FTP difficult. So, if you're stuck at this stage with FTP, please cut your losses and upgrade to SFTP. You'll save many hours of wasted effort as well as prevent your system from becoming a pushover for attacks.
my IP address and it gives the following: XXX.X.X.1/8. I believe this refers to localhost IP address on my computer.
Every PC with tcp/ip networking has a localhost virtual network adapter with the same IP address i.e IPv4 127.0.0.1 or IPv6 ::1. No need for obfuscation. This allows networking applications to connect to clients on the same computer regardless of an active physical network.
Quote:
Should the newly set port be active even if I changed "ListenAddress" value to my current instead of default?
What address did you use for the ListenAddress?
The first step is to check to see if ssh works on the computer itself. ssh -p 2222 username@localhost
If that works you can try connecting from your phone using the systems LAN address. If you look at the output of the ip a command you will see something like
2. enp0s25: ...
...
inet xxx.xxx.xxx.xxx
That inet address is your LAN IP address. Assuming your phone is connected to your LAN use ssh -p 2222 username@xxx.xxx.xxx.xxx
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.