Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

My project environment:
- Windows XP, SP3
- VC++ 6.0
- Console project

Now I'm make a FTP server.
Actually this FTP server project will work as streaming to VLC.

When I test with cerberus FTP server, works fine.

<log from="" cerberus="" ftp="">
MSIL
2010/09/16 21:03:38  [1]     Incoming connection request on interface 0 at 192.168.0.171
2010/09/16 21:03:38  [1]     FTP Connection request accepted from 192.168.0.171
2010/09/16 21:03:38  [1]     USER young
2010/09/16 21:03:38  [1]     331 User young, password please
2010/09/16 21:03:38  [1]     PASS ***********
2010/09/16 21:03:38  [1]     Native user 'young' authenticated
2010/09/16 21:03:38  [1]     230 Password Ok, User logged in
2010/09/16 21:03:38  [1]     EPSV ALL
2010/09/16 21:03:38  [1]     229 Entering Extended Passive Mode (|||11058|)
2010/09/16 21:03:38  [1]     TYPE I
2010/09/16 21:03:38  [1]     200 Type Binary
2010/09/16 21:03:38  [1]     SIZE astro.avi
2010/09/16 21:03:38  [1]     213 523226886
2010/09/16 21:03:38  [1]     EPSV
2010/09/16 21:03:38  [1]     229 Entering Extended Passive Mode (|||11059|)
2010/09/16 21:03:38  [1]     TYPE I
2010/09/16 21:03:38  [1]     200 Type Binary
2010/09/16 21:03:38  [1]     RETR astro.avi
2010/09/16 21:03:38  [1]     150 Opening data connection



But when I test with my FTP server, not comes command anymore after "TYPE I" as following log messages from my FTP.

<log from="" my="" ftp="" server="">
VLC -> FTP>USER steve
FTP -> VLC>331 user steve OK, need password
VLC -> FTP>PASS 12345
FTP -> VLC>230 User logged in, processed
VLC -> FTP>EPSV ALL
FTP -> VLC>229 Entering Extended Passive Mode (|||11000|)
VLC -> FTP>TYPE I
FTP -> VLC>200 Type set to I
VLC -> FTP> SIZE a.avi
FTP -> VLC>213 523226886
VLC -> FTP>EPSV
FTP -> VLC>229 Entering Extended Passive Mode (|||11001|)
VLC -> FTP>TYPE I
FTP -> VLC>200 Type set to I

And after few seconds, display error message "can not open stream, VLC can not open MRL 'ftp://192.168.0.171/a.avi'.

If somebosy know why VLC not send command RETR, please advice me.

Thanks,
Posted
Updated 16-Sep-10 18:49pm
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900