Erel, thanks for the reply.
I've installed a filezilla server in the office.
Now if I use the other SIM it works. file is correctly uploaded
If I use the landline connection wifi (phone is connected to router wifi) with the App , trying to upload the same file with the app
I get this reply
000006)21/05/2019 19:28:46 - (not logged in) (93.38.67.223)> Connected on port 21, sending welcome message...
(000006)21/05/2019 19:28:46 - (not logged in) (93.38.67.223)> 220-FileZilla Server 0.9.60 beta
(000006)21/05/2019 19:28:46 - (not logged in) (93.38.67.223)> 220-written by Tim Kosse (tim.kosse@filezilla-project.org)
(000006)21/05/2019 19:28:46 - (not logged in) (93.38.67.223)> 220 Please visit
https://filezilla-project.org/
(000006)21/05/2019 19:28:46 - (not logged in) (93.38.67.223)> USER guest
(000006)21/05/2019 19:28:46 - (not logged in) (93.38.67.223)> 331 Password required for guest
(000006)21/05/2019 19:28:46 - (not logged in) (93.38.67.223)> PASS *********
(000006)21/05/2019 19:28:46 - guest (93.38.67.223)> 230 Logged on
(000006)21/05/2019 19:28:46 - guest (93.38.67.223)> TYPE A
(000006)21/05/2019 19:28:46 - guest (93.38.67.223)> 200 Type set to A
(000006)21/05/2019 19:28:46 - guest (93.38.67.223)> PORT 100,97,20,179,163,170
(000006)21/05/2019 19:28:46 - guest (93.38.67.223)> 421 Rejected command, requested IP address does not match control connection IP.
and from the app
org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection.
BUT
if i use an app like andFTP everything works..
summarize:
if I try to upload from the router wifi with the app and the net library, i get the error
421 Rejected command, requested IP address does not match control connection IP.
if using the same connection but with a commercial app like andFTP, i get a
226 Successfully transferred "....................."
so it really looks like a problem of the library..
this is with the private filezilla, so I can check the messages on the server
No way with the commercial server hosted, and that case also the other sim does not work with
501 server cannot accept arguments
pretty strange, can't get rid of this..