Server connection timeout settings

Using Windows 2003 server and RDPing to that server, is there a setting that controls the timeout connection? I ask because when I RDP in from anywhere, very often I get a Windows disconnection box where it will say "Connection Lost, trying reconnection attempt 1 of 20, 2 of 20, etc. until it is successful. If such a setting exists where is it? Is it on the server side of the client side?
LVL 1
rwheeler23Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rjdpaCommented:
rjdpaCommented:
Configure Timeout and Reconnection Settings for Remote Desktop Services Sessions
Applies To: Windows Server 2008 R2

By default, Remote Desktop Services allows users to disconnect from a remote session without logging off and ending the session. When a session is in a disconnected state, running programs are kept active even though the user is no longer actively connected.

You can limit the amount of time that active, disconnected, and idle (without user input) sessions remain on the server. This is useful because sessions that remain running indefinitely on the RD Session Host server continue to consume system resources.

Configuring timeout and reconnection settings on a per connection basis affects all sessions that use the connection.

You can configure timeout and reconnection settings on a per user basis by using the Remote Desktop Services Extension to the Local Users and Groups snap-in or to the Active Directory Users and Computers snap-in.

Timeout and reconnection settings configured by using Remote Desktop Session Host Configuration will take precedence over timeout and reconnection settings that have been configured for a specific user account.

You can configure the following timeout and reconnection settings in Remote Desktop Session Host Configuration.

 
Setting      Details
End a disconnected session
Specify the maximum amount of time that a disconnected user session is kept active on the RD Session Host server. If you specify "Never," the user's disconnected session is maintained for an unlimited time.
When a session is in a disconnected state, running programs are kept active even though the user is no longer actively connected.
Active session limit
Specify the maximum amount of time that the user's Remote Desktop Services session can be active before the session is automatically disconnected or ended.
The user receives a warning two minutes before the Remote Desktop Services session is disconnected or ended, which allows the user to save open files and close programs.
Idle session limit
Specify the maximum amount of time that an active Remote Desktop Services session can be idle (without user input) before the session is automatically disconnected or ended.
The user receives a warning two minutes before the session is disconnected or ended, which allows the user to press a key or move the mouse to keep the session active.
When a session limit is reached or connection is broken
Specify whether to disconnect or end the user's Remote Desktop Services session when an active session limit or an idle session limit is reached.
If the user's session is disconnected, the programs that the user is running are kept active even though the user is no longer actively connected.
If the user's session is ended, the user will need to establish a new Remote Desktop Services session with an RD Session Host server.
Use the following procedure to specify the timeout and reconnection settings for a remote session.

Membership in the local Administrators group, or equivalent, on the RD Session Host server that you plan to configure, is the minimum required to complete this procedure. Review details about using the appropriate accounts and group memberships at http://go.microsoft.com/fwlink/?LinkId=83477.

To specify timeout and reconnection settings for a remote session
On the RD Session Host server, open Remote Desktop Session Host Configuration. To open Remote Desktop Session Host Configuration, click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Session Host Configuration.

Under Connections, right-click the name of the connection, and then click Properties.

In the Properties dialog box for the connection, on the Sessions tab, select the following options as necessary:

Select the Override user settings check box, and then set timeout settings for End a disconnected session, Active session limit, and Idle session limit.

Select the Override user settings check box, and then select one of the following reconnection settings: Disconnect from session or End session.

Click OK. Changes to timeout and reconnection settings are not applied to sessions that are connected when the change is made. The changes will take effect the next time the user establishes a new connection to the RD Session Host server.

You can also configure timeout and reconnection settings by applying the following Group Policy settings:

Set time limit for disconnected sessions

Set time limit for active but idle Remote Desktop Services sessions

Set time limit for active Remote Desktop Services sessions

Terminate session when time limits are reached

These Group Policy settings are located in the following locations:

Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits

User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits

These Group Policy settings can be configured by using either the Local Group Policy Editor or the Group Policy Management Console (GPMC).

Note
These Group Policy settings will take precedence over the settings configured in Remote Desktop Session Host Configuration. If both the Computer Configuration and the User Configuration policy settings are configured, the Computer Configuration policy settings take precedence.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rwheeler23Author Commented:
I will look into these. The issue I have is the disconnected message is completely random. The only thing that is consistent is that I typing on the keyboard entering data and/or requesting output. Suddenly the disconnect box pops up and then I am dead for 1-2 minutes. When the connection restablishes itself it brings me back to where I was until it times out again.
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

rjdpaCommented:
Make sure you check the network connection between both client and server sides.
mrbrain646Commented:
do a ping test to that server from a different machine to see if its just your computer that is having the problem. if the other machine still happens on the server i would check the cable on the server..drivers on the server. if its just your workstation. upgrade the drivers for your nic
rwheeler23Author Commented:
The issue is with RDP. I run FTP and I have an IIS application on the same server. When  it locks up my files are still transferring and I can enter time via my web based program so I now it is not the NIC. I am going to ask my cable company for a 30 day trial period at a higher bandwidth.
rjdpaCommented:
Any firewalls (hardware and/or software) between the 2? If so, allow port 3389 at both ends. You could also try a different port number for the remote desktop. You would just have to change a registry setting to change the listening port on the pc in which you are connecting to.

If needed, change listening port number here, then restart pc...
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber

then when connecting, use the host or ip address followed by :1234 where 1234 is the new port number... (ex. 192.168.1.10:3390)
rwheeler23Author Commented:
This situation is just very odd. Back in March of 2010 i had the cable come and run a new line because critters had eaten through the existing line. Ever since then I have had this issue. I will be logged in and working and sometimes the connection gets lost every 5 minutes and then sometimes only 5 times a day. I cannot find any pattern. Given that my FTP server and IIS server appear to be unaffected, I can going to use VNC for while and see that times out.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.