---
title: 'How to grant access to Windows Server by IP or IP range | Zomro'
description: 'In this article, we will learn how to provide access to Windows Server on a specific IP or range of IP addresses.'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55%40server-panel.net/2023/04/29/image-20230429223101-1.jpg'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * How to grant access to Windows Server by IP or IP range 



# How to grant access to Windows Server by IP or IP range

12-04-2023

To provide additional security for Windows Server, it is recommended to restrict access to the server. This can be done in several ways, the easiest and fastest is to allow access to the server only from a specific IP or range of IP addresses. We implement this using the built-in server protection system - firewall (or firewall).

Before configuring access via IP, please note that changing your external IP from which access will be allowed will block access to the server via RDP. In this case, you need to know how to connect to the server directly via VNS (how to connect to the server via VNC) and fix the situation.

Let's get started:

1\. Connect to the server via RDP

2\. Open the Server Control Panel

![How to grant access to Windows Server by IP or IP range - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55%40server-panel.net/2023/04/29/image-20230429223101-1.jpg)

3\. Go to the section System and security.

![How to grant access to Windows Server by IP or IP range - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55%40server-panel.net/2023/04/29/image-20230429223353-2.jpg)4\. Next - "Windows Firewall"

![How to grant access to Windows Server by IP or IP range - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55%40server-panel.net/2023/04/29/image-20230429223732-3.jpg)

5\. On the right, in the menu list, select "Advanced settings"

![How to grant access to Windows Server by IP or IP range - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55%40server-panel.net/2023/04/29/image-20230429224054-4.jpg)

6\. In the window that opens, select from the menu on the right "Inbound Rules"

![How to grant access to Windows Server by IP or IP range - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55%40server-panel.net/2023/04/29/image-20230429224557-1.jpg)

7\. In the list of rules, you need to find the rule called "Remote Desktop - User Mode (TCP-In)" and select its Properties

![How to grant access to Windows Server by IP or IP range - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55%40server-panel.net/2023/04/29/image-20230429225238-2.jpg)

8\. In the properties window of this rule that opens, in the "Scope" tab, you can specify a specific IP or IP range from which connection to the server via RDP is allowed. To do this, in the section "Remote IP address" select "These IP addresses and click "Add" 

![How to grant access to Windows Server by IP or IP range - 7](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55%40server-panel.net/2023/04/29/image-20230429231021-3.jpg)

9\. To specify a specific IP (or subnet), select "This IP address or subnet"

![How to grant access to Windows Server by IP or IP range - 8](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55%40server-panel.net/2023/04/29/image-20230429231346-4.jpg)

To specify an IP range, select "This IP adddress range"

![How to grant access to Windows Server by IP or IP range - 9](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55%40server-panel.net/2023/04/29/image-20230429231930-5.jpg)

10\. Press the OK button to apply the settings.

Please note: by default, when connecting to the server via RDP, TCP and UDP protocols are used. But there may be a situation that one of the protocols (usually unstable UDP) is disabled. In this case, you need to change the properties of the rule whose protocol is used to connect. For example, by default, these are two rules: "Remote Desktop - User Mode (inbound TCP traffic)" and "Remote Desktop - User Mode (inbound UDP traffic)"

Thus, we have learned to restrict access to a server running the Windows Server operating system by IP address or range of IP addresses.

Similar articles:

[No load in Windows Task Manager 2019 - CPU 0%](https://zomro.com/blog/faq/431-net-nagruzki-v-dispetchere-zadach-windows-2019) [Installing and configuring the Squid proxy server in Linux.](https://zomro.com/blog/faq/377-installing-and-configuring-the-squid-proxy-server-in-linux) [Midnight Commander file manager](https://zomro.com/blog/faq/207-fajlovyj-menedzher-midnight-commander) [Enabling HTTP2 in ISPmanager](https://zomro.com/blog/faq/202-vkljuchenie-http2-v-ispmanager) [How to run 24/7 YouTube live stream on linux](https://zomro.com/blog/faq/213-kak-zapustit-kruglosutochnuju-transljaciju-youtube-na-linux)

[ Premium Cloud VPS from €7.95/mon ](/premium-vps)
