1. Home
  2. Knowledge Base
  3. How to only allow connections from specified IP addresses

How to only allow connections from specified IP addresses

In this article, we will go over how to only allow connections from specified IP addresses or a range of IP addresses which will further increase the security of your Windows VPS. To do this, we will need to modify the scope of the Windows Firewall rules.


1. To start, log into your Windows Server and use the Windows search function to search and open

2. In the Windows Defender Firewall window, click Inbound Rules on the left-hand menu.

3. Next, in the middle window under Inbound Rules scroll down and locate Remote Desktop – User Mode (TCP-In), once you have located it right click it and click Properties.

If you’ve previously changed your RDP port, right-click the rule you created for the new port instead of Remote Desktop – User Mode (TCP-In) and click Properties.

Navigating to TCP-in in the inbound rules to limit connections to specified IP addresses.

4. In the Remote Desktop – User Mode (TCP-In) properties window, navigate to the Scope tab.

Navigating to the scope of Remote Desktop TCP-In to limit connections to specified IP addresses.

5. On the Scope tab, check the button next to These IP addresses: under the Remote IP address section, then click Add as seen below.

Adding Remote IP Addresses to limit connections to specified IP addresses.

6. In the next window, you will be presented with the following options:
This IP address or subnet: Enter the IP address from which you will be connecting to the VPS with.
This IP address range: In the From field you’ll enter the start of the range, and the end of the range in the To field.

Once done, click OK to finalize the changes.

If you’d like to do multiple IP addresses or IP address ranges, repeat steps 5 and 6.

Entering IP addresses to limit connection to specified IP addresses only.

7. Lastly, click Apply to complete and save the changes. We’ve successfully limited connections to the VPS from specified IP addresses or IP address ranges.

Updated on January 26, 2023
Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT