You are currently offline, waiting for your internet to reconnect

Printing pauses after every 11 print jobs when you use an LPR port

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

Symptoms

Printing may pause after every 11 print jobs when you are printing through a line printer remote (LPR) port. When this occurs, the following events are logged in the System log on the server:


Windows Server 2003 Print Server

Event Type: Warning
Event Source: LPR Print Monitor
Event ID: 2004
Description: Printer <Printername> on host <Host IP/Name> is rejecting our request.  Will retry until it accepts the request or the job is cancelled by the user.


Windows Server 2008 Print Server

Log Name:      System
Source:        Tcpip
Event ID:      4227
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Description: TCP/IP failed to establish an outgoing connection because the selected local endpoint was recently used to connect to the same remote endpoint. This error typically occurs when outgoing connections are opened and closed at a high rate, causing all available local ports to be used and forcing TCP/IP to reuse a local port for an outgoing connection. To minimize the risk of data corruption, the TCP/IP standard requires a minimum time period to elapse between successive connections from a given local endpoint to a given remote endpoint.

Cause

LPR ports use the default LPR RFC source and destination ports (TCP:721-731, TCP:515). This makes a total of 11 ports. After these 11 ports are used up, printing will pause until the ports time out and again become available.

Resolution

We recommend that you use standard TCP\IP ports instead of LPR ports. If you must use LPR ports, you can still use TCP\IP ports. However, you should set them to LPR mode. The following articles describe standard TCP\IP ports in more detail.

http://support.microsoft.com/kb/814586

http://technet.microsoft.com/en-us/library/cc728404(WS.10).aspx

To work around the 11 port RFC default for LPR ports, follow these steps: 

1.      Set the following registry key (REG_DWORD):

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\LPDSVC\lpr
Value name: UseNonRFCSourcePorts
Value Data: 1
Value Type: Binary
0 = uses ports 721-731 (default)
1 = uses any dynamic port

2.      Restart the Spooler Service to enable the feature.

More Information

By default, the key is not present. This limits the number of LPR ports to 11. Setting the registry value to 1 will make the LPD use any port whose number is greater than 1024 to transmit the jobs.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
Properties

Article ID: 2003449 - Last Review: 11/05/2015 18:19:00 - Revision: 4.0

Windows Server 2012 R2 Essentials, Windows Server 2012 R2 Datacenter, Windows Server 2012 R2 Standard, Windows Server 2012 Datacenter, Windows Server 2012 Standard, Windows Server 2012 Essentials, Windows Server 2008 R2 Standard, Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise, Windows Server 2008 Service Pack 2, Windows Server 2008 Standard without Hyper-V, Windows Server 2008 Datacenter without Hyper-V, Windows Server 2008 Enterprise without Hyper-V, Windows Server 2008 Datacenter, Windows Server 2008 Enterprise, Windows Server 2008 Standard, Microsoft Windows Server 2003 R2 Enterprise Edition (32-Bit x86), Microsoft Windows Server 2003 R2 Standard x64 Edition, Microsoft Windows Server 2003, Datacenter Edition (32-bit x86), Microsoft Windows Server 2003, Standard Edition (32-bit x86), Microsoft Windows Server 2003 R2 Enterprise x64 Edition, Microsoft Windows Server 2003 R2 Datacenter Edition (32-Bit x86), Microsoft Windows Server 2003 Service Pack 2, Microsoft Windows Server 2003, Enterprise x64 Edition, Microsoft Windows Server 2003 R2 Datacenter x64 Edition, Microsoft Windows Server 2003 R2 Standard Edition (32-bit x86), Microsoft Windows Server 2003, Enterprise Edition (32-bit x86), Microsoft Windows Server 2003, Standard x64 Edition

  • kbrapidpub kbnomt KB2003449
Feedback