Sometimes it’s becomes necessary to change RDP port for critical application servers. due to security requirements or other company policies.
Here are steps to change RDP port on Windows 2016 Server:-
- Open Registry Editor. You can do this by going to either the Start screen or Command Prompt and typing regedit.
- Browse to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp.
- Under PortNumber on right hand side pane, change it to 4822
- Restart the server.
Now you can try with normal RDP and it will not allow you to login as by default RDP port 3389. Just put new port after servername or IP address and you will be able to login (For e.g. testserver1:4822)
Note:- If you still not able to login then have a look on windows firewall and add new firewall rule to allow new port on server.