I've recently encountered an issue with Remote Desktop Connection that stumps me. I have two Windows computers on the same Wi-Fi network. Until recently, I could connect without problems, but now I'm getting the following error:
Remote Desktop can't connect to the remote computer for one of these reasons:1) Remote access to the server is not enabled2) The remote computer is turned off3) The remote computer is not available on the network
Here's what I've tried so far:
Client Side: (cmd)
Ping Test:
ping 192.168.2.32
Result:
Request timed out.
Port Test: (powershell)
Test-NetConnection -ComputerName 192.168.2.32 -Port 3389
Result:
WARNING: TCP connect to (192.168.2.32 : 3389) failedWARNING: Ping to 192.168.2.32 failed with status: TimedOutTcpTestSucceeded : False
Server Side:
IP Configuration: (cmd)
ipconfig
Result (Wi-Fi adapter details):
IPv4 Address. . . . . . . . . . . : 192.168.2.32Subnet Mask . . . . . . . . . . . : 255.255.255.0Default Gateway . . . . . . . . . : 192.168.2.254
Remote Desktop Service Status: (PowerShell)
Get-Service -Name TermService
Result:
Status Name DisplayName------ ---- -----------Running TermService Remote Desktop Services
Firewall Rule Creation: (PowerShell)
New-NetFirewallRule -DisplayName "Remote Desktop - User Mode (TCP-In)" -Direction Inbound -Protocol TCP -LocalPort 3389 -Action Allow -Profile AnyNew-NetFirewallRule -DisplayName "Remote Desktop - User Mode (UDP-In)" -Direction Inbound -Protocol UDP -LocalPort 3389 -Action Allow -Profile Any
Despite this, Get-NetFirewallRule -DisplayGroup "Remote Desktop"
returns no results, and the connection tests fail. Here are the full command outputs:
Get-NetFirewallRule : No MSFT_NetFirewallRule objects found with property 'DisplayGroup' equal to 'Remote Desktop'. Verify the value of the property and retry.At line:1 char:1+ Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Where-Object { $ ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : ObjectNotFound: (Remote Desktop:String) [Get-NetFirewallRule], CimJobException+ FullyQualifiedErrorId : CmdletizationQuery_NotFound_DisplayGroup,Get-NetFirewallRule
What I Need:
I'm seeking help diagnosing and resolving this issue using CMD/batch or PowerShell. What additional diagnostic steps can I take? How can I ensure the Remote Desktop is configured correctly and listening to the correct port?