How to configure the Windows Firewall to allow only specific IP Address to connect your ports? Print

  • 4

You can allow or whitelist only specific IP Addresses on the required ports.

Suppose you have allowed only your local system IP Address to connect to the RDP port. It means that you can connect your server via RDP from your local system only. No other IP Address can connect the server via RDP.

You can allow other service ports on specific IP Addresses as well. It provides more security to the services you have configured on your server.

Here, we have mentioned the complete steps that will guide you to open the ports for a specific IP address on your Windows VPS or Dedicated Server. 

  1. Login to the server using RDP. Please refer to how to connect VPS using RDP from the different OS for more details.

  2. Click on Start >> Administrative tools >> Windows Firewall with Advanced Security.

  3. Go to Inbound Rule >> New Rule

  4. Click on Custom and on the next page select All Programmes.

    Firewall-New-rule All-Programmes-firewall

  5. You are at Protocol & Ports wizard.

  • select the Specific Port option for the Remote Port and enter the port number and click Next.

  • Here, we have used Non-standard RDP Port 5000.


  1. You will need to enter the Remote IP Address by which you want to connect your port.

  • Click on the Add Button and enter the IP Address and click Ok and Next.

    Remote-IP-Address Added-Remote-IP-Address

  1. Select Allow the connection option and click Next.

  2. On the Profile Page, select all three options. Domain, Private and Public.


  3. Click Next Button.

  4. In the Last step, We need to provide the Name of this Rule. (eg. Remote Desktop)

  5. Click on the Finish button.

→ Looking to block IP or IP range on windows firewall? Please refer to Block IPs in Firewall for more details. 

→ Looking to enable PING/ICMP on windows server? Please refer to Enable Ping for more details.

→ Looking to open firewall port on windows? Please refer to open firewall port for more details.

→ Looking to know about recommended ports in windows firewall? Please refer to recommended firewall port for more details.

Was this answer helpful?

« Back
Sign up for a newsletter