简体   繁体   English

如何建立ftp服务器

[英]How to build a ftp server

I'd like to build an home FTP SERVER - that will store all my files and the rest of my computers will upload and download files to and from it. 我想建立一个家庭FTP服务器-该服务器将存储我的所有文件,其余的计算机将在该文件中上载和下载文件。

I don't like to start from scratch, do you know of ac# ftp server implementation? 我不喜欢从头开始,您知道ac#ftp服务器的实现吗? Can you give me some guidelines of where to start what I should know etc? 您能给我一些应该从哪里着手的指导原则吗?

Based on a few of your comments why do you not just enable the FTP server through IIS on one of your computers in your network, or just enable file sharing? 根据您的一些评论,为什么不只是在网络中的一台计算机上通过IIS启用FTP服务器,还是仅启用文件共享? These things are already partof/included in Windows at your disposal. 这些内容已经包含在Windows中,可以随意使用。

您说您不想从头开始,所以请使用已经经历过痛苦的事情: http : //filezilla-project.org/

The FTP RFCs for the protocol specification and the System.Net.Sockets namespace. 协议规范和System.Net.Sockets命名空间的FTP RFC。

And read as much as you can on security (mailing list, bulletins, books, ...) because you can very easily leave holes for anyone to get to your files. 并尽可能多地阅读安全性(邮件列表,公告,书籍等),因为您可以很容易地给任何人留下空白,以获取您的文件。

(I don't know of any FTP libraries beyond what .NET includes (I've not needed any FTP), but there are also third party networking component libraries that may include richer functionality. You'll likely still need to understand what's going on for debugging.) (我不知道.NET包含的FTP库之外的任何FTP库(我不需要任何FTP),但是还有第三方网络组件库可能包含更丰富的功能。您可能仍需要了解最新情况。进行调试。)

You first need to understand the protocol: RFC959 您首先需要了解协议:RFC959

Here a basic server in C#: http://www.c-sharpcorner.com/UploadFile/ivar/FTPServer12072005041005AM/FTPServer.aspx 这里是C#中的基本服务器: http : //www.c-sharpcorner.com/UploadFile/ivar/FTPServer12072005041005AM/FTPServer.aspx

Read on security... 阅读安全性...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM