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

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.

    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 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.

Related Articles

How to Set Custom php.ini file on my Web Hosting Service?

Sometimes you are required to set custom php environmental variables or update php settings for...

What are the benefits of installing windows updates?

Windows Update, a service offered by Microsoft, provides updates for Windows components. Let's...

How to Install Desktop Experience On Windows Server?

The Desktop Experience feature makes your Window VPS look like local your Windows 7 desktop. The...

How Do I Point My Websites to VPS?

This article will guide you to point your websites to VPS. You can point your websites to VPS in...

Can I Monitor and Login To User's Account As SmarterMail Administrator?

Yes, you can monitor and login to user's mailboxes as SmarterMail administrator using Impersonate...

  • 4 Users Found This Useful

Was this answer helpful?