connect to FileZilla server from android app

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
mizramir
500 Command not understood
Posts: 2
Joined: 2013-08-26 06:36

connect to FileZilla server from android app

#1 Post by mizramir » 2013-08-26 06:48

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.

User avatar
boco
Contributor
Posts: 26860
Joined: 2006-05-01 03:28
Location: Germany

Re: connect to FileZilla server from android app

#2 Post by boco » 2013-08-26 19:16

Did you allow FileZilla Server.exe through the firewall of the PC?
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

mizramir
500 Command not understood
Posts: 2
Joined: 2013-08-26 06:36

Re: connect to FileZilla server from android app

#3 Post by mizramir » 2013-08-27 11:05

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!

User avatar
boco
Contributor
Posts: 26860
Joined: 2006-05-01 03:28
Location: Germany

Re: connect to FileZilla server from android app

#4 Post by boco » 2013-08-31 23:37

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.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

ydros69
550 File not found
Posts: 35
Joined: 2021-09-08 12:56
First name: ydros69
Last name: ydros69

Re: connect to FileZilla server from android app

#5 Post by ydros69 » 2023-11-29 18:17

the server not working ,the modem |(virtual server|)for nat fornating.please fix that!

CrimpOn
226 Transfer OK
Posts: 102
Joined: 2021-10-01 18:25
First name: D
Last name: B

Re: connect to FileZilla server from android app

#6 Post by CrimpOn » 2023-12-01 18:26

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?

Post Reply