Remote Desktop error 0x104 occurs while trying to connect to the target system on the same or a different network.
Here at Bobcares, we have seen several such Windows-related errors as part of our Server Management Services for web hosts and online service providers.
Today we’ll take a look at the causes for this error and see the fix.
What causes remote desktop error 0x104 to occur
This error message indicates that “We couldn’t connect to the remote PC because the PC can’t be found. Please provide the fully-qualified name or the IP address of the remote PC, and then try again”.
Normally, the error message varies depending upon different scenarios. But often it occurs due to the following reasons.
- The network discovery option is turned off in the Sharing options.
- By default for RDP connections, Remote Desktop uses the 3389 port. In case, if it is blocked by Windows Firewall then it is not possible to establish a connection.
- Some custom DNS servers might also create an issue.
For instance, the error appears as below.
How we fix the remote desktop error 0x104
Now let’s take a look at how our Support Engineers resolve this error for our customers.
Solution 1: Turn on Network Discovery
Network Discovery helps in determining whether the system can see/scan other systems on the network or not. We make sure this option is turned on to establish an RDP connection. Here is how we do it:
1. First, we open the Control Panel.
2. Next, we go to Network and Internet > Network and Sharing Center.
3. Then, on the left-hand side, we click on ‘Change advanced sharing settings’.
4. After that we expand the network profile that we are currently using and select ‘Turn on network discovery’.
5. Finally, we click Save Changes.
Solution 2: Allow Port 3389 Port through Firewall
By default for RDP connections, Remote Desktop uses the 3389 port. In case, if it is blocked by Windows Firewall then we won’t be able to make a connection. Also, we ensure to set a strong password and username for connection to avoid malicious attackers. Here is how we allow the port through the firewall:
1. First, we open up the Start Menu by pressing the Windows Key.
2. Next, we type in Remote Settings and hit Enter. This will open up the System window.
3. Then we click on Remote settings that is present on the left-hand side.
4. Under Remote Desktop in the Remote tab, we make sure ‘Allow remote connections to this computer’ is selected.
5. Now, we open the Control Panel.
6. Here we go to ‘System and Security’ >> ‘Windows Defender Firewall’.
7. Then we click on ‘Advanced settings’ that is present on the left-hand side.
8. Now, we select ‘Inbound Rules’ and then search for Remote Assistance (RA Server TCP-In). We make sure it is enabled.
9. Now we look for ‘Remote Desktop – User Mode (TCP-In and UDP-In)’. We make sure they are enabled and 3389 is the port.
11. Finally, we try establishing a connection again.
Solution 3: Clear Custom DNS Servers
We clear the custom DNS server(s) before establishing a remote connection. This applies to both the host and target system. Here is how we do it:
1. First, we right-click on the Network icon in the taskbar and select Open Network and Internet settings.
2. Next, we click on ‘Change adapter options’.
3. After that, we right-click on the adapter and select Properties.
4. Here we highlight Internet Protocol Version 4 and select Properties.
5. Also, we make sure that the ‘Obtain DNS server address automatically’ is selected.
6. Finally, we click OK and try connecting again.
Solution 4: Enable Remote Desktop settings
Here are the steps that we follow to check whether the Remote desktop settings are enabled on the computer or not.
1. First, we press Windows key+I.
2. After that, we go to the “System“.
3. On the left-hand side, when the System window appears, we scroll down to choose the “Remote Desktop“.
4. On the right side, we check if the “Enable Remote Desktop” is switched to “ON” or not.
Solution 5: Make Sure That All Computers Use the Same Type of Network Profile.
1. First, we click on the network icon in the taskbar.
2. Next, we connect to any preferrable network.
3. Then we click on Properties.
4. In the Settings for All PCs window, we select Public or Private.
5. Now finally, we try to see if this solves the problem.
Solution 6: Run SFC scan in PowerShell (Admin)
1. Press Win+X >> select PowerShell (Admin).
2. Next, we type the below command and press Enter.
3. It takes some time for the process to complete. Then we check if the issue persists.
[Need any further assistance in fixing Windows errors? – We are here to help you]
In short, this error occurs while trying to connect to the target system on the same or a different network. Today, we saw the solution provided by our Support Engineers.