I need some help setting up FTP on my Azure VM instance.
The VM is Windows Server 2012 R2. I have set up the Web Server Role and created an FTP site in IIS. I have confirmed that I can access the FTP server with
ftp command: open localhost
I have also configured an FTP end point for the VM on the Azure Portal configured for the standard port 21.
Lastly, I have created a firewall rule to allow all traffic in/out of port 21.
Now when I try to FTP to it from my home machine I can see the server public DNS name is resolving to the proper IP and port but no connection can be made.
Am I missing a configuration step somewhere?
Thanks
There's a great walkthrough from July 2012 'Hosting FTP on IIS 7.5 in a Windows Azure VM' by Ronald Wildenberg about this. He echoes David's answer. These are the stages he goes through:
ftp 127.0.0.1
and login%windir%\system32\inetsrv
: appcmd set config /section:system.ftpServer/firewallSupport /lowDataChannelPort:7000 /highDataChannelPort:7014
Get-AzureVM -ServiceName 'myServiceName' -Name 'ftpportal' | Add-AzureEndpoint -Name 'FTPPassive00' -Protocol 'TCP' -LocalPort 7000 -PublicPort 7000 | Update-AzureVM
where 'myServiceName' is the name of my cloud service and 'ftpportal' is the name of my virtual machine.netsh advfirewall set global StatefulFtp enable
net stop ftpsvc
net start ftpsvc
It's worth following these steps in the original article not least because he includes useful screenshots for each step, but I thought it was worth quoting extensively here just-in-case. The article also mentions Active FTP vs. Passive FTP, a Definitive Explanation as worth reading.
It would be great if I could report that after following these steps your Azure VM based FTP server will be working and accessible. But unfortunately the steps above did not fix it for me :-(