OK, just to give you an example that I can also test on my end. First install FileZilla server on a Windows machine. Next, set up an account with a user name and a password. Now the following code should work for you (once you customize the IP address, user name, and password).
-----
ServerAddress$="192.168.1.134"
UserName$="Test"
Password$="TestPass"
OpenConnection(1, ServerAddress$, 21)
Local data$=ReceiveData(1, #RECEIVELINE)
data$=ReceiveData(1, #RECEIVELINE)
data$=ReceiveData(1, #RECEIVELINE)
SendData(1, "USER "..UserName$.."\r\n")
data$=ReceiveData(1, #RECEIVELINE)
DebugPrint(data$)
SendData(1, "PASS "..Password$.."\r\n")
data$=ReceiveData(1, #RECEIVELINE)
DebugPrint(data$)
SendData(1, "PWD\r\n")
data$=ReceiveData(1, #RECEIVELINE)
DebugPrint(data$)
SendData(1, "TYPE I\r\n")
data$=ReceiveData(1, #RECEIVELINE)
DebugPrint(data$)
SendData(1, "PASV\r\n")
data$=ReceiveData(1, #RECEIVELINE)
DebugPrint(data$)
start=FindStr(data$, "(")+1
end=FindStr(data$, ")")
Temp$=MidStr(data$, start, end-start)
TempTable$, count=SplitStr(Temp$, ",")
TempAddress$=TempTable$[0].."."..TempTable$[1].."."..TempTable$[2].."."..TempTable$[3]
TempPort=ToNumber(TempTable$[4])*256+ToNumber(TempTable$[5])
OpenConnection(2, TempAddress$, TempPort)
SendData(1, "LIST\r\n")
data$=ReceiveData(2, #RECEIVEALL)
DebugPrint(data$)
-----
All that
DebugPrint() output is there to show you how the server is responding each time.