B4J Question FTP error

alienware40

Member
Licensed User
Longtime User
Hi,

when i run my program i get this error:

Log: (SocketException) java.net.SocketException: Software caused connection abort: socket write error

Can someone please help me with this problem? I really dont know what the problem could be.

Here is code I am using:
B4X:
FTP.List("ftp.name.hr")
...
Sub FTP_ListCompleted (ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry)
   Log("sp= " & ServerPath)
   If Success = False Then
     Log("Log: " & LastException)
   Else
     lstFiles.Items.Clear
     For i = 0 To Folders.Length - 1
       Log(Folders(i).Name)
       lstFiles.Items.Add(Folders(i).Name)
     Next
     
     For i = 0 To Files.Length - 1
       Log(Files(i).Name)
       lstFiles.Items.Add(Files(i).Name)
     Next
   End If
End Sub


Thanks!!!
 

alienware40

Member
Licensed User
Longtime User
I wrote similar program in basic4android and it works.
I tried changing the ServerPath, it gives me the same error.
 
Upvote 0

alienware40

Member
Licensed User
Longtime User
Thanks Erel, it was problem with my Windows Firewall,

I turned it OFF and it works perfectly
 
Upvote 0
Top