There was a problem loading the comments.

How to Set Up an FTP Site in IIS

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Quick answer: Install the FTP Server role service, create a Windows user for FTP, then in IIS Manager right-click your website and choose Add FTP Publishing. Set authentication to Basic, grant the user Read and Write access, set a passive port range under FTP Firewall Support, and open port 21 plus that range in Windows Firewall.

If you manage your Windows VPS without SolidCP or WebsitePanel, you can still offer FTP access using the FTP server built into IIS. This guide works on Windows Server 2016, 2019, 2022 and 2025. If you use a control panel, create FTP accounts there instead - see How to Create an FTP Account (SolidCP).


Before You Start


Step 1: Install the FTP Server Role Service

The quickest way is to run this command in PowerShell as Administrator:

 

Install-WindowsFeature Web-Ftp-Server -IncludeManagementTools

 

Or use the graphical wizard:

  1. Open Server Manager and click Manage → Add Roles and Features.
  2. Click Next until you reach Server Roles.
  3. Expand Web Server (IIS), then tick FTP Server (with FTP Service under it).
  4. Click Next, then Install.

Step 2: Create a Windows User for FTP

Use a dedicated user for FTP rather than the Administrator account.

  1. Press Win + R, type lusrmgr.msc and press Enter.
  2. Right-click Users and choose New User.
  3. Enter a username (for example, ftp_yoursite) and a strong password.
  4. Untick User must change password at next logon, tick Password never expires, and click Create.

For more on managing users, see How to Add and Manage Users on Windows Server.


Step 3: Give the User Access to the Website Folder

  1. In File Explorer, right-click your website's folder (for example, C:\inetpub\wwwroot\yoursite) and choose Properties.
  2. Open the Security tab and click Edit, then Add.
  3. Enter the FTP username, click Check Names, then OK.
  4. Tick Modify in the Allow column and click OK.

Step 4: Add FTP Publishing to the Website

  1. Open IIS Manager (Server Manager → Tools → Internet Information Services (IIS) Manager).
  2. Expand your server and Sites, right-click your website, and choose Add FTP Publishing.
  3. Complete the two wizard pages using the settings below, then click Finish.
Wizard page Setting Value
Binding and SSL Settings IP Address / Port All Unassigned (or your VPS IP) / 21
Start FTP site automatically Ticked
SSL Allow SSL with your certificate. With no certificate yet, choose No SSL for now - passwords will then be sent unencrypted.
Authentication and Authorization Authentication Basic only
Allow access to Specified users - enter your FTP username
Permissions Read and Write

Step 5: Set a Passive Port Range

Most FTP clients connect in passive mode, which needs a range of extra ports for file transfers. Set a fixed range so you can open it in the firewall:

  1. In IIS Manager, click the server name (not the site) in the left pane.
  2. Double-click FTP Firewall Support.
  3. Set Data Channel Port Range to 50000-50100 (or a range of your choice).
  4. Click Apply in the right pane.

Step 6: Open the Ports in Windows Firewall

Run these commands in PowerShell as Administrator. Change the range if you chose a different one in Step 5:

 

New-NetFirewallRule -DisplayName "FTP (control)" -Direction Inbound -Protocol TCP -LocalPort 21 -Action Allow
New-NetFirewallRule -DisplayName "FTP (passive data)" -Direction Inbound -Protocol TCP -LocalPort 50000-50100 -Action Allow

 

Then restart the FTP service so all the settings take effect:

 

Restart-Service ftpsvc

 

For more on firewall rules, including restricting access to your own IP address, see How to Configure Windows Firewall Rules on a VPS.


Step 7: Test the Connection

From your own computer, connect with an FTP client using your VPS IP address and the FTP user you created - see How to Upload Website Files with FileZilla. Upload a small test file to confirm that write access works.


Troubleshooting

Error What to do
530 User cannot log in Check that Basic authentication is enabled and that the username is listed under FTP Authorization Rules for the site. Also confirm the password was entered correctly when the account was created.
Connects, but the directory listing fails The passive port range is not set or not open in the firewall. Repeat Steps 5 and 6, then restart ftpsvc.
550 Access is denied when uploading The user lacks NTFS Modify permission on the folder (Step 3), or Write is missing from the FTP Authorization Rules.
534 Policy requires SSL The site is set to Require SSL. Set your FTP client to use explicit FTP over TLS, or change the setting to Allow SSL under FTP SSL Settings.

Frequently Asked Questions

Can I give several users access to different folders?

Yes. Create a Windows user for each person and grant each user permissions only on their own folder. To lock each user into their own folder automatically, use FTP User Isolation in IIS.

 

Should I use SSL for FTP?

Yes, whenever possible. Bind a certificate under FTP SSL Settings so passwords and files are encrypted in transit.

 

Can SoftSys set this up for me?

Yes. On a Fully Managed Windows VPS, our engineers can configure IIS, FTP and SSL for you - just open a ticket.


SoftSys Hosting

SoftSys Windows VPS plans give you full Administrator access to IIS, so you can host as many sites and FTP accounts as your workload needs. Choose Self-Managed to configure everything yourself, or Fully Managed to let our team handle it.

Self-Managed Windows VPS » Fully Managed Windows VPS »


Share via
Did you find this article useful?  

Related Articles

Tags

© Softsys Hosting