FTP configuration detailed process
1. Check network status
Table of contents
FTP configuration detailed process
1.2 Server→Client connection (optional)
1.3 Client → Server Connection (Optional)
1.1 Client network status
Run the ipconfig command in the cmd window to check the current network adapter configuration, set it to a fixed IP acquisition method, and record the ip address and network card mac address.
1.2 Server→Client connection (optional)
Execute the ping command in the server's cmd window and ping the client IP, for example: ping 192.168.146.140
1.2.1×
For example:
reason:
-
The server and client are not in the same network environment
-
The client's firewall is not turned on
Client firewall ping
How to enable: Enable icmp protocol firewall
Control Panel\All Control Panel Items\Windows Defender Firewall→: Right-click Inbound Rules→New Inbound Rule Wizard→Customize→All Programs→Protocol Type (ICMPv4)→Any IP address or specific IP address (add server ip)→Allow Connect → Complete the rule settings according to the prompts
1.2.1√
The server can communicate with the client
1.3 Client → Server Connection (Optional)
Execute the ping command in the client's cmd window and ping the server IP, for example: ping 192.168.146.11
2.Add user
Right-click Computer→Manage→System Tools\Local Users and Groups\Users→right-click in a blank space→New User
Fill in the user information according to the figure below, uncheck the check box that the user needs to change the password the next time they log in, check that the user cannot change the password, and check that the password will never expire.
3.FTP service
3.1 Start the service
Control Panel\Programs→Turn Windows features on or off
Check the FTP server and Web management tool installation services under Internet Information Services as shown below.
3.2 Create a new FTP site
Right-click Computer→Manage→Services and Applications\Internet Information Services (IIS) Manager→right-click Website→Add FTP Website
Follow the prompts to configure the ftp site
3.2.1 Enter the site name and configure the path
3.2.2 Select IP address and port number
If the IP address is "All assigned" and no IP is specified, all network cards can access it. The default port number is 21.
Automatically start the FTP site. If checked, the site will automatically start when booting.
Select None for SSL, next step
3.2.3 Authentication and authorization
Authentication: Check Anonymous and Basic
Authorization: Select all users or specified users
Permissions: read and write, check as needed
3.3NTFS permission management
To access the configured folder via FTP, users must have the permissions required to access the folder.
Right-click the site name and select Edit Permissions/Security
3.3.1 This folder has Users or Everyone permissions
If you have these two group permissions, you do not need to add the specified user to this permission.
3.3.2 This folder does not have Users or Everyone permissions
Click Edit to add permissions for win11 users
3.4 FTP log disabled
3.4.1 Open FTP log configuration
Double-click the FTP site name or IIS management. The configuration of the former is only valid for this site, and the latter is valid for all FTP sites, and select FTP logs.
3.2 FTP log configuration
After the FTP service is turned on, the system default FTP log function is enabled and exists in the C:\inetpub\logs\LogFiles directory, occupying space on the C drive.
Since the site will continuously scan the content of the site in a loop and accumulate a large number of log files, select "Disable".
4. Firewall configuration
4.1 Permitted applications
Control Panel\All Control Panel Items\Windows Firewall\Allowed Apps
Check Private and Public for FTP server and Web management service (HTTP)
4.2 Advanced settings
Control Panel\All Control Panel Items\Windows Firewall
4.2.1 Select Advanced Settings\right-click Inbound Rules\New Rule
4.2.2 Port
4.2.3 Enter the port number configured for the FTP site
4.2.4 Complete the configuration according to the prompts
5. Test access
5.1 Enter the site address
Enter the ftp address in the local resource manager or IE browser, for example: ftp://localhost:220/ or ftp://192.168.146.140:220/
If you configure it to be accessible to all users, Users or everyone configured in NTFS, you can access it directly.
Here is a demonstration of configuring a designated user and entering the account and password for access.
5.2 Access
5.1.1 Local access successful
5.1.2 Server access failure
Control Panel\All Control Panel Items
Internet Options\Advanced\Uncheck Use Passive FTP and restart the computer
Access successful