Why do I keep losing my Remote Desktop connection

Remote Desktop Intermitten Connection Loss

Hello, all!

I am currently working remotely and have been using RDP to connect to my computer at the office. The method of connection is through a VPN (Cisco AnyConnect) created by my company and then connecting to the office computer using Remote Desktop from my laptop at home.

What I am experiencing is intermittently losing connection throughout the day. Usually, RDP is able to regain the connection after 1-4 attempts though there are times where it won't be able to reconnect. This loss of connection occurs inconsistently with some days seeing no connection loss and others where the connection is dropped every 5 minutes. I haven't been able to discern any pattern to why this is occurring. I do connect to my network at home via WIFI, but my home internet connection and WIFI signals are consistently strong, and I am able to work on my local network without any loss in speed or connection.

If anyone has any insight into possible reasons for this issue and suggestions for a solution to improving the connection, I would greatly appreciate it!

Thanks,

Mark

remote-desktop-services

Comment

Comment · Show 1

Comment

5 |1600 characters needed characters left characters exceeded

  • Visible to all users
  • Visible to the original poster & Microsoft
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Visible to all users

Attachments: Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ElevenYu-MSFT · Sep 23, 2020 at 08:45 AM

Hi,

Have you checked if the answer helps?

If the Answer is helpful, please click "Accept Answer" and upvote it.

Thanks,
Eleven


Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



0 Votes 0 ·

ElevenYu-MSFT answered Sep 22, '20 | ElevenYu-MSFT edited Sep 23, '20

Hi,

Firstly, you could try to set below group policy on your office PC.

Computer Configuration\Administratives Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections

Automatic reconnection - Enabled
Select RDP transport protocols - Use both UDP and TCP

Computer Configuration\Administratives Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment

Configure compression for RemoteFX data - select as desired
Configure image quality of RemoteFX Adaptive Graphics - select as desired
Configure RemoteFX Adaptive Graphics - select as desired

Also, you could check event logs to figure our the cause of disconnections.

Event viewer\windows logs\security, application, system
Event Viewer\Applications and Services Logs\Microsoft\Windows\TerminalServices-ClientActiveXCore (RDPClient/Analytic, RDPClient/Debug, RDPClient/Operational
Event Viewer\Applications and Services Logs\Microsoft\Windows\RemoteDesktopServices-RdpCoreTS (Admin, Debug, Operational)
Event Viewer\Applications and Services Logs\Microsoft \Windows\RemoteDesktopServices-sessionservice-operatinal
Event Viewer\Applications and Services Logs\Microsoft\Windows\TerminalServices-LocalSessionManager

Please ensure that all above logs are enabled.

For your reference.

Windows RDP-Related Event Logs: Identification, Tracking, and Investigation
https://ponderthebits.com/2018/02/windows-rdp-related-event-logs-identification-tracking-and-investigation/

RDS Session Host Server Disconnect Codes
https://social.technet.microsoft.com/wiki/contents/articles/37874.rds-session-host-server-disconnect-codes.aspx


Thanks,
Eleven


If the Answer is helpful, please click "Accept Answer" and upvote it.




Comment

Comment Show 0

Comment

5 |1600 characters needed characters left characters exceeded

  • Visible to all users
  • Visible to the original poster & Microsoft
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Visible to all users

Attachments: Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

6 Replies

· · ·

Why do I keep losing my Remote Desktop connection

Mace

OP

Best Answer

Justin1250

Why do I keep losing my Remote Desktop connection

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Jun 27, 2017 at 02:37 UTC

Look into the logs if you drill down into the Microsoft logs then down to terminal services operational logs it should give you a disconnect log. Look for the reason code. That will help a little bit in diagnosis.

1

· · ·

Why do I keep losing my Remote Desktop connection

Jalapeno

OP

b3nste1n Jun 27, 2017 at 03:11 UTC

If the client side is windows 7, try enabling RDP version 8 and enable UDP. Have gotten good feedback from users with that

0

· · ·

Why do I keep losing my Remote Desktop connection

Anaheim

OP

rackIt

Why do I keep losing my Remote Desktop connection

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Jun 27, 2017 at 03:13 UTC

They're all Windows 8.1 boxes with UDP enabled via GPO. Guess I could have mentioned that! :)

0

· · ·

Why do I keep losing my Remote Desktop connection

Anaheim

OP

rackIt

Why do I keep losing my Remote Desktop connection

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Jun 27, 2017 at 04:21 UTC

@justin1250 After reviewing the appropriate logs, it looks likely to be a newly implemented licensing issue. Patch Tuesday strikes again, 72 hours after the fact. I'll follow-up after some CAL's are installed.

  • Why do I keep losing my Remote Desktop connection

    Justin1250

    Mace

1

· · ·

Why do I keep losing my Remote Desktop connection

Anaheim

OP

rackIt

Why do I keep losing my Remote Desktop connection

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Jul 7, 2017 at 16:11 UTC

So, we installed 20 CALS on Server 2012 r2 RDS. 4 users are still having issues, and then only from certain computers that they connect from. I am nearly insisting to management that the issue is on the connecting computer end, but "how can 4 computers be the problem and not one"? In an organization with ~50 devices, 30 of which I built or control, what are the odds of 4 devices being problematic? It seems clear to me, one user can connect to to his VM from home or another system in the office, but not from his primary workstation. When connecting from his workstation, rdp drops and reconnects every few minutes. The other 3 users drop in the am but it stabilizes as the morning goes on. Again, at least one of these users have this experience from one machine, but not another.

I feel like I'm being clear, but maybe I am not communicating something properly here to the powers that be. It seems that I am still expected to fix this on the server. Any insights or suggestions are appreciated.

0

· · ·

Why do I keep losing my Remote Desktop connection

Mace

OP

Justin1250

Why do I keep losing my Remote Desktop connection

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Jul 7, 2017 at 19:02 UTC

Yeah, I would re-image those stations.

1

This topic has been locked by an administrator and is no longer open for commenting.

To continue this discussion, please ask a new question.