Rdp зависает при подключении windows 10

  • Remove From My Forums
  • Question

  • Добрый день!

    Коллеги, прошу помощи.

    Существует проблема:

    Win 10 Pro x64, все обновления.

    В течении дня возникает «затык» в результате которого, RDP не подключается, останавливаясь на этапе «Оценка качества подключения», при этом процесс начинает потреблять до 50% ЦП. Закрыв на крестик данный процесс продолжает работать
    и расходовать ресурсы системы. Перезапуски служб относящихся к работе сети и подключениям не дают результата. Помогает только перезагрузка. На момент зависания, при просмотре занятых портов, RDP-клиент связан с сервером
    по https. Крипто-про и аналогичное ПО отсутствует.

    Решение предложенное 

    https://social.technet.microsoft.com/Forums/ru-RU/b08dffe4-c479-475b-9966-0ec6fdb52055/105710831091107810731099?forum=WS8ru

     не исправляет ситуации.

    Проблема возникла только на двух разных пк, проблема не возникает у других пользователей (400шт).

Answers

  • Ну проблема скорей клиента.

    Пробовали

    sfc /scannow

    DISM /Online /Cleanup-Image /RestoreHealth

    ?

    • Marked as answer by

      Wednesday, August 1, 2018 7:24 PM

В современных версиях Windows 10/11 и Windows Server 2022/2019/2016 при подключении к серверу RDP (RDS) кроме стандартного порта TCP/3389, дополнительно используется UDP порт 3389. Когда ваш RDP клиент подключается к серверу, устанавливается несколько сессий. В управляющей TCP (HTTP) сессии передаются клавиатура и мышь, а несколько UDP сессий используются для передачи картинки.

Вы можете проверить, использует ли ваш клиент mstsc режим UDP, если щелкните по значку Connection Info в верхней полоске RDP подключения. В нашем случае протокол UDP используется:

The quality of the connection to the remote computer is excellent and UDP is enabled.

Для RDP подключений используется протокол UDP

По утверждениям Microsoft использование UDP для RDP сессий позволяет существенно повысить отзывчивость удаленного рабочего стола за счет сокращения ретрансмиссии и возможности работать на нестабильных подключениях с высокими задержками.

Зависание RDP сессий при использовании UDP

В некоторых случаях использование протокола UDP для RDP подключения может вызывать проблемы: периодическое замирание картинки, обрывы RDP сессий, пользователи видят черных экран вместо удаленного рабочего стола, сообщение о внутренней ошибке при RDP подключении и т.д. В таких случаях обычно помогает переподключение к RDP сессии. Но иногда такая проблема происходит очень часто и мешает нормальной работе.

Проблема с замиранием RDP сессий встречается:

  • При использовании RDP сессий внутри VPN туннелей ( чаще всего наблюдается при использовании сервера OpenVPN). Это вызывается фрагментированием UDP пакетов (может быть вызвано разными настройками MTU) при пересылке через VPN туннель;
  • После обновления до билда 22H2 в Windows 11/10;
  • При использовании шлюза Remote Desktop Gateway на Windows Server 2022 и порта 3391 для UDP трафика.

Причем проблема не связана с плохой производительностью RDS сервера как описано в кейсе по ссылке: на сервере достаточно свободных ресурсов, память и CPU не нагружены.

Отключить использование протокола UDP для RDP

Для решения проблемы с зависанием RDP сессий при использовании VPN туннелей вы можете попробовать отключить использование протокола UDP.

Можно отключить протокол UDP для RDP через групповые политики.

  1. Откройте консоль редактора локальной GPO (
    gpedit.msc
    );
  2. Перейдите в раздел Computer Configuration -> Administrative Templates -> Windows Components -> Remoter Desktop Services -> Remote Desktop Session Host -> Connections;
  3. Включите параметр политик Select RDP transport protocols и установите Select Transport Type = Use only TCP; RDP сервер - использовать только TCP порт
  4. Перезагрузите RDS/RDP сервер, чтобы применить настройки;
  5. Подключитесь к RDP серверу и нажмите на значок информации о подключении. Здесь должна появиться надпись:
    The quality of the connection to the remote computer is good.

    Для RDP подключения используется только TCP

Это означает, что для RDP подключения используется только TCP.

Этот способ позволяет отключить использование UDP на стороне сервера RDP/RDS. Если вы хотите запретить использовать UDP для RDP на стороне клиента, нужно включить параметр Turn off UDP on Client в разделе Computer Configuration -> Administrative Templates -> Windows Components -> Remoter Desktop Services -> Remote Desktop Connection Client. Параметр политик - отключить UDP на клиенте Turn off UDP on Client

После внесения изменений, нужно обновить локальные политики командой
gpupdate /force
и перезапустить клиент mstsc.exe.

Также можно включить этот параметр через реестр (параметр GPO соответствует ключу fClientDisableUDP в реестре):

reg add "HKLM\software\policies\microsoft\windows nt\Terminal Services\Client" /v fClientDisableUDP /d 1 /t REG_DWORD

В это непростое время, когда весь мир пытается справиться с коронавирусной инфекцией COVID-2019, многие перешли на удаленный режим работы.

Те, кто используют подключение к удаленному рабочему столу (RDP) до своего рабочего компьютера могут столкнуться с фризами (подвисаниями) в работе удаленного рабочего стола (RDP). Обычно, переподключение решает эту проблему, но через некоторое время проблема повторяется. При этом нет видимых проблем со связью.

Причин может быть много, начиная от некорректной работы сетевой карты и заканчивая некорректной работой драйвера или наличия вредоносных программ. Предложенное нами решение поможет в случае, если проблемы наблюдаются в сессиях RDP с использованием UDP протокола.

В начале, следует проверить используется ли UDP при подключении к RDP, для этого необходимо кликнуть на кнопку в окне подключения:

Если появится следующее сообщение:

То для решения проблемы можно попробовать принудительно отключить использование UDP протокола при подключении к RDP.

Указанные действия необходимо проводить на компьютере к которому осуществляется подключение.

Для этого запускаем редактор локальной групповой политики
Win + R -> «gpedit.msc» -> OK

Если у Вас Windows 10 Home, воспользуйтесь статьей на нашем сайте для включения редактора gpedit.

Далее, нам следует найти раздел «Конфигурация компьютера» — «Административные шаблоны» — «Компоненты Windows» — «Службы удаленных рабочих столов» — «Клиент подключения к удаленному рабочему столу«

Здесь нам нужно изменить параметр «Отключение UDP на клиенте«. Двойной клик на этом параметре и выбираем «Включено«

Кроме того, нам необходимо найти раздел «Конфигурация компьютера» — «Административные шаблоны» — «Компоненты Windows» — «Службы удаленных рабочих столов» — «Узел сеансов удаленных рабочих столов» — «Подключения«

Здесь нам следует изменить параметр «Выбор транспортных протоколов RDP«. Двойной клик на этом параметре и выбираем «Включено» и в параметрах указываем тип транспорта «Использовать только TCP«.

После сохранения необходимо перезагрузить компьютер.

Для проверки того, что подключение идет без использования протокола UDP кликнем на кнопку в окне подключения:

Теперь в сообщении не должно быть информации о UDP:

Надеемся, что проблема с подвисанием сессии удаленного рабочего стола у Вас исчезнет также как исчезла у нас и вы сможете эффективно продолжить удаленную работу из дома.

Все статьи на тему RDP и устранения проблем в его работе на нашем сайте.

(Visited 50 085 times, 6 visits today)

Posted by Rewalon

В период массового перехода на удаленную работу, многим пришлось познакомиться с таким явлением как удаленный рабочий стол. В большинстве случаев, компании предоставляют удаленный доступ к рабочим компьютерам только при подключении через VPN — таким образом обеспечивается более высокий уровень безопасности сети компании.

При использовании RDP поверх VPN периодически могут возникать странные «зависания» удаленного рабочего стола, с последующими дисконнектами или без них или просто значительные подтормаживания интерфейса. Конечно, сначала необходимо исключить проблемы на сетевом уровне (потери пакетов, низкая скорость, высокие задержки и т.д.), но если они уже исключены, а проблемы повторяются — с большой долей вероятности ваш клиент работает по протоколу UDP. Этот режим работы стал режимом по умолчанию начиная с версии RDP 8.0. Сам по себе он призван ускорить работу с RDP, но в связке с VPN-подключением, когда пакеты начинают фрагментироваться перед отправкой в туннель и собираться заново на другом конце — могут возникать проблемы с одновременной доставкой всех «частей» пакета и невозможностью его сборки и, как следствие — задержки и зависания интерфейса.

Отключить работу через UDP можно двумя способами:

  1. Правка реестра. В ветке HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client необходимо создать параметр fClientDisableUDP и установить значение 1.
  2. Групповые политики. Необходимо перейти в Computer Configuration -> Administration Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Connection Client и установить настройку «Turn Off UDP On Client» в Enabled.

После этого зависания должны прекратиться.

RRS feed

  • Remove From My Forums
  • Question

  • After a client remotes from one windows 10 PC to their win 10 pc at their desk, the desk PC will hard freeze. No mouse, no keyboard, ext… hard freeze. Only solution is to reboot the PC and attempt again. Anyone have any idea.

All replies

  • Hi,

    What OS version is the desk PC?

    Based on my research, it’s an issue with Win 10 1809 to Win 10 1809.Now please have a try with the method below:

    You can work around this by disabling UDP session used by MSTSC on your affected computer (the one where they’re running the Remote Desktop client).

    Run
    gpedit.msc
    . 

    Navigate to
    Computer Configuration > Administration Templates > Windows Components > Remote Desktop Services > Remote Desktop Connection Client.
     

    Set the «Turn Off UDP On Client» setting to Enabled.

    I found a similar thread such like yours. More information please refer to the link below:

    https://social.technet.microsoft.com/Forums/en-US/dff1a051-afa9-48e5-ba77-4c5cffd54634/issue-connecting-to-rdp-only-win10-1809-gt-windows-server-2019?forum=ws2019

    I hope this can help.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact
    tnmff@microsoft.com.

    • Proposed as answer by

      Wednesday, May 15, 2019 7:13 AM

  • We are running Windows 10 Enterprise 1803 on all computers in the organization.

    I will give the UDP resolution and let you know.

  • Hi,

    Was your issue solved?

    If the reply helped you, please remember to mark it as an answer.

    If no, please reply and tell us the current situation in order to provide further help.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact
    tnmff@microsoft.com.

  • Hi,

    Any update? Please let us know if you need more help.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact
    tnmff@microsoft.com.

  • I had a very similar problem when connecting from Windows 10 version 1809 to Windows 10 version 1903. The remote desktop client would freeze and not allow any input. Closing the remote client and opening a new RDP session would work fine. However this would
    become too annoying, having to open a new remote desktop every few minutes (in my case).

    Setting the «Turn Off UDP On Client» group policy to Enabled as suggested by @Farena fixed this problem for me.

    Lots of thanks!

    • Edited by
      Todor Tsvetkov
      Friday, July 19, 2019 3:07 PM

  • Do you complete this action on the computer you are connecting to or connecting from?

  • I upgraded to 1903 last night and now have the same problem. Whenever I rdp to my laptop from another machine it connects and I can work for about 5 minutes or so. Then everything freezes. I have to disconnect the rdp connection and reconnect. Everything
    is then OK for another 5 minuts. This is really annoying and was not happening with 1803.

  • I have the same problem with 1903 to 1903.

  • I have the same issue when I try a connection from my Laptop Win 10 1903 to my Desktop Win10 1903.

    I have changed the default port for RDP though.

    First time the connection goes well.

    If I try to disconnect and start a RDP session a second time from the Laptop, trying to connect to my Desktop, the Desktop simply freezes with the lock screen image. No mouse no numlock key nothing. It has to be hard booted through the reset switch. Really
    annoying when I am traveling and am away from the computer.

    The freezing happens when I am doing RDP over the home network through wifi in the same network or from an external location through the forwarded port.

    I tried the UDP disable option on both the Laptop and Desktop but that did not help.

    Update I changed the RDP port back to 3389 to check, even then the behavior remains the same. The first RDP session happens without a problem, if I close it and try a RDP session again the Desktop freezes. Caps lock etc work for a few seconds and then everything
    stops.

    Amit

    • Edited by
      AmitKalra
      Friday, September 27, 2019 10:03 AM

  • I’m having the exact same issue as AmitKalra. So first connection is fine. If I close the RDP client and want to reconnect, that is when
    it hangs. The machine I am connecting to is AzureAD joined btw.

    • Proposed as answer by
      SzGergely
      Wednesday, November 13, 2019 7:36 PM
    • Unproposed as answer by
      SzGergely
      Wednesday, November 13, 2019 7:39 PM

  • Found the solution for me (I had the exact same issue as AmitKalra):

    «Use GPO to force use of XDDM rather than WDDM. On the affected machine, in Group Policy Editor, under Remote Desktop Session Host -> Remote Session Environment … set the policy “Use WDDM graphics display driver for Remote Desktop
    Connections” to DISABLED. «

    https://www.tenforums.com/network-sharing/133658-remote-desktop-broken-windows-10-1903-but-only-one-pc-2.html

    • Proposed as answer by
      JaapN
      Monday, September 30, 2019 3:13 PM
    • Edited by
      JaapN
      Monday, September 30, 2019 3:14 PM

  • I tried changing GPO and it did not work for me. I am still stuck with this annoying freezing.

  • Same here, I tried a lot of stuff included the GPO changing.

    I also noted that when my remote windows 10 not responding, if I click in some program icon, when I reconnect I will find that program open. It means that session receive mouse click but the screen updated will not arrive.

  • Same behavior as byman64 observed.

  • Same here, I tried a lot of stuff included the GPO changing.

    I also noted that when my remote windows 10 not responding, if I click in some program icon, when I reconnect I will find that program open. It means that session receive mouse click but the screen updated will not arrive.

    I see this same behaviour. Both machines 1903 Win 10.

    The machine I am connecting to is Win 10 Pro, version 1903 (OS Build 18362.418)

    The machine I am connecting from is Win 10 Enterprise, version 1903 (OS Build 18362.175)

    The machine with Enterprise on it has some missing windows updates. I’m installing them now to see if that equalises the build numbers and, more importantly, fixes the RDC freezing.

    • Edited by
      ianwilson
      Tuesday, October 22, 2019 1:48 PM
      typo

  • Both machines now have the same OS build but the RDC session just froze again.

    I clicked the icon to launch Edge, reconnected and Edge was to the front. Exactly what byman64 and simdoc have reported.

  • I have tried Setting the «Turn Off UDP On Client» group policy to Enabled as suggested by Farena to see if that helps.

  • This seems to work so far. Had the same problem, 1903 to 1903. enabled «turn off udp on client» and haven’t had an issue since. I didn’t reboot after making the change. 

  • I applied the advice given here and my RDP sessions freeze up within seconds of interacting with the remote computer.  Everything
    was working fine before this latest update.  Further thoughts or ideas?

  • Found the solution for me (I had the exact same issue as AmitKalra):

    «Use GPO to force use of XDDM rather than WDDM. On the affected machine, in Group Policy Editor, under Remote Desktop Session Host -> Remote Session Environment … set the policy “Use WDDM graphics display driver for Remote Desktop
    Connections” to DISABLED. «

    https://www.tenforums.com/network-sharing/133658-remote-desktop-broken-windows-10-1903-but-only-one-pc-2.html

    I got the same issue after update to 1903. (Second connection freezes the whole target computer)

    Suggestion from JaapN solved my issue: «Use GPO to force use of XDDM rather than WDDM. On the affected machine, in Group Policy Editor,
    under Remote Desktop Session Host -> Remote Session Environment … set the policy “Use WDDM graphics display driver for Remote Desktop Connections” to DISABLED» 

  • I enabled the «Turn Off UDP On Client» approach suggested by Farena and — so far — I’ve not had any freezes in the last few hours.  This is hopeful.

  • Having this problem on the 1909 build. Tried both the UDP and the WDDM/XDDM suggestions. Only disabling UDP works for me. Very annoying issue…

  • I had the same issue, my cable company told me my home was sending out signal bursts that caused the signal to bounce back again and again.  The issue was resolved after each and every cable connection to my house was securely fashioned and a couple
    of the coaxials were bad and had to be replaced.  

  • Getting the same behavior as DaTexican on an up-to-date 1909 box.

    I think others are getting this confused with another issue. This issue is the host machine getting completely locked up — not responding to physical input and pings. Other responses to this thread are referring to RDP itself crashing but otherwise the host
    works.

  • Readera ru для windows скачать бесплатно
  • Rdp для windows 11 домашняя
  • Reader для windows mobile fb2 reader
  • Rdp на два монитора windows 10
  • Rdp для windows 10 скачать бесплатно