Microsoft KB Archive/931130

= Error message when you use an FTP client to download a large file from an FTP server: &quot;Connection closed by remote host&quot; =

Article ID: 931130

Article Last Modified on 1/26/2007

-

APPLIES TO

 Microsoft Windows Server 2003 Service Pack 1, when used with:  Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)

 Microsoft Windows Server 2003, Standard Edition (32-bit x86)  Microsoft Windows Server 2003 R2 Enterprise Edition (32-Bit x86) Microsoft Windows Server 2003 R2 Standard Edition (32-bit x86)

-

<div class="notice_section">

Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry

<div class="symptoms_section">

SYMPTOMS
When you use an FTP client to download a large file from an FTP server, you receive an error message that resembles the following:

Connection closed by remote host

This problem occurs if the following conditions are true:
 * The Application Layer Gateway service is running on the FTP server.
 * The Routing and Remote Access service is running on the FTP server.

<div class="cause_section">

CAUSE
This problem occurs because the Routing and Remote Access service and the Application Layer Gateway service use the Lpnat.sys driver to create a time-out value that is 60 seconds for TCP port mappings. However, the original time-out value for TCP port mappings is 24 hours.

<div class="workaround_section">

WORKAROUND
To work around this problem, use one of the following methods.

Method 1
Stop the Application Layer Gateway service if you do not have to use the service.

Method 2
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Change a registry value to affect the behavior of Application Layer Gateway service on the FTP Server. To do this, follow these steps: <ol> Click Start, click Run, type Regedit, and then click OK.</li> Locate, and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ALG\ISV\{6E590D61-F6BC-4dad-AC21-7DC40D304059}

</li> In the results pane, double-click PreferExternalManifest.</li> In the Value data box, type Disable, and then click OK.</li> On the File menu, click Exit to close Registry Editor.</li></ol>

After you change the registry value, the Application Layer Gateway service does not make port mappings for the FTP Server.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Keywords: kbexpertisebeginner kbtshoot kbprb KB931130

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.