Windows Server Core 2022 Tips & Tricks – How to change RDP port number and Block old port
Support the channel : (any donation are appreciated) , god bless.
https://paypal.me/ITwizard0?country.x=GB&locale.x=en_GB
https://www.patreon.com/ITWIZ
Block RDP port number 3389 :
wf.msc
Inbound
Block 3389
CHANGE RDP PORT :
HKEY_LOCAL_MACHINESystemCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp
After that, double-click on the PortNumber in the RDP-TCP folder.
Select the Decimal option in the Edit DWORD(32-bit) value box and type a new port number.
NOW ALLOW THIS PORT ON FIREWALL :
wf.msc
Inbound
windows server