Connecting to a FTP with C#???

gicio

Well-known member
Joined
Aug 26, 2002
Messages
90
Hi!

I check the MSDN Library but I cant find any infos about: how to connect to and FTP...
I need also infos how get folders names from the ftp....

Have any one experience which class can I use to connect to an FTP??


THX!!!
 
Just open a connection to an FTP server using a socket. I think FTP runs on port 21.
The most important thing you need to know, in my opinion, is how the FTP works (i.e. what messages are sent). Following that, any FTP client code that you find should be helpful in understanding the protocol. Ane being an ASCII protocol means its pretty easy to understand.

This site might have something: http://www.csharphelp.com/
 
Last edited by a moderator:
FTP is port 21. Use a Socket or TcpClient class to connect. Read RFC 959 to learn the protocol and you should be all set.
 
Back
Top