Thank you for your understanding, I hope you can get a satisfactory answer as soon as possible.
Windows 10/11 Pro - Constant need to reset Winsock / TCP stack to avoid RDP connection error
Dell Latitude 3520 – 1 device affected
RDP fails to find the host computer until the TCP stack is reset, while browser traffic is unaffected
RDP Connection error - Remote Desktop can’t connect to the remote computer
Wi-Fi or Ethernet are connected with data transfer, and I can successfully ping the RDP server at all times
In elevated CMD run:
- ipconfig /flushdns
- ipconfig /release
- ipconfig /renew
- NETSH winsock reset
- NETSH int ip reset
After a reboot the above commands resolve the issue for 1 attempt, the RDP connects, but after being disconnected the issue reoccurs until the TCP stack is reset again.
Tried running the following independently with reboots which didn’t resolve the issue until both were ran together:
- NETSH winsock reset
- NETSH int ip reset
Registry entries seem the same when the issue is occurring and not:
- SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
- SYSTEM\CurrentControlSet\Services\DHCP\Parameters
IP Addresses assigned to the network adapter in use, and the VPN adapter are the same when the issue occurs and while it’s working.
Reinstall of network adapters hasn’t helped, latest drivers installed
Upgrade from Win10 to Win11 hasn’t helped, latest updates installed – MS & Dell
Reset of device, wiping apps and data hasn’t helped
Issue affects domain-joined user and a local account set up for testing – all accounts
Following the suggestion here with the below commands helped, now the RDP will connect/disconnect/reconnect 3-5 times before producing the Remote Desktop can't connect error, and when the error does reappear it’s resolved by a reboot:
- ipconfig /flushdns
- ipconfig /registerdns
- ipconfig /release
- ipconfig /renew
- NETSH winsock reset catalog
- NETSH int ipv4 reset reset.log
- NETSH int ipv6 reset reset.log
How do I make this problem disappear altogether though?
Windows for home | Windows 11 | Internet and connectivity
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
6 answers
Sort by: Most helpful
-
Anonymous
2022-06-24T06:15:54+00:00 -
Anonymous
2022-06-23T21:00:49+00:00 I also went through the same troubleshooting steps (repeatedly), removing from the domain, removing the anti-virus and firewall. I
was using an older Dell (also running Windows 10 21H2) to test with the same WIFI/VPN/RDP connections with no issues...the issues
only appeared on the 2 Dell Latitude 3520's. The issue might clear itself temporarily (usually after the domain removal or changes to the Virus/Firewall
software) but would return after a few attempts.Again, running this network reset script cleared the issue on both systems immediately.
-
Anonymous
2022-06-23T20:06:01+00:00 I have the same problem on 2 Dell 3520's. We are connecting RDP via VPN through WIFI. I can pass ping, traceroute, etc through the
VPN connection, but an RDP or Telnet fails with no outgoing connection attempts appearing. An older Dell using the sameWIFI and VPN has no problem. We also have no connection problems when connecting locally through our intranet WIFI.
We are running Windows 10 21H2 with all of the patches. Both Dell's have been completely
updated with Dell updates.
After running this reset script and restarting, both systems connected RDP on the first attempt.
-
Anonymous
2022-06-23T16:16:01+00:00 Thanks Kirk, I'll give that a try
-
Anonymous
2022-06-23T03:23:06+00:00 Hi,
Thanks for your post in Microsoft Community.
I understand that you're running into an issue where Remote Desktop requires a constant reset of the Winsock/TCP stack to connect properly.
This question is beyond our support scope, I think you may need to ask this question in a more specialized forum, Microsoft Docs (directed to RDP section) has more people familiar with RDP, I believe you can get questions here Answer.
Thank you for your understanding, and I hope you can get an answer as soon as possible.
Kirk | Microsoft Community Support Specialist
* Beware of scammers posting fake support numbers here.
* If your problem is not solved, you could reply to the post again and we would continue to provide technical support for you.
* Please check and vote this answer if it helps as it will be beneficial to more community members reading here.