FTP Server TCP/IP Port Exhaustion Prevention
TCP/IP Port Exhaustion Prevention affects FTP servers and other services using the TCP stack as well. In the case where a lot of TCP links are created and closed very quickly, as is the case in most web and FTP servers, you should change the following two system settings to prevent port exhaustion during peak traffic hours.
How to Offer Additional Ports to the TCP Driver
Add or edit the following DWORD entry to the registry of your backup clients as well as FTP servers. The default is 5000, which leads to the port range of 1024 to 5000.
You could MaxUserPort up to 65535
THe key is:
HKEY_LM\System\CurrentControlSet\Services\Tcpip\Parameters\MaxUserPort = 65000
Please reboot after setting this setting.
Clearing Used Ports Earlier
It takes some time before Windows removes the port entirely after it’s closed. It will be stuck in “TIME_WAIT” or “CLOSE_WAIT” for quite some time, but that period can be changed in the registry.
Add or edit the following DWORD entry to the registry of your backup clients as well as FTP servers. The default is 120 = 2 minutes.
You reduce the value of TcpTimedWaitDelay down to 1 but it’s probably wise to set it slightly higher in most environments.
HKEY_LM\System\CurrentControlSet\Services\Tcpip\Parameters\TcpTimedWaitDelay = 5
Please reboot after setting this setting.
The above two changes followed by a reboot will greatly increase the number of FTP transactions your FTP server and client can handle per minute. The first setting gives more ports to TCP to use and the second ensures the ports are recycled as quickly as possible.
FTP Backups through Specialized Backup Software
Note that FTP backups can become inefficient without some improvements in the protocol. BackupChain, our Windows Server backup software, uses its own protocol extensions to dramatically minimize port usage and hence improve performance for remote backups.
Backup Software Overview
The Best Backup Software in 2024 Download BackupChain®BackupChain is the all-in-one server backup software for:
Server Backup
Disk Image Backup
Drive Cloning and Disk Copy
VirtualBox Backup
VMware Backup
Image Backup
FTP Backup
Cloud Backup
File Server Backup
Virtual Machine Backup
Server Backup Solution
Hyper-V Backup
Popular
- Best Practices for Server Backups
- NAS Backup: Buffalo, Drobo, Synology
- How to use BackupChain for Cloud and Remote
- DriveMaker: Map FTP, SFTP, S3 Sites to a Drive Letter (Freeware)
Resources
- BackupChain
- VM Backup
- V4 Articles
- Knowledge Base
- FAQ
- Archive 2024
- Archive 2022
- Archive 2021
- Archive 2020
- Archive 2019
- Archive 2017
- Archive 2016
- Archive 2015
- Archive 2014
- Archive 2013
- BackupChain (German)
- German Help Pages
- BackupChain (Greek)
- BackupChain (Spanish)
- BackupChain (French)
- BackupChain (Dutch)
- BackupChain (Italian)
- BackupChain is an all-in-one, reliable backup solution for Windows and Hyper-V that is more affordable than Veeam, Acronis, and Altaro.
Other Backup How-To Guides
- Hyper-V Disadvantages: How Hyper-V Costs You
- Why You Need To Defragment Your Backup Drives
- Best Practices for Server Backup, Data Backup, and Hyper-V Backup
- Why You Shouldn’t Buy a NAS like Drobo, Synology, Buffalo, Netgear, QNap
- Hyper-V Backup Error: Could not initiate a checkpoint operation: Element not found. (0x80070490).
- Backup Verification and Validation: Use Self Validating Backups
- Boot Hyper-V Server 2019, 2016 from USB Stick or Drive
- Ubuntu VM Hyper-V Backup and What You Need to Know for Linux Support
- How to Turn Off Windows 10 Upgrade Notification and Icon
- How to Back up Microsoft SQL Server Databases
- Backup Software with VSS Support for Windows Server and Windows 11
- How to Fix: The semaphore timeout period has expired, Error 121
- 6 Common Cloud Backup Storage Pitfalls You Should Know
- How to Check Hard Disk Health Without Downtime
- How to Map FTP as a Network Drive on Windows 11-10
- Server 2012 Pulled into Saved State With Server 2008 R2 Host
- How to Delete All VSS Shadows and Orphaned Shadows
- How to Fix ID 10102 VMMS: Failed to create the backup of virtual machine
- OneDrive Backup Software for Windows PCs and Servers
- How to Install Hyper-V on a Windows Server 2012 Machine