Setup a FTP server on Windows Server 2008 R2
Open Server Manager
, and add new Role
to it.
Add new role into server manager
In Add Roles Wizard
, tick Web Server (IIS)
.
Enable IIS on the server
In Role Services
, tick everything under FTP Server
section. Follow the wizard to the end to install all the features required.
Enable FTP on the server
Open IIS, tick Add FTP Site
when right-click on Sites
to add a new FTP site.
Add FTP site
Fill in the desirable site name and file location.
Configure FTP site details
Choose All Unassigned
for IP Address
, and do not SSL if you just want a simple FTP site.
Configure FTP site IP
Choose Basic Authentication
and allow All Users
to Read
and Write
. And carry on finishing the wizard.
Configure FTP site authentication
Open Windows Firewall with Advanced Security
to add a new rule to the FTP site.
Configure firewall
Specify a port for FTP communication, and leave the rest as default.
Specify firewall port
To verify the FTP is working, navigate to ftp://<yourftpsiteaddress>
in your browser.
Consume FTP programmatically