RDP (Remote Desktop Protocol) — is a Microsoft proprietary protocol that enables remote connections to other computers.

To configure, open «Control Panel → System and Security».

file

file

Next, go to the «Windows Defender Firewall» menu.

file

Let's go to the«Advanced Settings» menu.

file

In the window that appears, select Inbound Rules.

file

Next, we find the active rule «Remote Desktop - User Mode (TCP-in)».

file

In Properties of this rule there is the Scope tab where you can specify addresses or address ranges from which you will be able to connect via RDP. In order to filter external connections by IP addresses, you will need to add into the Remote IP address list all IP addresses, address ranges and subnets from which you will allow RDP connections to this computer.

file

file

After adding each desired IP address, press OK to make changes.

Updated Oct. 22, 2021