Open port 25 Windows server 2022

Opening ports for communication are essential because all the inbound and outbound traffic communicates through the ports. The firewall blocks the access for the sake of security. There is a number of ports that are dedicated for specific purposes but here we are going to learn about port 25.

Open port 25 Windows server 2022

Port 25 is dedicated for an email communication if in case you cannot send an email or receive an email then try troubleshooting the port.

This tutorial is focused on enabling port 25 but you can open any port following the same steps but do confirm the port details on the internet. Without confirming the details of the port you may configure the wrong port and a data storm may occur on your system. Let’s get started.

1. Open control panel and select ‘windows defender firewall’.

2. A window will pop up and select ‘advanced settings’.

Open port 25 Windows server 2022

3. Another window will pop up, click on ‘inbound traffic’ and next.

Open port 25 Windows server 2022

4. From the right side select new rule.

5. From the list select port and next.

Open port 25 Windows server 2022

6. Select TCP and enter 25 in ‘local specific port’ space and next.

Open port 25 Windows server 2022

7. Select ‘allow connection’ and next.

Open port 25 Windows server 2022

8. Check all the domains while applying the rue and click next.

Open port 25 Windows server 2022

9. Give a name of your own choice that you can remember while checking next time, then click “Finish“.

Open port 25 Windows server 2022

Now you may return to the inbound rules and check the port that you have enabled with the same name as you have assigned, for this.

Note: Here that the same settings are applicable to the server and the system. Do not open any port without confirming the purpose. By troubleshooting port 25 you may now be able to send and receive an email.

Abdelrahman Reda is a Motivated Support Engineer with 6+ years of corporate and consumer support experience. His experience related to administration of Network, NOC support, computers and anti-virus server, data entry, networking sites, remote support.

Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Create an Outbound Port Rule

  • Article
  • 10/25/2022
  • 2 minutes to read
  • Applies to:✅ Windows 10, ✅ Windows 11, ✅ Windows Server 2016, ✅ Windows Server 2019, ✅ Windows Server 2022

In this article

By default, Windows Defender Firewall allows all outbound network traffic unless it matches a rule that prohibits the traffic. To block outbound network traffic on a specified TCP or UDP port number, use the Windows Defender Firewall with Advanced Security node in the Group Policy Management console to create firewall rules. This type of rule blocks any outbound network traffic that matches the specified TCP or UDP port numbers.

Administrative credentials

To complete these procedures, you must be a member of the Domain Administrators group, or otherwise be delegated permissions to modify the GPOs.

To create an outbound port rule

  1. Open the Group Policy Management Console to Windows Defender Firewall with Advanced Security.

  2. In the navigation pane, click Outbound Rules.

  3. Click Action, and then click New rule.

  4. On the Rule Type page of the New Outbound Rule wizard, click Custom, and then click Next.

    Note:  Although you can create rules by selecting Program or Port, those choices limit the number of pages presented by the wizard. If you select Custom, you see all of the pages, and have the most flexibility in creating your rules.

  5. On the Program page, click All programs, and then click Next.

  6. On the Protocol and Ports page, select the protocol type that you want to block. To restrict the rule to a specified port number, you must select either TCP or UDP. Because this rule is an outbound rule, you typically configure only the remote port number.

    If you select another protocol, then only packets whose protocol field in the IP header matches this rule are blocked by Windows Defender Firewall. Network traffic for protocols is allowed as long as other rules that match don't block it.

    To select a protocol by its number, select Custom from the list, and then type the number in the Protocol number box.

    When you've configured the protocols and ports, click Next.

  7. On the Scope page, you can specify that the rule applies only to network traffic to or from the IP addresses entered on this page. Configure as appropriate for your design, and then click Next.

  8. On the Action page, select Block the connection, and then click Next.

  9. On the Profile page, select the network location types to which this rule applies, and then click Next.

  10. On the Name page, type a name and description for your rule, and then click Finish.

Feedback

Submit and view feedback for

How do I open port 25 on a Windows server?

Method 1 of 2: Click the "Start" button and choose "Control Panel." Click "Windows Firewall" and then click the tab titled "Exceptions." Choose "Add Port." In the text box marked "Name," enter the name of your email server. Type the number "25" in the text box named "Port."

How do I open a port on Windows server 2022?

#2) Type Windows Firewall..
#3) Click on Windows Firewall. #4) Click on Advanced Settings..
#5) Go to Inbound Rules. #6) Go to the right-hand side pane..
#7) Select New Rule. #8) Click Port..
#9) Select Next. #10) Select the Type of Port TCP or UDP..
#13) Hit Next. ... .
#15) Click on Next. ... .
#17) Click Next. ... .
#19) Click on Finish..

How do I allow port 25 through my firewall?

Follow the steps:.
Open Windows Defender Firewall..
Go to Advanced settings..
Select Inbound rules..
Create a New rule....
Choose Port rule..
Select TCP..
Specify the local ports: Enter "25" into the textbox..
Enable "Allow the connection".

Should I open port 25?

Web servers are favored by spammers because they are relatively powerful, and because the network connection to most web servers is fast and reliable. By leaving port 25 unmonitored and open, web hosting providers are at risk of enabling spammers within their network to run wild with huge volumes of spam traffic.