I'm trying to write a simple frontend to an FTP site that I use. Not an fully fledged client. To do this I've captured a standard FTP stream using Ethereal which looks like this (the lines in red are the lines sent from my machine and the lines in black are the lines from the server)...
Code:
220 FTP server () ready.
USER user
331 Password required for user.
PASS password
230 User user logged in.
PORT 82,76,233,125,12,125
200 PORT command successful.
NLST
150 ASCII data connection for /bin/ls (82.76.233.125,3197) (0 bytes).
226 ASCII Transfer complete.
QUIT
221 Goodbye.
If I try to replicate this telnet to the server on port 21 when I run the NLST command it doesn't actually output a list. How can I get this output? It just seems to hang when I run NLST. Not even QUIT works afterwards. I've read through the RFC but I can't find anything useful.
Cheers,
Darrell