jmc
jmc

Reputation: 1729

Cannot connect FTP to Azure virtual machine

I provisioned a Windows Server 2012 vm in Azure. When I try to connect to it via FileZilla FTP client I get a Could not connect to server error.

Here's what I have tried so far:

Upvotes: 2

Views: 5495

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202271

The step I'm missing in your description, is enabling "FTP server" rules in Windows firewall.

They are created during IIS server installation, but are disabled by default. You have to enable them.

Quoting my guide to Installing a Secure FTP Server on Windows using IIS:

An internal Windows firewall is automatically configured with rules for the ports 21, 990 and 1024-65535, when IIS FTP server is installed.

The rules are not enabled initially though. To enable or change the rules, go to Control Panel > System and Security > Windows Firewall > Advanced Settings > Inbound Rules and locate three “FTP server” rules. If the rules are not enabled, click on Actions > Enable Rule.

FTP server firewall rules


If you do not have them, for whatever reason, you have to create them manually. For port 21 and the data ports (in your case 7000-7002).

Upvotes: 1

Related Questions