Guide to blocking Ports and IPs on Windows Server 2012 simply and effectively

VPTS Team Content has been moderated
Published date:1/4/2025 Update:1/4/2025 Views:171 Reviews: 4.7/564reviews
VPTS on

https://www.youtube.com/watch?v=wOxNjcy92kU During server system administration and operation, especially on systems running Windows Server 2012, blocking Ports and IPs is...

During the management and operation of server systems, especially systems using Windows Server 2012, blocking Ports and IPs is an important step to control traffic and enhance security. Incorrectly configured ports and IP addresses can be vulnerabilities exploited by hackers.

However, not everyone knows how to block ports and IPs on Windows Server effectively, especially beginners. Some common errors users encounter include:

  • Unsure which exact port is being exploited or needs to be blocked.
  • Misconfigured rules negatively affect connections to legitimate services.
  • Unsure how to add or exclude a specific IP from the access list.
  • Complex management interface, prone to confusion between Inbound and Outbound Rules.
Don't worry,VPTS will accompany you in a detailed step-by-step guide to blocking Ports and IPs on Windows Server 2012. With simple, easy-to-perform actions and no external software required, you can proactively enhance your system's security in just a few minutes. Whether you are a beginner or experienced, this article will definitely give you maximum support!

Why block Ports and IPs on Windows Server 2012 R2

  • Prevent attacks from outside
  • Minimize the risk of DoS attacks
  • Control Access from Unknown Users
  • Ensure Data Safety&Services

Guide on How to Block a Port

Step 1:open Control Panel, then navigate to and click on Administrative Tools – where powerful administration tools for your system are assembled.Block Port

Step 2:Find in the list and select Windows Firewall with Advanced Security.

Illustration Guide on how to block Ports

Step 3:In the right menu, click New Rule

Illustration Guide on how to block Ports - step 2

Step 4:Select Port and click Next

Illustration Guide on how to block Ports - step 3

Step 5:Continue by selecting TCP, entering the port you want to block, and clicking Next

Illustration Guide on how to block Ports - step 4

Step 6:Select Block the connection. Then, click Next to continue.

Illustration Guide on how to block Ports - step 5

Step 7:Check all boxes and click Next

Illustration Guide on how to block Ports - step 6

Step 8:Next, in the Name section, enter any rule name and click Finish.

Illustration Guide on how to block Ports - step 7

Step 9:Repeat steps 3 through 8 for Outbound Rules.

Illustration Guide on how to block Ports - step 8

Guide on How to Block an IP

Step 1:Similar to steps 1, 2, and 3 of port blocking

Step 2:Select Rule Type, this time choose Custom and click Next

block IP

Step 3:Continue by selecting All programs and clicking Next.

Illustration Guide on how to block IPs

Step 4:At the Protocol and Ports step, leave defaults intact and click Next.

Illustration Guide on how to block IPs - step 2

Step 5:At the Scope step, under Which remote IP addresses does this rule apply to?, select These IP addresses. Click Add and enter the IP address you want to block, then click OK

Illustration Guide on how to block IPs - step 3

STEP 6:Select Action, Profile, name the Rule, and repeat the following steps as when blocking ports to complete.

A few notes from VPTS

  • Do not block system ports if you are unsure — this may cause connection loss or service errors.
  • Clearly note rule names to avoid confusion later.
  • VPTS always advises customers to regularly review logs and monitor connections to the server to detect anomalies in a timely manner.
  • Prevention is better than cure – Proactively blocking hazardous ports/IPs not only ensures stable system operations but also improves early threat resilience.

CONCLUSION

Blocking ports and IPs is one of the simplest yet most crucial steps to protect Windows Server 2012 servers from security risks. With just a few steps in Windows Firewall with Advanced Security, you can prevent unauthorized access, protect critical services, and reduce the risk of external attacks.

As a leading provider in network infrastructure and system security,VPTSalways accompanies customers in configuring and optimizing server security. If you need assistance with firewall configuration, security monitoring, or in-depth consulting, do not hesitate to contact the VPTS technical team for prompt, professional support.

VPTS – Comprehensive Digital Infrastructure Solutions Provider

VPTS is a digital infrastructure solution provider in Vietnam, serving deployment, operation, and data storage needs for individuals, developers, and enterprises. The service ecosystem includesVietnam VPS, International VPS, VPS Anti DDoS, Hosting cPanel, dedicated server, Rack rental, Proxy IPv4/IPv6, S3 MinIOandCloud Storage.

Besides providing infrastructure resources, VPTS also focuses on assisting customers with deployment, configuration, and practical troubleshooting. Content on the VPTS Blog is drawn from common scenarios in operating VPS, servers, and online systems, helping readers understand root causes and apply clear solutions.

VPTS – Stable infrastructure, flexible solutions, and continuous partnership throughout operations.

VPTS Team Contact Information