To restrict RDP connections to Dedicated Server and/or VPS on Windows Server 2012, 2016, 2019 & 2022 you will need to perform the following steps:
- Press the Windows + X key combination.
- Write "controlfirewall.cpl" (without quotes) and then select "Ok".
- Select "Advanced Settings".
- Select "Inbound Rules" and then "Remote Desktop".
- Select "This IP Address" and "Add".
- Select "This IP Address or Subnet", fill with the desired IP and then "Ok".
- Make sure the IP was added and then "Apply".