I enabled RDP, set static IP address, created a local administrator account and made sure remote management was enabled. I can ping the server fine. On the client machine thats running Windows 10 I open up Remote Desktop and type in the IP address and the serverName\localAdmin. When I click connect it loads for a bit and then comes back with the 'Remote Desktop can't connect to the remote computer' error.
Is there something that I'm missing? None of the devices are on a domain.
So I found some info in regards to the issue I was having. Like suggested it is a firewall issue and for future users these are the commands I ran to disable the firewall and then add in some rules afterwards.
Powershell
Command Prompt
The error you are seeing sounds to me like a firewall issue. Check the local firewall on the server you are trying to connect to via RDP. It will likely need a rule added for TCP 3899. Another way you could test this would be to temporarily disable the local firewall for the proper profile (Domain, Private, or Public) and try the connection again. If it works, you know you need to add a firewall exception. Just make sure to enable the firewall again for the profile you just disabled.
Since there isn't much information about the overall network environment you are working in, make sure there are no other hardware firewalls in between you and the server.
in some systems
you need to execute the below line:
before: