You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

Introduction

File transfer protocol is a set of rules that define how files can be shared (sent and received) and manipulated (create, rename and delete) over a TCP/IP Network. FTP works in two modes, passive and active. From Stackoverflow: “In active mode, the client establishes the command channel but the server is responsible for establishing the data channel. In passive mode, the client establishes both channels then requests the server (on the command channel) to start listening on a port (at the server’s discretion) rather than trying to establish a connection back to the client.  The server also returns to the client the port number it has selected to listen on so that the client knows how to connect to it.”

Step 1: Start Server Manager

As with all Windows Server roles, we have to go to the Server Manager to begin the installation. Hit your “Windows” key and search for “Server Manager” if it is not already opened. Once open, click on “Add Roles and Features

Server Manager start
Add Roles and Features Dashboard

Step 2: Click Next on Wizard

On the first page of the “Add Roles and Features Wizard“, click “Next

Add Roles and Features POP AD

Step 3: Select Installation Type

In the “Select Installation type page“, select “Role-based or feature-based-installation” and click “Next

Add Roles and Features POP Role based 1

Step 4: Choose Destination Server

Select the server you will install NFS on and click “Next

Select server new

Step 5: Select Roles to install

Select “Web Server (IIS)” checkbox and click on “Add Features” in the pop-up that will come up as shown below. Click “Next” after that is done.

iis select Web server iis
IIS Add Features
IIS Add Features Next

Step 6: Select Features

In the “Select Features” stage simply click on “Next” and click on “Next” again in the “Web Server Role (IIS)” stage as well.

IIS Add Features Next 2
IIS Add Features Next 3

Step 7: Select role services

This is the step we have been waiting for. Among the many checkboxes, select “File Server ” one and hit “Next“. After that, happily click on “Install” and wait for your server to finish up installing.

FTP NEW 1

Confirm installation selections and hit “Install

FTP NEW 2 Confirm selections

If you like Powershell, the following one command will do as well

# Install-WindowsFeature Web-FTP-Server -IncludeManagementTools

You should see

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------

True    No             Success        {FTP Server, FTP Service, IIS Manageme

Step 8: Configure your FTP in passive mode

Let us now configure our FTP Server in Passive Mode as described in the introduction section.

Open Server Manager >Tools > Internet Information Services (IIS) Manager

Server manager open iis manager from tools

Once open, proceed as below. Click on your server to expose the middle pane.

IIS Manager Click on site to expose FTP FIREWALL SUPPORT

Step 9: Open Feature

Select “FTP Firewall Support” and click on “Open Feature” on the right pane as illustrated. Alternatively, you can just double-click on “FTP Firewall Support“. That will open a small pop-up. Proceed to step 11.

IIS Manager Click on FTP FIREWALL SUPPORT To open it

Step 10: FTP Firewall Support

Input the port range for passive mode in this pop-up as shown below then click “Apply” on the right pane.

IIS Manager FTP PORT RANGE INPUT 1

The pop-up below will appear making you aware that you need to allow the port range we configured in the firewall. Click “OK“. After that, restart, FTP Server to make the changes applied.

IIS Manager FTP PORT RANGE INPUT SMALL POP UP AFTER APPLY

Step 11: Restart FTP Server

Open Services App, look for “Microsoft FTP Server“, right-click on it and select restart.

RESTART FTP AFTER PASSIVE MODE ENABLED

Step 12: Add the ports in Firewall

Use How To open a port in Windows Server Firewall to add the ports in your Firewall. Also, include port 21. It should look like below:

FIREWALL FOR FTP SHOWED

Step 13: Add FTP Website

Follow our guide below to add an FTP site to FTP server on Windows server 2019.

How To add FTP Site on Windows Server 2019

Conclusion

We have successfully installed and configured FTP Server in Windows 2019. Next, we are going to add a user and test connectivity with an FTP Client.

Do not miss the following:

Install and Configure iSCSI Target on Windows Server 2019

Install and Configure OpenSSH Server on Windows Server 2019

Install and Configure IIS Web Server on Windows Server 2019

Install and Configure NFS Server on Windows Server 2019

Install and Configure DHCP Server on Windows Server 2019

How to Install Active Directory Domain Services in Windows Server 2019

You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

LEAVE A REPLY

Please enter your comment!
Please enter your name here