Updated: 28 September 2026 · Applies to: Windows Server 2016 to 2025 with IIS 10

These steps set up an FTP server with IIS on Windows Server 2019, 2022 and 2025 (and 2016). For secure transfers, use FTPS (FTP over TLS) rather than plain FTP.

1. Install the FTP role

  1. Open Server Manager › Add roles and features.
  2. Under Web Server (IIS), tick FTP Server (with FTP Service) and IIS Management Console.
  3. Finish the wizard. Or in PowerShell: Install-WindowsFeature Web-FTP-Server -IncludeManagementTools.

2. Create the FTP site

  1. In IIS Manager, right-click Sites › Add FTP Site.
  2. Enter a name and the folder to share (for example D:\ftp).
  3. Bind it to the server's IP, port 21, and choose Require SSL with a certificate (a self-signed one works for testing; use a proper certificate for customers).
  4. Choose Basic authentication and allow the Windows users or a group you created for FTP, with Read and/or Write permission.

3. Passive mode and the firewall

  1. On the server node in IIS Manager, open FTP Firewall Support, enter a port range (for example 50000-50100) and the server's public IP, and click Apply.
  2. Restart the service: Restart-Service ftpsvc.
  3. Allow ports 21 and the passive range in Windows Defender Firewall (the FTP role adds rules for port 21), and in any external firewall.

4. Test

Connect with FileZilla using Require explicit FTP over TLS, the server's address and the Windows user. If the connection hangs at LIST, the passive ports are blocked or the public IP is not set.

Tip: Give FTP users NTFS permissions only on their own folders. For a single administrator, Remote Desktop file copy or SFTP (OpenSSH Server, a built-in Windows feature) are simpler alternatives.

Related services

Windows VPS

Windows Server on VPS Pro and Elite, installed by our engineers (evaluation edition; a licence is extra).

Server management

on-demand administration, hardening, migrations and monitoring.

Was this answer helpful?

Still stuck? Open a ticket