I have a user that uses his Windows 10 laptop to connect to the Windows 2008 R2 server using remote desktop. He was working fine for a while then all of a sudden started getting kicked off. He will connect for about 5 - 10 minutes and then get disconnected.
Event logs on the laptop are:
Event ID 1026 - RDP Client ActiveX has been disconnected (Reason = 516) - Remote Desktop can’t connect to the remote computer for one of these reasons: 1) Remote access to the server is not enabled 2) The remote computer is turned off 3) The remote computer is not available on the network Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.
But he is able to connect so we know that remote access is enabled, the remote computer is not turned off (it's the main file server - never off), and the remote computer is available on the network or he would have never connected to get disconnected.
Event ID 226 - RDP Client_TCP: An error was encountered when transitioning from TcpStateConnectingTransport to TcpStateDisconnected in response to TcpEventConnectionTimeout (Error code:0X80004004)
We only use IPv4 so we have IPv6 unchecked. We specify the IP address and DNS settings so they are on the same network as the server. He remains connected to the network, just not to the server.
Event ID 1105 - The multi-transport connection has been disconnected.
I found an article with similar errors that pointed to inactive ports as the culprit. I checked the registry and found there were over 500 inactive ports. I ran the "fix-it" and it deleted all of the inactive ports. I will apply the HotFix tonight while everyone is logged off and am able to let it reboot. However, clearing those ports didn't stop him from disconnecting.
The event logs on the server are:
Event 25, TerminalServices-LocalSessionmanager - 1:47:14pm
Remote Desktop Services: Session reconnection succeeded:
User: ServerName\UserName
Session ID: 3
Source Network Address: Laptop's IP Address
Event 24, TerminalServices-LocalSessionManager - 1:52:20pm
Remote Desktop Services: Session has been disconnected:
User: ServerName\UserName
Session ID: 3
Source Network Address: Laptop's IP Address
This will continue like this all day. He can't stay connected for no more than 20 minutes. Some sessions are only a couple minutes. Does anyone know what we need to do to fix this?
Thanks,
Jessica