Solved Remote Desktop Connection behaves surprisingly


lapetesson

Member
Local time
3:58 PM
Posts
20
OS
Windows 11
I have a Windows 11 PC setup as a hub for the Remote Desktop Connection (RDP). Two other Windows 11 PCs connect to the hub as clients. Their behavior is inexplicable. I can connect to the hub within about 100 seconds after the PC reboots or awakens from sleep mode. Afterward, all connection attempts fail, reporting error 0x104. If I restart the PC or take it to sleep mode and wake up, I can connect again during this limited time.

If I stay connected for a long time, everything works fine. But as soon as I drop the connection, I cannot connect again.

The Event Log contains no entries about these connection failures.

Microsoft has published an extensive RDP troubleshooting guide. It is only partly valid, but I've followed the useful parts without any conclusion.

I believe that there is no trivial solution to this problem because the connection sometimes works and sometimes doesn't, even though I always connect in the same way.
 

My Computer

System One

  • OS
    Windows 11
    Manufacturer/Model
    Beelink SER5 AM06PRO, Acer Aspire A515-43, Lenovo Thinkcentre-m92p
The Event Log contains no entries about these connection failures.
Do you still receive any of these Event IDs from their respective Event logs:
I believe that there is no trivial solution to this problem because the connection sometimes works and sometimes doesn't, even though I always connect in the same way.
Try performing a Clean Boot to see if another program is causing conflicts at startup using this Forum's Tutorial:


and also check Task Scheduler for possible programs loaded after startup.

Also, I am not sure whether problem is on the Hub side or on one of the two Client PCs. Perhaps you could qualify your situation.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 5600
    Motherboard
    MSI B550-A Pro
    Memory
    16 GB
    Graphics Card(s)
    Sapphire Radeon RX 6500XT (8 GB version)
    Monitor(s) Displays
    BenQ Mobuiz EX2710Q QHD, Iiyama ProLite X23377HDS
    Hard Drives
    MSI Spatium M461 4TB
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer A114
    CPU
    Intel Celeron N4020
Is this network actually a simple LAN to which a few computers running Win 11 (or 10) are connected or is the 'server' actually running Windows Server? If it is running Win 11 then it is just a LAN and all the computers have equal standing - no servers or clients. If that is the situation it is essential for consistent performance to assign a fixed IP to each system, so try that. You also need to use the built-in Windows Remote Desktop Connection (RDC), not RDP.
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Lafite 14
    CPU
    i7
    Memory
    16Gb
    Internet Speed
    150Mbps/39Mbps
    Browser
    Firefox
  • Operating System
    Win 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    PC Specialist
    CPU
    i5
    Memory
    8Gb
    Internet Speed
    150Mbps/39Mbps
    Browser
    Firefox
    Other Info
    Incompatible device, upgraded to Win 11
@fixer:
It is a simple LAN with no server. I have in total four PCs, all Win 11, two Pro, and two Home. All PCs do not have the same standing. Every PC can act as a client, but only a Pro PC can act as a hub (target). Every connection is directed from the client to the hub and the PCs have different roles in a connection.

I don't use the IP addresses for connections; I use the system names. I do use the Windows Remote Desktop Connection; all observations come from this app.
 

My Computer

System One

  • OS
    Windows 11
    Manufacturer/Model
    Beelink SER5 AM06PRO, Acer Aspire A515-43, Lenovo Thinkcentre-m92p
@iko22:
Thank you for the answer. I've checked the Event Log once again. There are many events 4624, 4634, 4647, and 4648, corresponding to logon and logoff, all successful. My conclusion would be that the RDP connection failures are not caused by logon problems.

I've also checked the Task Scheduler. There are some scarce activities related to the update and OneDrive, all quick and successfully ending. They can by no means interfere with my RDP connection attempts.

I've also executed the Clean Boot. It is an interesting experiment, but it seems to be designed for troubleshooting other issues. Anyway, it does not change the behavior of RDP in my network: I can connect within around two minutes after the client restarts or wakes up, but not later.

Something happens after two minutes. I suppose it happens on the client PC because I can connect from another client when one client gets stalled, so the hub seems to work normally. The connection failures after two minutes occur regardless of whether I connected earlier or not. After this time, no connection is possible, period.

A minor detail is that the hub never enters sleep mode. I keep it up and running using an application because setting Sleep to Never in Settings didn't work. I've also ensured that NICs are never turned off.
 

My Computer

System One

  • OS
    Windows 11
    Manufacturer/Model
    Beelink SER5 AM06PRO, Acer Aspire A515-43, Lenovo Thinkcentre-m92p
The reported problem occurs only when the remote PC is addressed using its name. When you use the IP address instead, there are no disturbances, and everything works smoothly. So it is the resolution of a node name to its IP address that stops working after two minutes, not the RDP. I don't know why it happens, but my problem is solved through the use of IP addresses.
 

My Computer

System One

  • OS
    Windows 11
    Manufacturer/Model
    Beelink SER5 AM06PRO, Acer Aspire A515-43, Lenovo Thinkcentre-m92p
I've found that relaxing advanced sharing settings for the various networks helps things work more smoothly. Never have figure out why, though...
--Ed--
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo X380 Yoga
    CPU
    i7-8650U (8th Gen/Kaby Lake)
    Motherboard
    20LH000MUS (U3E1)
    Memory
    16 GB
    Graphics Card(s)
    Intel UHD Graphics 620
    Sound Card
    Integrated Conexant SmartAudio HD
    Monitor(s) Displays
    FlexView Display
    Screen Resolution
    1920x1080
    Hard Drives
    Toshiba 1 TB PCIe x3 NVMe SSD
    external 5TB Seagate USB-C attached HDD
    PSU
    Lenovo integrated 65W power brick
    Case
    Laptop
    Cooling
    Laptop
    Keyboard
    Integrated Lenovo ThinkPad keyboard
    Mouse
    touchscreen, touchpad
    Internet Speed
    GbE (Spectrum/Charter)
    Browser
    all of em
    Antivirus
    Defender
    Other Info
    Purchased early 2019 as Windows Insider test PC
Question: For the system to which you are having difficulties connecting, is there more than one network adapter installed?
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
The reported problem occurs only when the remote PC is addressed using its name. When you use the IP address instead, there are no disturbances
Rebooting your router should reset the name/IP problem. Probably best to do so when both systems are on.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Lafite 14
    CPU
    i7
    Memory
    16Gb
    Internet Speed
    150Mbps/39Mbps
    Browser
    Firefox
  • Operating System
    Win 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    PC Specialist
    CPU
    i5
    Memory
    8Gb
    Internet Speed
    150Mbps/39Mbps
    Browser
    Firefox
    Other Info
    Incompatible device, upgraded to Win 11

Latest Support Threads

Back
Top Bottom