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

  • 9

If you want to allow or whitelist only a specific IP address on a port, you can enable using this article.

For instance, you only want to allow your local IP Address to connect to your RDP port. By doing this, you can easily restrict your server's access to your local IP address only and disallow all other IP addresses from connecting to your server.

 

You can also grant access to the same IP address to multiple ports on the same server. 

 

By limiting access to specific IPs, the security of your servers can be improved.

Find the step-by-step guide to enable 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.

    Protocols-and-Ports

  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.

    Allow-ports-Specific-IP-Addreses-Profile-options

  3. Click Next Button.

  4. In the final step, you need to provide the Name of this Rule. (eg. Remote Desktop - IP Restriction Rule)

  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

chat