B4J Question FTP upload

Drago Bratko

Active Member
Licensed User
Longtime User
I have FTP server on non standard port (5021).
To that FTP server I can connect and do actions with FileZilla.
When I try to connect and do upload with jNet FTP, it reports this error:

Sample code would be :
B4X:
Dim ftp As FTP
ftp.Initialize("ftp", "aaa.nnn.biz", 5021, "ftp-user", "somepwd")
ftp.UploadFile(File.DirApp, "file.zip", False, "/file.zip")

With FTP server which operates on standard port 21 same code works fine.

Is there solution to be able to operate with FTP which is not on standard FTP port?