在家工作变得越来越普遍,并且通常涉及远程连接到计算机(connecting to a computer remotely)。然而,许多第一次做它的人会遇到各种问题和错误。最常见的一种是“远程桌面找不到计算机”错误。
为什么会发生这种情况,您如何解决?
Windows 10附带的远程桌面(Remote Desktop)( RDP ) 功能允许我们从远程位置连接到另一台 Windows 计算机(connect to another Windows computer from a remote location)。您只需要设备的用户名和密码。只要您有可靠的连接,您就可以连接到世界上任何地方的任何计算机。
不幸的是,有些事情会阻止您通过远程桌面进行连接。在本文中,我们将探讨阻止您设置远程连接的最常见问题以及如何解决这些问题。
远程桌面找不到(Find)计算机(Computer)的常见原因(Reasons)
在开始应用我们的任何解决方案之前,您应该了解最常见的原因,并尝试确定哪个是罪魁祸首。其中一些非常容易解决,无需任何技术知识。
1.糟糕的互联网连接(1. Bad Internet Connection)
确保您的互联网连接(internet connection)设置正确。
2. Windows 更新(2. Windows Updates)
在某些情况下,Windows更新可能会阻止远程桌面(Remote Desktop)正常工作。这是由于文件损坏。查找与RDP冲突的特定更新可能具有挑战性,您必须手动查找原因。您可能正在处理Windows 更新错误(Windows update error)。
3. 防病毒阻止 RDP(3. Antivirus Blocks RDP)
如果您使用除Windows Defender之外(Windows Defender)的第三方防病毒软件(third-party antivirus),它可能会阻止远程桌面连接。但是,如果配置不正确, Windows Defender也可能导致“远程桌面无法连接到远程计算机”错误。
找出是否应归咎于防病毒软件的最简单方法是禁用它。如果RDP因此开始工作,那么您已经发现了问题。
4.远程机器关闭或断开连接(4. Remote Machine Is Turned Off or Disconnected)
它可以像关闭远程机器一样简单。确保(Make)远程计算机已打开并且在网络上可用。此外,还必须启用远程访问。
5. 错误的凭证(5. Wrong Credentials)
确保(Make)您拥有正确的主机名。一个简单的错字可能会阻止您连接到远程计算机。
如何修复远程桌面(Computer)找不到(Find)计算机
如果您无法确定“远程桌面找不到计算机”错误背后的原因,请开始逐步应用以下解决方案。
1. 配置你的防火墙(1. Configure Your Firewall)
如果您禁用了防病毒软件并解决了错误,则需要将其配置为停止阻止RDP。您不应该让您的计算机不受保护。为了本指南的目的,我们假设您使用的是每个Windows 10系统附带的Windows Defender 。但是,您可以轻松地将以下步骤调整到任何其他防病毒软件。要点是一样的。
首先访问Windows Defender 防火墙(Windows Defender Firewall)。您可以在控制面板(Control Panel)中找到它,也可以在搜索框中输入“Windows Defender”。
在屏幕左侧,选择“允许应用程序或功能通过 Windows Defender 防火墙”。您将看到允许或阻止通过防火墙的应用程序和端口的列表。
要更改设置,您首先需要单击右上角的“更改(Change)设置”按钮。然后向下滚动以找到远程协助(Remote Assistance)和远程桌面(Remote Desktop)。单击Private和Public复选框以允许这些应用程序通过防火墙。
如果防火墙是问题所在,您应该能够连接到远程计算机。否则(Otherwise),请尝试应用以下修复程序之一。
2. 启用 RDP 服务(2. Enable RDP Services)
如果禁用任何远程桌面服务,您将无法连接到远程计算机。确保(Make)在两台机器上都启用了以下服务:
- 远程桌面服务(Remote Desktop Services)( TermService )
- 远程桌面服务用户模式端口重定向器(Remote Desktop Services UserMode Port Redirector)( UmRdpService )
要检查,请按CTRL + ALT + DELETE启动任务管理器(Task Manager)。单击(Click)服务(Services)并滚动,直到找到这两个服务。
它们应该默认运行,但如果没有,您可以通过命令提示符恢复它们。打开命令提示符并为远程桌面(Remote Desktop) 服务(Services)键入以下命令:
sc config TeamService start = demand
如果远程桌面服务用户模式端口重定向(Remote Desktop Services UserMode Port Redirector)器未运行,请键入以下命令:
sc config UmRdpService start = demand
请记住(Remember),这些服务必须在两台计算机上运行。
3.清除DNS缓存 (3. Clear DNS Cache )
如果“远程桌面找不到计算机”错误仍然存在,您应该刷新 DNS 缓存(flush the DNS cache)。打开命令提示符并在控制台中键入以下行:
ipconfig /flushdns
按Enter并尝试连接到远程计算机。如果出现错误,请尝试下一个解决方案。
4. 重置凭证 (4. Reset Credentials )
当您连接到远程计算机时,您过去使用的凭据可能会自动应用。如果它们不再有效或与您尝试连接的桌面不匹配,这可能会导致问题。
打开远程桌面连接(Remote Desktop Connection)应用程序,然后插入您尝试连接的计算机的正确 IP 地址。或者,您可以从“控制面板”中的“(Control Panel)用户帐户(User Accounts)”面板管理您的凭据。进行必要的更改,仔细检查并保存。
5. 使用 Windows 注册表清除连接历史记录(5. Clear the Connections History Using the Windows Registry)
有时,远程桌面连接(Remote Desktop Connections)缓存是导致错误的原因。尝试从Windows 注册表(Windows Registry)中清除连接历史记录。
通过在搜索框中键入“注册表编辑器”并启动应用程序来打开注册表编辑器。(Registry Editor)或者,您可以使用“运行”对话框窗口并键入“regedit”。
转到终端服务器客户端(Terminal Server Client)文件夹并删除您找到的所有MRU条目。(MRU)如果您在查找文件夹时遇到困难,请转到Edit,选择Find,然后在搜索框中键入“Terminal Server Client”。
在这种情况下,没有要删除的MRU条目。(MRU)如果有,您将在右侧面板中看到它们。要删除它们,请右键单击它们并选择“删除(Delete)”选项。
6.检查RDP端口(6. Check the RDP Port)
当您在注册表编辑器(Registry Editor)中时,您应该检查RDP使用的侦听器端口。默认情况下,使用端口 3389。但是,如果另一个应用程序使用相同的端口,您将收到“远程桌面找不到计算机”错误。
打开注册表编辑器(Registry Editor)并转到RDP-Tcp目录。您可以使用“编辑”选项卡中的“(Edit)查找”(Find)功能来节省查找时间。
搜索PortNumber并检查侦听器端口的编号,如上图所示。如前所述,3389 应该是默认值。让我们将其改为 3388,看看我们是否可以使用不同的端口连接到远程机器。
要修改端口号,请右键单击PortNumber并选择Modify。这将打开编辑窗口。
默认情况下,您可能会在数据字段中看到“d3d”。这只是端口号 3389 的十六进制。要更改该数字,请通过勾选十进制(Decimal)选项切换到十进制。然后在值数据字段中键入 3388。现在尝试连接到远程计算机。
7.检查网络属性(7. Check the Network Properties)
远程桌面(Remote Desktop)应用程序有时不喜欢公共网络并出于安全原因阻止它们。检查您的网络设置并确保将配置文件设置为私有。
打开设置(Settings)应用程序并转到网络和 Internet(Network & Internet)。单击状态(Status )并在右侧面板中选择属性。(Properties)
在Network Profile下,选择Private。
再次尝试连接到远程计算机。
连接远程桌面
我们希望这些解决方案之一对您有用。“远程(Remote)桌面找不到计算机”错误很常见,因为很多问题都可能导致它。最好的办法是一次尝试一种解决方案,直到找到可行的解决方案。在下面的评论中让我们知道哪个修复对您有用。
FIX: Remote Desktop Can’t Find the Computer Error
Working from home is becoming more common аnd often involvеs connecting to a computer remotely. However, many people who are doing it for the first time encounter various problems and errors. The most common one is the “remote desktop can’t find the computer” error.
Why is this happening and how can you solve it?
The Remote Desktop (RDP) feature that comes with Windows 10 is what allows us to connect to another Windows computer from a remote location. All you need is the device’s username and password. As long as you have a solid connection, you can connect to any computer no matter where in the world it’s located.
Unfortunately, there are certain things that can prevent you from connecting via remote desktop. In this article, we’re going to explore the most common problems that prevent you from setting a remote connection and how to solve them.
Common Reasons Why Remote Desktop Can’t Find the Computer
Before you start applying any of our solutions, you should be aware of the most common causes and try to identify which one is the culprit. Some of them are extremely easy to solve without any tech know-how.
1. Bad Internet Connection
Make sure your internet connection is set up properly.
2. Windows Updates
In some cases, a Windows update can prevent the Remote Desktop from working as it should. This is due to corrupt files. Finding the specific update that conflicts with RDP can be challenging and you’ll have to manually look for the cause. You might be dealing with a Windows update error.
3. Antivirus Blocks RDP
If you’re using a third-party antivirus in addition to Windows Defender, it might be blocking the remote desktop connection. However, Windows Defender can also cause the “remote desktop can’t connect to the remote computer” error if it’s not properly configured.
The easiest way to find out if the antivirus is to blame is to disable it. If RDP starts working as a result, then you’ve found the issue.
4. Remote Machine Is Turned Off or Disconnected
It could be as simple as your remote machine being turned off. Make sure the remote computer is turned on and available on the network. Additionally, remote access has to be enabled as well.
5. Wrong Credentials
Make sure you have the correct hostname. A simple typo can prevent you from connecting to the remote computer.
How to Fix Remote Desktop Can’t Find the Computer
If you can’t identify the cause behind the “remote desktop can’t find the computer” error, start applying the solutions below step-by-step.
1. Configure Your Firewall
If you disabled your antivirus and that solved the error, you need to configure it to stop blocking RDP. You shouldn’t leave your computer unprotected. For the sake of this guide, we’re going to assume you’re using Windows Defender that comes with every Windows 10 system. However, you can easily adapt the following steps to any other antivirus. The essentials are the same.
Start by accessing the Windows Defender Firewall. You can find it in the Control Panel or you can simply type “Windows Defender” in the search box.
On the left side of the screen, choose “Allow an app or feature through Windows Defender Firewall.” You will see a list of applications and ports that are allowed or blocked to pass through the firewall.
To change the settings you first need to click on the “Change settings” button in the top right corner. Then scroll down to find Remote Assistance and Remote Desktop. Click on both Private and Public checkboxes to allow these apps to go through the firewall.
If the firewall was the problem, you should be able to connect to the remote computer. Otherwise, try applying one of the fixes below.
2. Enable RDP Services
You won’t be able to connect to a remote machine if any of the remote desktop services are disabled. Make sure the following services are enabled on both machines:
- Remote Desktop Services (TermService)
- Remote Desktop Services UserMode Port Redirector (UmRdpService)
To check, press CTRL + ALT + DELETE to launch the Task Manager. Click on Services and scroll until you find the two services.
They should be running by default, but if they’re not, you can restore them through the command prompt. Open the command prompt and type the following command for Remote Desktop Services:
sc config TeamService start = demand
If the Remote Desktop Services UserMode Port Redirector is not running, then type the following command:
sc config UmRdpService start = demand
Remember that these services have to be running on both computers.
3. Clear DNS Cache
If the “Remote desktop can’t find the computer” error persists, you should flush the DNS cache. Open the command prompt and type the following line in the console:
ipconfig /flushdns
Press Enter and try connecting to the remote computer. If the error appears, try the next solution.
4. Reset Credentials
When you connect to a remote machine, the credentials you used in the past might be automatically applied. This can cause issues if they’re no longer valid or matching with the desktop you’re trying to connect to.
Open the Remote Desktop Connection app, and insert the correct IP address of the computer you’re trying to connect to. Alternatively, you can manage your credentials from the User Accounts panel that you can find in the Control Panel. Make the necessary changes, double-check, and save.
5. Clear the Connections History Using the Windows Registry
Sometimes, the Remote Desktop Connections cache is what’s causing the error. Try clearing the connections history from the Windows Registry.
Open the Registry Editor by typing “registry editor” in the search box and launching the app. Alternatively, you can use the “Run” dialog window and type “regedit.”
Go to the Terminal Server Client folder and delete any MRU entries you find. If you’re having difficulties finding the folder, go to Edit, select Find, and type “Terminal Server Client” in the search box.
In this case, there are no MRU entries to delete. If there are any, you will see them in the right panel. To remove them, right-click on them and select the Delete option.
6. Check the RDP Port
While you’re inside the Registry Editor, you should check the listener port that the RDP uses. By default, port 3389 is used. However, if another application is using the same port, you’ll get the “remote desktop can’t find the computer” error.
Open the Registry Editor and go to the RDP-Tcp directory. You can use the Find function inside the Edit tab to save time looking for it.
Search for PortNumber and check the number of the listener port as seen in the image above. As mentioned, 3389 should be the default. Let’s change it to 3388 instead, to see if we can connect to the remote machine using a different port.
To modify the port number, right-click on PortNumber and choose Modify. This opens the editing window.
By default, you will probably see “d3d” in the data field. That’s just hexadecimal for port number 3389. To change that number, switch to decimal by ticking the Decimal option. Then type 3388 in the value data field. Now try connecting to the remote computer.
7. Check the Network Properties
The Remote Desktop application sometimes doesn’t like public networks and blocks them for safety reasons. Check your network settings and make sure to set the profile to private.
Open the Settings application and go to Network & Internet. Click on Status and select Properties in the right panel.
Under Network Profile, choose Private.
Try to connect to the remote computer once again.
Connecting with Remote Desktop
We hope that one of these solutions worked for you. The “Remote desktop can’t find the computer” error is quite common because so many issues can cause it. The best thing to do is go one solution at a time until you find the one that works. Let us know which fix worked for you in the comments below.