个人建议,还是不要用Windows原生的FTP服务:第一:配置起来真的是相当麻烦;第二:权限控制搞个人。还是直接用FileZilla搭配FlashFXP使用吧!
你这个问题官方是给到有答案的:
windows下FTP被动模式下数据传输默认使用的端口是服务器的临时端口。而Windows服务器临时端口范围默认是:49152-65535。
查看动态端口范围
netsh int ipv4 show dynamicport tcp
TCP 的动态端口范围
netsh int ipv4 set dynamicport tcp start = 10000 num = 1000
参考:https://support.microsoft.com/zh-cn/help/929851/the-default-dynamic-port-range-for-tcp-ip-has-changed-in-windows-vista
Configure the FTP service to only use a limited number of ports for passive mode FTP
--------------------------------------------------------------------------------
1.In the IIS 7.0 Manager, in the Connections pane, click the top node for your server.
2.In the details pane, double-click FTP Firewall Support.
3.Enter the range of port numbers that you want the FTP service to use. For example, 41000-41099 allows the server to support 100 passive mode data connections simultaneously.
4.Enter the external IPv4 address of the firewall through which the data connections arrive.
5.In the Actions pane, click Apply to save your settings.
可以直接在IIS里面配置的。
https://technet.microsoft.com/en-us/library/dd421710(v=ws.10).aspx