I'm developing an Android app. I try to get all files i have in my FileZilla ftp server but connection fails every time.
Could someone please help me get over this issue?
a code snippet of my connection:
FTPClient ftpClient = new FTPClient();
ftpClient.connect("127.0.0.1",21);
ftpClient.login(USER-NAME, PASSWORD);
the connection fails at the second line ("connect")
this is part of my Log-cat:
08-26 09:44:48.382: W/System.err(6625): java.net.ConnectException: failed to connect to /127.0.0.1 (port 21): connect failed: ECONNREFUSED (Connection refused)
I even tried to connect from "AndFTP" android app but didn't succeed.
connect to FileZilla server from android app
Moderator: Project members
Re: connect to FileZilla server from android app
Did you allow FileZilla Server.exe through the firewall of the PC?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
Re: connect to FileZilla server from android app
Yes i did. Still getting this error message. when I'm typing ftp://127.0.0.1 on my web browser i can see all the files i uploaded to the server. But my app can't connect it yet. Any other ideas? thanks!
Re: connect to FileZilla server from android app
Sorry, don't have any knowledge about Android or Java. But please note that 127.0.0.1 will work ONLY on the system the server is on. From a different device you must use either the LAN IP (LAN) or public IP (Internet) to connect.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
-
- 450 Internal Error
- Posts: 36
- Joined: 2021-09-08 12:56
- First name: ydros69
- Last name: ydros69
Re: connect to FileZilla server from android app
the server not working ,the modem |(virtual server|)for nat fornating.please fix that!
Re: connect to FileZilla server from android app
Please provide more detail about the process of creating and testing this Android app.
For example. When testing, is the app:
* Running in a development environment on the same PC as the FileZilla server, or
* Running on an actual Android device?
For example. When testing, is the app:
* Running in a development environment on the same PC as the FileZilla server, or
* Running on an actual Android device?