How to Set Up FTP Server on Windows
In this article
Yes, you can set up an FTP server on Windows using built-in Internet Information Services (IIS). This allows you to share files over a network or the internet via the File Transfer Protocol. You’ll need administrator access and a clear understanding of your network setup before proceeding. This guide walks you through enabling IIS, configuring FTP, setting user permissions, and securing basic access.
What You'll Need
- Windows 10, 11, or Windows Server (Pro or Enterprise editions)
- Administrator account on the machine
- Local or domain user account for FTP access (optional but recommended)
- Basic knowledge of IP addresses and firewall settings
- Router access (if allowing external connections)
Step-by-Step
- Open Control Panel > Programs > Turn Windows features on or off.
- Scroll down and check the box for Internet Information Services.
- Expand Internet Information Services > FTP Server and ensure both FTP Service and FTP Extensibility are checked.
- Expand World Wide Web Services > Common HTTP Features and check Default Document, Directory Browsing, HTTP Errors, and Static Content.
- Click OK. Windows will install the selected components. Wait for the process to finish.
- Press Win + R, type
inetmgr, and press Enter to open IIS Manager. - In the left panel, expand your computer name and click on Sites.
- Right-click Sites > Add FTP Site.
- In the wizard, enter a site name (e.g., MyFTP) and a physical path (e.g., C:\FTP). Create this folder if it doesn’t exist.
- Set IP address to All Unassigned or specify a static IP. Set port to 21 (default).
- Under SSL, select "No SSL" for basic setup (you can enable SSL later).
- Click Next. Choose Authentication: select Basic if using user accounts, or Anonymous if open access is acceptable (not recommended).
- Set Authorization: choose the user or group (e.g., Users), then select Read and/or Write permissions.
- Click Finish. The FTP site is now created and running.
- Open Windows Defender Firewall with Advanced Security.
- Click Inbound Rules > New Rule > Port > TCP, specific local ports: 21.
- Allow the connection, apply to all profiles, and name the rule (e.g., FTP Port 21).
- Repeat for port 1024-65535 if using passive FTP (required for external access).
- Test locally: open File Explorer, type
ftp://localhostin the address bar. - For external access, forward port 21 (and passive range) on your router to the server’s local IP.
Common Mistakes
Not enabling both FTP Service and FTP Extensibility in Windows Features prevents the FTP option from appearing in IIS. Using Anonymous authentication with write access creates security risks. Skipping firewall rules blocks external access. Assigning incorrect folder permissions denies users access even if login succeeds. Forgetting to forward passive ports causes timeouts during file transfers.
Tips
Use a dedicated user account for FTP with limited system access. Set the FTP folder outside system directories (e.g., not in C:\Windows). Enable SSL later via IIS using a certificate for secure transfers. Monitor logs in IIS for failed login attempts. Use passive mode with a defined port range (e.g., 50000-50100) and forward that range on your router.
Troubleshooting
If the FTP site won’t start, verify IIS services are running (open Services.msc and check World Wide Web Publishing Service). If connection fails locally, confirm the firewall rule allows port 21. For external failures, ensure your public IP is correct and port forwarding is set. Use a port checker tool to verify port 21 is open. If login fails, double-check username format (use computername\\username or domain\\username). If transfers fail after login, enable passive FTP in client settings and confirm passive ports are forwarded. Restart IIS using iisreset in Command Prompt if changes don’t apply.
Frequently Asked Questions
Can I use FTP without IIS?
Yes, third-party FTP server software like FileZilla Server can be installed, but IIS is built-in and sufficient for basic needs.
Is FTP secure?
Not by default. FTP sends passwords in plain text. Enable SSL in IIS or use SFTP via third-party tools for encryption.
Why can’t I connect from outside my network?
Your router likely isn’t forwarding port 21 to the server. Also check if your ISP blocks port 21 or if you’re behind NAT without a public IP.
How do I set up user-specific folders?
Create separate folders for each user and assign permissions via folder properties > Security. Use IIS Manager to set user-specific authorization rules.
What’s the difference between active and passive FTP?
Active FTP uses port 21 for commands and opens a data connection from the server to client. Passive FTP opens data connections from the client, which works better behind firewalls.
Can I limit upload/download speed?
Not directly in IIS FTP. You’d need third-party software or Quality of Service (QoS) settings on your router.