Help and Support
 

powered byLive Search

Error message when you try to connect to a Windows server-based computer that is running Terminal Services: "Terminal Server has ended the connection"

Article ID:274805
Last Review:November 20, 2006
Revision:4.2
This article was previously published under Q274805

SYMPTOMS

When you try to connect to a Microsoft Windows server-based computer that is running Terminal Services, you may receive the following error message:
Terminal Server has ended the connection.
In the Terminal Services application event log you may find this event:
Event ID 1004
Source: TermService
Description: Unable to acquire a license for user XXXXX, domain XXXXX

Back to the top

CAUSE

This message may be caused by a difficulty in communicating over the network, and not by an actual licensing issue. Terminal Services and the client may be have difficulties communicating over the local area network (LAN), the wide area network (WAN), or the virtual private network (VPN) that they are using to establish the session.

Back to the top

RESOLUTION

To determine the cause of the problem, follow these steps:
1.You can verify connectivity by pinging from the client to Terminal Services, and from Terminal Services to the client by IP address. If you are connecting to Terminal Services by name, verify that you can ping by name also. If you can ping successfully, go to step 2. If pinging fails, verify the IP configuration information of Terminal Services, and the client to make sure that it is correct, and that Terminal Services, or the client are able to find the path to each other. To do this, you may have to verify routing information on Terminal Services, and/or correct default gateways on both the client, and Terminal Services.
2.You can try pinging by using a fixed packet size of 1472 bytes with the Don't Fragment bit set. This represents the largest Internet Control Message Protocol (ICMP) packet that can be sent by using the Ethernet media. This varies depending on the media that is involved.
ping -l 1472 -f IP address
If this does not work, try using smaller, and smaller numbers in the ping command until you receive a response. The size that you used to receive a response is the maximum size packet that is allowed over the network, which the client and/or Terminal Services are traversing.
3.If the packet size that you were able to ping with was smaller than the maximum packet size for the network media, you may have to configure Terminal Services and/or the client by referencing the articles that are listed in the "More Information" section. One of those solutions should resolve the problem that you are experiencing.
Note You must make sure that there are licenses installed on the Terminal Services License Server. If there are no available licenses, the event 1004 will also occur.

Back to the top

MORE INFORMATION

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
159211 (http://support.microsoft.com/kb/159211/) Diagnoses and treatment of black hole routers
140375 (http://support.microsoft.com/kb/140375/) Default MTU size for different network topology
120642 (http://support.microsoft.com/kb/120642/) TCP/IP and NBT configuration parameters for Windows 2000 or Windows NT
183229 (http://support.microsoft.com/kb/183229/) RAS uses fixed TCP/IP MTU size
158474 (http://support.microsoft.com/kb/158474/) Windows TCP/IP registry entries
For additional information about Terminal Services licensing issues, click the following article numbers to view the articles in the Microsoft Knowledge Base:
237811 (http://support.microsoft.com/kb/237811/) How to activate a Terminal Services License Server and install CALs over the Internet
823313 (http://support.microsoft.com/kb/823313/) Windows Server 2003 Terminal Server licensing issues and requirements for deployment
239107 (http://support.microsoft.com/kb/239107/) Establishing preferred Windows 2000 Terminal Services License Services
237801 (http://support.microsoft.com/kb/237801/EN-US/) Windows 2000 Terminal Services Requires Licensing Service
244749 (http://support.microsoft.com/kb/244749/) Licenses required when using Terminal Services client software

Back to the top


APPLIES TO
Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
Microsoft Windows Server 2003, Standard Edition (32-bit x86)
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Server

Back to the top

Keywords: 
kbtshoot kberrmsg kbprb kbtermserv KB274805

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.