0% found this document useful (0 votes)
40 views3 pages

FTP

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views3 pages

FTP

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

FTP Lab Setup in Windows

Objective: Learn how to set up and use an FTP server in Windows.

Overview

FTP (File Transfer Protocol) is a standard protocol used to transfer files between a client and a
server over a network. It typically uses:

 Port 21: Default control port for commands.


 Port 20: Data transfer port in active mode.

IIS (Internet Information Services) is Microsoft’s web server software for hosting applications
on Windows, supporting protocols like HTTP, HTTPS, and FTP.

Requirement: Windows Pc

Instruction:

Step 1: Set Up the FTP Server

1. Install IIS (Internet Information Services):


o Go to Control Panel > Programs > Turn Windows features on or off.
o Check Internet Information Services and expand it.
o Under Web Management Tools, make sure IIS Management Console is checked.
o Under World Wide Web Services, check FTP Server and both FTP Service and
FTP Extensibility.
o Click OK and wait for the installation to complete.
2. Configure the FTP Site:
o Open IIS Manager (type "IIS" in the Start menu).
o In the left pane, right-click on Sites and choose Add FTP Site.
o Site Name: Enter a name for your FTP site (e.g., MyFTP).
o Physical Path: Choose a folder that will serve as the FTP root (create a new folder
if needed).
o Click Next.
3. Binding and SSL Settings:
o For IP Address, you can leave it as All Unassigned.
o For Port, use the default port 21.
o For SSL, choose No SSL for simplicity (you can enable it later).
o Click Next.
4. Authentication and Authorization:
o Under Authentication, check Basic.
o Under Authorization, select Specified users and enter a Windows user account
(ensure this account has permissions to access the FTP folder).
o Set Permissions to Read and Write if you want to allow uploads.
5. Finish the Configuration:
o Click Finish to create the FTP site.

Step 2: Configure Firewall Settings

1. Open Windows Firewall:


o Go to Control Panel > System and Security > Windows Defender Firewall >
Advanced settings.
2. Allow FTP Traffic:
o In the left pane, click on Inbound Rules.
o Click on New Rule in the right pane.
o Select Port, then click Next.
o Choose TCP and specify port 21, then click Next.
o Allow the connection and click Next.
o Choose the profile (Domain, Private, Public) based on your network setup, then
click Next.
o Name the rule (e.g., FTP Access) and click Finish.

Step 3: Test the FTP Server

1. Using Command Prompt:


o Open the Command Prompt.
o Type the following command to test the connection (replace localhost with your
server’s IP if not testing locally):

bash
Copy code
ftp localhost

o Enter the username and password when prompted.


2. Using FTP Client:
o You can use an FTP client like FileZilla or WinSCP for easier interaction.
o Set the host to localhost, port to 21, and enter the username and password you
configured.

Step 4: Upload and Download Files

1. Upload a File:
o In your FTP client, connect to the FTP server.
o Navigate to the local folder containing the file you want to upload.
o Drag and drop the file into the FTP window.
2. Download a File:
o Similarly, to download a file, drag it from the FTP window to your local machine.

You might also like