Windows Firewall Blocking IIS FTP Connection: Enabling FTP Port Rules
In this article, we will discuss how to resolve issues with Windows Firewall blocking IIS FTP connections. Specifically, we will cover the following topics:
- Understanding the Windows Firewall and FTP
- Verifying that Firewall Port Rules are Enabled for FTP
- Manually Adding Firewall Port Rules for FTP
- Troubleshooting Common Issues
Understanding the Windows Firewall and FTP
The Windows Firewall is a built-in security feature that helps protect your computer from unauthorized access. When you install the FTP server role using Internet Information Services (IIS), the firewall port rules for FTP traffic are automatically enabled, allowing traffic to flow through ports 21 and 1024-65535. However, if you have made changes to your firewall settings or if the automatic configuration did not work correctly, you may encounter issues with FTP connections being blocked.
Verifying that Firewall Port Rules are Enabled for FTP
To verify that the firewall port rules for FTP are enabled, follow these steps:
- Open the Windows Defender Firewall with Advanced Security control panel.
- Click on Inbound Rules in the left-hand pane.
- Look for rules with names starting with "File Transfer Protocol (FTP Server)" and "File Transfer Protocol (FTP-Out)".
- Make sure that the Enabled checkbox is checked for each of these rules.
Manually Adding Firewall Port Rules for FTP
If the automatic configuration did not work or if you have made changes to your firewall settings, you may need to manually add firewall port rules for FTP. To do this, follow these steps:
- Open the Windows Defender Firewall with Advanced Security control panel.
- Click on Inbound Rules in the left-hand pane.
- Click on New Rule in the right-hand pane.
- Select Port and click Next.
- Select TCP and specify the ports 21 and 1024-65535. Click Next.
- Select Allow the connection and click Next.
- Select the network locations where you want to apply the rule and click Next.
- Enter a name and description for the rule and click Finish.
- Repeat the above steps for outbound rules as well.
Troubleshooting Common Issues
If you are still encountering issues with FTP connections being blocked, here are some common troubleshooting steps:
- Check that the FTP site is configured correctly in IIS.
- Check that the FTP service is running and started.
- Check that the FTP site is bound to the correct IP address and port.
- Check that the firewall port rules are enabled and configured correctly.
- Check that there are no other security software or hardware firewalls blocking FTP traffic.
- The Windows Firewall is a built-in security feature that helps protect your computer from unauthorized access.
- When you install the FTP server role using IIS, the firewall port rules for FTP traffic are automatically enabled.
- If you encounter issues with FTP connections being blocked, verify that the firewall port rules are enabled and configured correctly.
- If necessary, manually add firewall port rules for FTP.
- Troubleshoot common issues with FTP connections.