On a recent Windows 2008 R2 server I was working on, the client complained about FTP connections timing out.  Here are my findings and the fix (credit to this post which is where I found the answer)!

Large (i.e. 1 MB+) FTP uploads from newer client Windows OSes such as Windows Vista or Windows  7 running the FileZilla client (3.3.3) in passive mode, connecting to a Windows 2008 server would slow down, then hang/stall after a few seconds, eventually timing out.  In testing I found the issue occurred in both IIS/MS FTP/Microsoft FTP or FileZilla server running on the 2008 R2 box.  Here’s an example… on a Windows 7 FileZilla client, the transfer would hang at the EXACT same place EVERY time (in my case it hung exactly at 458,752 bytes):

Using a Mac or Windows XP FileZilla client did not produce a problem and the transfer always worked perfectly.

The solution was simple.  Enter this command line (must be run as admin) to disable the TCP autotuning mechanism on the server:

netsh int tcp set global autotuninglevel=disabled

Problem solved!  Big transfers – full speed ahead!  NOTE: I’m pretty sure this can be used on the client versus the server to work around the issue as well… please let me know in the comments.

Environment:

Server OS: Windows 2008 R2 Server
Client OS: Windows 7
FTP Server: IIS / MS FTP or FileZilla
FTP Client: FileZilla for Windows


Tagged with:  

5 Responses to Large FTP Transfers Hang/Timeout/Fail on Windows 2008 Server in FileZilla OR Microsoft FTP

  1. A - netadmin says:

    this does work on a windows 7 client workstation.
    it worked well for us, thanks for the info

  2. Moosemiester says:

    This is an awesome tip and it works.

  3. Asma Salem says:

    this does work on a windows 7 client workstation.
    it worked well for us, thanks for the info

  4. A User says:

    The command wasn’t recognised for me on Windows XP SP3.

  5. PCFreak says:

    Had the same problem after migrating from Server 2003 to Server 2008R2. FTP upload speed is now fast again! Thanks for sharing!

Leave a Reply

Your email address will not be published. Required fields are marked *

Web Hosting