{"id":179498,"date":"2025-08-04T10:53:56","date_gmt":"2025-08-04T14:53:56","guid":{"rendered":"https:\/\/pureinfotech.com\/?p=179498"},"modified":"2025-08-04T13:03:26","modified_gmt":"2025-08-04T17:03:26","slug":"open-firewall-port-windows-11","status":"publish","type":"post","link":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/","title":{"rendered":"How to open a firewall port on Windows 11"},"content":{"rendered":"<ul class=\"sum\">\n<li>To open a Windows firewall port, open the <strong>&#8220;Windows Defender Firewall with Advanced Security&#8221;<\/strong> console.<\/li>\n<li>Then click on <strong>&#8220;Inbound Rules&#8221; <\/strong>or <strong>&#8220;Outbound Rules,&#8221;<\/strong> click on <strong>&#8220;New Rule,&#8221;<\/strong> and select the <strong>&#8220;Port&#8221;<\/strong> option.<\/li>\n<li>Continue selecting the protocol and the port number to open on Windows 11, allow the connection, choose the network profile to apply the rules, and save the changes.<\/li>\n<li>You can also open one or multiple ports using commands with PowerShell and Command Prompt.<\/li>\n<\/ul>\n<p>On <a href=\"https:\/\/pureinfotech.com\/tag\/windows-11\">Windows 11<\/a>, the <strong>Microsoft Defender Firewall<\/strong> is a built-in security feature that helps protect your device by controlling network traffic, blocking unauthorized access from the outside, and preventing suspicious apps from connecting to the internet.<\/p>\n<p>The firewall works as a gatekeeper, monitoring all incoming and outgoing network requests. When an app or service tries to access the network, Microsoft Defender Firewall (also referred to as the &#8220;Windows Firewall&#8221;) checks its rules database to determine whether to allow or block the connection. If no rule exists, Windows 11 will prompt you to grant or deny access manually.<\/p>\n<p>In some cases, trusted apps (such as SQL Server) may not function correctly because the firewall is blocking them. When that happens, you must create a custom inbound or outbound rule to allow network access and restore functionality.<\/p>\n<section class=\"custom-related-posts-wrapper\"><span class=\"custom-related-posts-heading\">Related<\/span><div class=\"custom-related-posts-container\"><a href=\"https:\/\/pureinfotech.com\/open-port-firewall-windows-10\/\" class=\"custom-related-post-item\" data-umami-event=\"related_inpost_clicked\" data-umami-event-name=\"How to open firewall port on Windows 10\"><div class=\"custom-related-post-thumbnail\"><img src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/07\/windows-10-open-firewall-port-hero.webp?fit=300%2C187&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"How to open firewall port on Windows 10\" decoding=\"async\" loading=\"lazy\" \/><\/div><span class=\"custom-related-post-title\">How to open firewall port on Windows 10<\/span><\/a><\/div><\/section>\n<p>In this <a href=\"https:\/\/pureinfotech.com\/tag\/how-to\/\">guide<\/a>, I&#8217;ll teach you the steps to open a port to allow an app to communicate outside the network using the Windows 11 firewall.<\/p>\n<ul class=\"toc\">\n<li><a href=\"#open_port_firewall\">Open a firewall port on Windows 11<\/a><\/li>\n<li><a href=\"#close_port_firewall\">Close a firewall port on Windows 11<\/a><\/li>\n<\/ul>\n<div id=\"tip-box\"><span><strong>Important:<\/strong> Before creating a firewall rule, check the app&#8217;s official support page to identify the required <strong>port numbers and protocol types (TCP or UDP)<\/strong>. You can also quickly verify if a blocked port is the issue by <strong>temporarily disabling the firewall<\/strong>. If the app works while the firewall is off, it confirms that you need to create a custom rule to allow the connection. Re-enable the firewall immediately afterward.<\/span><\/div>\n<h2 id=\"open_port_firewall\">Open a firewall port on Windows 11<\/h2>\n<p>Using the default firewall, you can create an inbound or an outbound rule, depending on the app requirements, using the Advanced Security console, Command Prompt, or PowerShell.<\/p>\n<h3>Create a firewall rule from Advanced Security<\/h3>\n<p>To open one or more ports in the Windows firewall, follow these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Windows Security<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Click on <strong>Firewall &amp; network protection<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Click the <strong>Advanced settings<\/strong> option.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-151213\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/07\/windows-firewall-advanced-settings-open.webp?resize=827%2C467&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Windows firewall advanced settings\" width=\"827\" height=\"467\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/07\/windows-firewall-advanced-settings-open.webp?w=889&amp;quality=78&amp;strip=all&amp;ssl=1 889w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/07\/windows-firewall-advanced-settings-open.webp?resize=300%2C169&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/07\/windows-firewall-advanced-settings-open.webp?resize=150%2C85&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<li>\n<p>(Option 1) Select <strong>Inbound Rules<\/strong> from the left navigation pane to create a rule to allow incoming traffic into the device.<\/p>\n<\/li>\n<li>\n<p>(Option 2) Select <strong>Outbound Rules<\/strong> from the left navigation pane to create a rule to allow the traffic from the app to leave the device.<\/p>\n<\/li>\n<li>\n<p>Click the <strong>New Rule<\/strong> option in the right pane under the &#8220;Actions&#8221; section.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179506\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/advanced-security-new-rule-option.webp?resize=827%2C396&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Microsoft Defender firewall new Inbound rule\" width=\"827\" height=\"396\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/advanced-security-new-rule-option.webp?w=889&amp;quality=78&amp;strip=all&amp;ssl=1 889w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/advanced-security-new-rule-option.webp?resize=300%2C144&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/advanced-security-new-rule-option.webp?resize=150%2C72&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<li>\n<p>Select the <strong>Port<\/strong> option.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179508\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-open-port-option.webp?resize=714%2C581&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Firewall open inbound port option\" width=\"714\" height=\"581\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-open-port-option.webp?w=714&amp;quality=78&amp;strip=all&amp;ssl=1 714w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-open-port-option.webp?resize=300%2C244&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-open-port-option.webp?resize=705%2C574&amp;quality=78&amp;strip=all&amp;ssl=1 705w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-open-port-option.webp?resize=150%2C122&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/li>\n<li>\n<p>Click the <strong>Next<\/strong> button.<\/p>\n<\/li>\n<li>\n<p>Select the appropriate protocol (<code>TCP<\/code> or <code>UDP<\/code>) depending on the application.<\/p>\n<\/li>\n<li>\n<p>Type the port number in the &#8220;Specific local ports&#8221; setting.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179509\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-open-protocol-option.webp?resize=714%2C581&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Open specific firewall port using TCP or UDP protocol\" width=\"714\" height=\"581\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-open-protocol-option.webp?w=714&amp;quality=78&amp;strip=all&amp;ssl=1 714w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-open-protocol-option.webp?resize=300%2C244&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-open-protocol-option.webp?resize=705%2C574&amp;quality=78&amp;strip=all&amp;ssl=1 705w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-open-protocol-option.webp?resize=150%2C122&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/p>\n<div id=\"tip-box\"><span><strong>Quick note:<\/strong> If the app requires multiple ports open, you can type as many as you need as long as you separate each one with a comma (4500,4600,5000). If you need to specify a port range, you can use a hyphen (-). For example, 3000-3100.<\/span><\/div>\n<\/li>\n<li>\n<p>Click the <strong>Next<\/strong> button.<\/p>\n<\/li>\n<li>\n<p>Select the <strong>&#8220;Allow the connection&#8221;<\/strong> option. (Using the same step, note that you can block the connection.)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179507\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/fierwall-allow-connection-option.webp?resize=714%2C581&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Allow connection settings\" width=\"714\" height=\"581\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/fierwall-allow-connection-option.webp?w=714&amp;quality=78&amp;strip=all&amp;ssl=1 714w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/fierwall-allow-connection-option.webp?resize=300%2C244&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/fierwall-allow-connection-option.webp?resize=705%2C574&amp;quality=78&amp;strip=all&amp;ssl=1 705w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/fierwall-allow-connection-option.webp?resize=150%2C122&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/li>\n<li>\n<p>Click the <strong>Next<\/strong> button.<\/p>\n<\/li>\n<li>\n<p>Select the network type to apply the rule. (Usually, you want to leave this option with the default selections.)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179510\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-port-profile_.webp?resize=714%2C581&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Firewall network profile settings\" width=\"714\" height=\"581\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-port-profile_.webp?w=714&amp;quality=78&amp;strip=all&amp;ssl=1 714w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-port-profile_.webp?resize=300%2C244&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-port-profile_.webp?resize=705%2C574&amp;quality=78&amp;strip=all&amp;ssl=1 705w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/firewall-port-profile_.webp?resize=150%2C122&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/li>\n<li>\n<p>Click the <strong>Next<\/strong> button.<\/p>\n<\/li>\n<li>\n<p>Type a descriptive name for the rule. For example, <strong>&#8220;My Inbound Rule for APP-NAME.&#8221;<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179511\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/microsoft-defender-firewall-rule-name.webp?resize=714%2C581&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Firewall open port rule name settings\" width=\"714\" height=\"581\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/microsoft-defender-firewall-rule-name.webp?w=714&amp;quality=78&amp;strip=all&amp;ssl=1 714w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/microsoft-defender-firewall-rule-name.webp?resize=300%2C244&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/microsoft-defender-firewall-rule-name.webp?resize=705%2C574&amp;quality=78&amp;strip=all&amp;ssl=1 705w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/microsoft-defender-firewall-rule-name.webp?resize=150%2C122&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/li>\n<li>\n<p>Click the <strong>Finish<\/strong> button.<\/p>\n<\/li>\n<\/ol>\n<p>After you complete the steps, inbound connections will be allowed for the app through the port you open in the firewall.<\/p>\n<h3>Create a firewall rule using Command Prompt<\/h3>\n<p>To open a firewall port through Command Prompt, follow these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Start<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Search for <strong>Command Prompt<\/strong> (or <strong>Terminal<\/strong>), right-click the top result, and choose the <strong>Run as administrator<\/strong> option.<\/p>\n<\/li>\n<li>\n<p>Type this command to create an incoming firewall rule with Command Prompt and press <strong>Enter<\/strong>:<\/p>\n<pre>netsh advfirewall firewall add rule name=\"YOUR-APP-PORT\" dir=in action=allow protocol=TCP localport=12345<\/pre>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179514\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/netsh-open-firewall-port-cmd.webp?resize=827%2C248&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"netsh open firewall port in Command Prompt\" width=\"827\" height=\"248\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/netsh-open-firewall-port-cmd.webp?w=902&amp;quality=78&amp;strip=all&amp;ssl=1 902w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/netsh-open-firewall-port-cmd.webp?resize=300%2C90&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/netsh-open-firewall-port-cmd.webp?resize=150%2C45&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/p>\n<p>In the command, update the <code>name<\/code> setting for the name of the rule you want to use. In <code>protocol<\/code>, use <code>TCP<\/code> or <code>UDP<\/code>, and specify the port number in the <code>localport<\/code> setting.<\/p>\n<div id=\"tip-box\"><span><strong>Quick tip:<\/strong> <code>netsh<\/code> doesn&#8217;t support a comma-separated list of ports like <code>localport=80,443,8080<\/code>. Instead, you must run one command per port.<\/span><\/div>\n<\/li>\n<li>\n<p>Type this command to open a range of ports with Command Prompt and press <strong>Enter<\/strong>:<\/p>\n<pre>netsh advfirewall firewall add rule name=\"YOUR-PORT-RANGE-NAME\" dir=in action=allow protocol=TCP localport=2000-2200<\/pre>\n<p>In the command, update the <code>name<\/code> setting for the name of the rule you want to use. In <code>protocol<\/code>, use <code>TCP<\/code> or <code>UDP<\/code>, and specify the port number in the <code>localport<\/code> setting.<\/p>\n<\/li>\n<\/ol>\n<p>Once you complete the steps, the specified network ports using Command Prompt will open on Windows 11.<\/p>\n<p>If you must create an in or out rule with multiple ports (out of range), you can use a batch loop command. For example, <code>for %%P in (80 443 8080) do netsh advfirewall firewall add rule name=\"Allow TCP %%P\" dir=in action=allow protocol=TCP localport=%%P<\/code><\/p>\n<p>In the command, you have to update the ports, direction (<code>in<\/code> or <code>out<\/code>), and protocol (<code>TCP<\/code> or <code>UDP<\/code>).<\/p>\n<h3>Create a firewall rule using PowerShell<\/h3>\n<p>To open a firewall port using a PowerShell command, follow these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Start<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Search for <strong>PowerShell<\/strong> (or <strong>Terminal<\/strong>), right-click the top result, and choose the <strong>Run as administrator<\/strong> option.<\/p>\n<\/li>\n<li>\n<p>Type this command to create an incoming firewall rule with PowerShell and press <strong>Enter<\/strong>:<\/p>\n<pre>New-NetFirewallRule -DisplayName \"YOUR-APP-PORT\" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 12345<\/pre>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179516\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/powershell-create-firewall-rule-windows-11.webp?resize=827%2C611&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"PowerShell create firewall rule on Windows 11\" width=\"827\" height=\"611\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/powershell-create-firewall-rule-windows-11.webp?w=902&amp;quality=78&amp;strip=all&amp;ssl=1 902w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/powershell-create-firewall-rule-windows-11.webp?resize=300%2C222&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/powershell-create-firewall-rule-windows-11.webp?resize=777%2C574&amp;quality=78&amp;strip=all&amp;ssl=1 777w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/powershell-create-firewall-rule-windows-11.webp?resize=150%2C111&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/p>\n<p>In the command, you have to update the name, direction (<code>Inbound<\/code> or <code>Outbound<\/code>), protocol (<code>TCP<\/code> or <code>UDP<\/code>), and local port settings in the same way as required using Command Prompt.<\/p>\n<\/li>\n<li>\n<p>Type this command to open a range of ports with PowerShell and press <strong>Enter<\/strong>:<\/p>\n<pre>New-NetFirewallRule -DisplayName \"YOUR-PORT-RANGE-NAME\" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 4000-4010<\/pre>\n<p>In the command, update the name, direction (<code>Inbound<\/code> or <code>Outbound<\/code>), protocol (<code>TCP<\/code> or <code>UDP<\/code>), and specify the port range.<\/p>\n<\/li>\n<\/ol>\n<p>After you complete the steps, the PowerShell command will create the inbound or outbound rule in the Microsoft Defender Firewall.<\/p>\n<p>If you must create an in or out rule with multiple ports (out of range), you can use a <code>foreach<\/code> loop command. For example:<\/p>\n<pre>$ports = @(80, 443, 8080)\r\nforeach ($port in $ports) {\r\n    New-NetFirewallRule -DisplayName \"Allow TCP $port\" -Direction Inbound -Action Allow -Protocol TCP -LocalPort $port\r\n}\r\n<\/pre>\n<p>In the command, you have to update the ports, direction (<code>in<\/code> or <code>out<\/code>), and protocol (<code>TCP<\/code> or <code>UDP<\/code>).<\/p>\n<h2>Close a firewall port on Windows 11<\/h2>\n<p>You can also close a port by deleting a specific rule using the Advanced Security console, Command Prompt, or PowerShell.<\/p>\n<h3>Close a firewall rule from Advanced Security<\/h3>\n<p>To delete a port in the Microsoft Defender Firewall, follow these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Windows Security<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Click on <strong>Firewall &amp; network protection<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Click the <strong>Advanced settings<\/strong> option.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179505\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/widnows-security-open-advanced-settings.webp?resize=782%2C503&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Windows firewall advanced settings\" width=\"782\" height=\"503\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/widnows-security-open-advanced-settings.webp?w=782&amp;quality=78&amp;strip=all&amp;ssl=1 782w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/widnows-security-open-advanced-settings.webp?resize=300%2C193&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/widnows-security-open-advanced-settings.webp?resize=150%2C96&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/li>\n<li>\n<p>Click on <strong>Inbound Rules<\/strong> or <strong>Outbound Rules<\/strong> from the left navigation pane, depending on where you open the firewall port.<\/p>\n<\/li>\n<li>\n<p>Select the rule you want.<\/p>\n<\/li>\n<li>\n<p>Click the <strong>Disable Rule<\/strong> to close the port while keeping the rule under the &#8220;Actions&#8221; section. Or click the <strong>Delete Rule<\/strong> option to close the port and remove the rule from the firewall.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179513\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/delete-firewall-open-port-rule_.webp?resize=827%2C489&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Delete firewall rule\" width=\"827\" height=\"489\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/delete-firewall-open-port-rule_.webp?w=889&amp;quality=78&amp;strip=all&amp;ssl=1 889w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/delete-firewall-open-port-rule_.webp?resize=300%2C178&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/delete-firewall-open-port-rule_.webp?resize=150%2C89&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<\/ol>\n<p>After you complete the steps, the app or service will no longer have access to the network or internet because the Windows firewall will block it.<\/p>\n<h3>Close a firewall rule using Command Prompt<\/h3>\n<p>To open a firewall port through Command Prompt, follow these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Start<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Search for Command Prompt (or Terminal), right-click the top result, and choose the <strong>Run as administrator<\/strong> option.<\/p>\n<\/li>\n<li>\n<p>Type this command to delete a firewall rule with Command Prompt and press <strong>Enter<\/strong>:<\/p>\n<pre>netsh advfirewall firewall delete rule name=\"YOUR-DELETE-RULE\"<\/pre>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179515\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/netsh-delete-firewall-port.webp?resize=827%2C283&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"netsh delete firewall port in Command Prompt\" width=\"827\" height=\"283\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/netsh-delete-firewall-port.webp?w=902&amp;quality=78&amp;strip=all&amp;ssl=1 902w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/netsh-delete-firewall-port.webp?resize=300%2C103&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/netsh-delete-firewall-port.webp?resize=150%2C51&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/p>\n<p>In the command, update the <code>name<\/code> setting with the name of the rule that includes the port to close.<\/p>\n<\/li>\n<\/ol>\n<p>Once you complete the steps, the Command Prompt command will delete the rule, closing the specified ports.<\/p>\n<h3>Close a firewall rule using PowerShell<\/h3>\n<p>To open a firewall port using a PowerShell command, follow these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Start<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Search for <strong>PowerShell<\/strong> (or <strong>Terminal<\/strong>), right-click the top result, and choose the <strong>Run as administrator<\/strong> option.<\/p>\n<\/li>\n<li>\n<p>Type this command to delete a firewall rule with PowerShell and press <strong>Enter<\/strong>:<\/p>\n<pre>Remove-NetFirewallRule -DisplayName \"YOUR-DELETE-RULE\"<\/pre>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179517\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/powershell-remove-firewall-rule.webp?resize=827%2C419&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"PowerShell delete remove firewall rule\" width=\"827\" height=\"419\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/powershell-remove-firewall-rule.webp?w=902&amp;quality=78&amp;strip=all&amp;ssl=1 902w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/powershell-remove-firewall-rule.webp?resize=300%2C152&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/powershell-remove-firewall-rule.webp?resize=150%2C76&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/p>\n<p>In the command, update the <code>DisplayName<\/code> setting with the name of the rule that contains the port to close.<\/p>\n<\/li>\n<\/ol>\n<p>After you complete the steps, the PowerShell command will delete the rule with the ports you want to close.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you must open the port through the Microsoft Defender Firewall, in this guide, I&#8217;ll explain how to complete this configuration on Windows 11.<\/p>\n","protected":false},"author":2,"featured_media":179519,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[2426,23],"tags":[97,19,79,2715,2576],"class_list":["post-179498","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-features","category-windows","tag-difficulty-level-advanced","tag-how-to","tag-security","tag-windows-11","tag-windows-help"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to open a firewall port on Windows 11 - Pureinfotech<\/title>\n<meta name=\"description\" content=\"You can quickly open a firewall port on Windows 11 using Advanced Security, CMD, or PowerShell. Here&#039;s how to do it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"3 Ways to add a firewall rule to open a port on Windows 11\" \/>\n<meta property=\"og:description\" content=\"You can quickly open a firewall port on Windows 11 using Advanced Security, CMD, or PowerShell. Here&#039;s how to do it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/\" \/>\n<meta property=\"og:site_name\" content=\"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pureinfotech\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-04T14:53:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-04T17:03:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1680\" \/>\n\t<meta property=\"og:image:height\" content=\"1050\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Mauro Huculak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to create a new firewall rule on Windows 11\" \/>\n<meta name=\"twitter:description\" content=\"You can quickly open a firewall port on Windows 11 using Advanced Security, CMD, or PowerShell. Here&#039;s how to do it.\" \/>\n<meta name=\"twitter:creator\" content=\"@Pureinfotech\" \/>\n<meta name=\"twitter:site\" content=\"@Pureinfotech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mauro Huculak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/\"},\"author\":{\"name\":\"Mauro Huculak\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43\"},\"headline\":\"How to open a firewall port on Windows 11\",\"datePublished\":\"2025-08-04T14:53:56+00:00\",\"dateModified\":\"2025-08-04T17:03:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/\"},\"wordCount\":1286,\"publisher\":{\"@id\":\"https:\/\/pureinfotech.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1\",\"keywords\":[\"Difficulty level: Advanced\",\"How-To\",\"Security\",\"Windows 11\",\"Windows Help\"],\"articleSection\":[\"Features\",\"Windows\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/\",\"url\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/\",\"name\":\"How to open a firewall port on Windows 11 - Pureinfotech\",\"isPartOf\":{\"@id\":\"https:\/\/pureinfotech.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1\",\"datePublished\":\"2025-08-04T14:53:56+00:00\",\"dateModified\":\"2025-08-04T17:03:26+00:00\",\"description\":\"You can quickly open a firewall port on Windows 11 using Advanced Security, CMD, or PowerShell. Here's how to do it.\",\"breadcrumb\":{\"@id\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1\",\"width\":1680,\"height\":1050,\"caption\":\"Windows 11 open firewall port \/ Image: Mauro Huculak\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pureinfotech.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to open a firewall port on Windows 11\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pureinfotech.com\/#website\",\"url\":\"https:\/\/pureinfotech.com\/\",\"name\":\"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans\",\"description\":\"Pureinfotech is the best site to get Windows help \u2013 featuring friendly how-to guides on Windows 10, Windows 11, Xbox, and other things tech, news, deals, reviews, and more.\",\"publisher\":{\"@id\":\"https:\/\/pureinfotech.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pureinfotech.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/pureinfotech.com\/#organization\",\"name\":\"Pureinfotech\",\"url\":\"https:\/\/pureinfotech.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1\",\"width\":192,\"height\":192,\"caption\":\"Pureinfotech\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/pureinfotech\",\"https:\/\/x.com\/Pureinfotech\",\"https:\/\/www.youtube.com\/user\/Pureinfotech\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43\",\"name\":\"Mauro Huculak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"caption\":\"Mauro Huculak\"},\"description\":\"Mauro Huculak is a Windows How-To Expert and founder of Pureinfotech (est. 2010). With over 21 years as a technology writer and IT Specialist, Mauro specializes in Windows, software, and cross-platform systems such as Linux, Android, and macOS. Certifications he holds include Microsoft Certified Solutions Associate (MCSA), Cisco Certified Network Professional (CCNP), VMware Certified Professional (VCP), and CompTIA A+ and Network+. Mauro is a recognized Microsoft MVP and has also been a long-time contributor to Windows Central. You can follow him on YouTube, Threads, BlueSky, X (Twitter), LinkedIn and About.me. Email him at Contact@Pureinfotech.com.\",\"sameAs\":[\"https:\/\/pureinfotech.com\",\"https:\/\/x.com\/@Pureinfotech\"],\"url\":\"https:\/\/pureinfotech.com\/mauro-huculak\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to open a firewall port on Windows 11 - Pureinfotech","description":"You can quickly open a firewall port on Windows 11 using Advanced Security, CMD, or PowerShell. Here's how to do it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/","og_locale":"en_US","og_type":"article","og_title":"3 Ways to add a firewall rule to open a port on Windows 11","og_description":"You can quickly open a firewall port on Windows 11 using Advanced Security, CMD, or PowerShell. Here's how to do it.","og_url":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/","og_site_name":"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans","article_publisher":"https:\/\/facebook.com\/pureinfotech","article_published_time":"2025-08-04T14:53:56+00:00","article_modified_time":"2025-08-04T17:03:26+00:00","og_image":[{"width":1680,"height":1050,"url":"https:\/\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp","type":"image\/webp"}],"author":"Mauro Huculak","twitter_card":"summary_large_image","twitter_title":"How to create a new firewall rule on Windows 11","twitter_description":"You can quickly open a firewall port on Windows 11 using Advanced Security, CMD, or PowerShell. Here's how to do it.","twitter_creator":"@Pureinfotech","twitter_site":"@Pureinfotech","twitter_misc":{"Written by":"Mauro Huculak","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#article","isPartOf":{"@id":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/"},"author":{"name":"Mauro Huculak","@id":"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43"},"headline":"How to open a firewall port on Windows 11","datePublished":"2025-08-04T14:53:56+00:00","dateModified":"2025-08-04T17:03:26+00:00","mainEntityOfPage":{"@id":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/"},"wordCount":1286,"publisher":{"@id":"https:\/\/pureinfotech.com\/#organization"},"image":{"@id":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","keywords":["Difficulty level: Advanced","How-To","Security","Windows 11","Windows Help"],"articleSection":["Features","Windows"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/","url":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/","name":"How to open a firewall port on Windows 11 - Pureinfotech","isPartOf":{"@id":"https:\/\/pureinfotech.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#primaryimage"},"image":{"@id":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","datePublished":"2025-08-04T14:53:56+00:00","dateModified":"2025-08-04T17:03:26+00:00","description":"You can quickly open a firewall port on Windows 11 using Advanced Security, CMD, or PowerShell. Here's how to do it.","breadcrumb":{"@id":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#primaryimage","url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","contentUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","width":1680,"height":1050,"caption":"Windows 11 open firewall port \/ Image: Mauro Huculak"},{"@type":"BreadcrumbList","@id":"https:\/\/pureinfotech.com\/open-firewall-port-windows-11\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pureinfotech.com\/"},{"@type":"ListItem","position":2,"name":"How to open a firewall port on Windows 11"}]},{"@type":"WebSite","@id":"https:\/\/pureinfotech.com\/#website","url":"https:\/\/pureinfotech.com\/","name":"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans","description":"Pureinfotech is the best site to get Windows help \u2013 featuring friendly how-to guides on Windows 10, Windows 11, Xbox, and other things tech, news, deals, reviews, and more.","publisher":{"@id":"https:\/\/pureinfotech.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pureinfotech.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pureinfotech.com\/#organization","name":"Pureinfotech","url":"https:\/\/pureinfotech.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1","contentUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1","width":192,"height":192,"caption":"Pureinfotech"},"image":{"@id":"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/pureinfotech","https:\/\/x.com\/Pureinfotech","https:\/\/www.youtube.com\/user\/Pureinfotech"]},{"@type":"Person","@id":"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43","name":"Mauro Huculak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","caption":"Mauro Huculak"},"description":"Mauro Huculak is a Windows How-To Expert and founder of Pureinfotech (est. 2010). With over 21 years as a technology writer and IT Specialist, Mauro specializes in Windows, software, and cross-platform systems such as Linux, Android, and macOS. Certifications he holds include Microsoft Certified Solutions Associate (MCSA), Cisco Certified Network Professional (CCNP), VMware Certified Professional (VCP), and CompTIA A+ and Network+. Mauro is a recognized Microsoft MVP and has also been a long-time contributor to Windows Central. You can follow him on YouTube, Threads, BlueSky, X (Twitter), LinkedIn and About.me. Email him at Contact@Pureinfotech.com.","sameAs":["https:\/\/pureinfotech.com","https:\/\/x.com\/@Pureinfotech"],"url":"https:\/\/pureinfotech.com\/mauro-huculak"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/open-firewall-ports-windows-11-hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","jetpack-related-posts":[{"id":99767,"url":"https:\/\/pureinfotech.com\/open-port-firewall-windows-10\/","url_meta":{"origin":179498,"position":0},"title":"How to open firewall port on Windows 10","author":"Mauro Huculak","date":"January 17, 2023","format":false,"excerpt":"If you have an app getting blocked by the firewall, here are the steps to open the port through the Microsoft Defender Firewall on Windows 10.","rel":"","context":"","block_context":{"text":"Features","link":"https:\/\/pureinfotech.com\/category\/features\/"},"img":{"alt_text":"Windows 10 open firewall port","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/07\/windows-10-open-firewall-port-hero.webp?fit=1200%2C746&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/07\/windows-10-open-firewall-port-hero.webp?fit=1200%2C746&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/07\/windows-10-open-firewall-port-hero.webp?fit=1200%2C746&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/07\/windows-10-open-firewall-port-hero.webp?fit=1200%2C746&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/07\/windows-10-open-firewall-port-hero.webp?fit=1200%2C746&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":119580,"url":"https:\/\/pureinfotech.com\/export-import-firewall-rules-windows-10\/","url_meta":{"origin":179498,"position":1},"title":"How to export and import firewall rules on Windows 10","author":"Mauro Huculak","date":"January 7, 2020","format":false,"excerpt":"Yes, you can export and import all your firewall rules to the same or another computer, and here's how to do it on Windows 10.","rel":"","context":"","block_context":{"text":"Windows","link":"https:\/\/pureinfotech.com\/category\/windows\/"},"img":{"alt_text":"Windows 10 firewall export rules and import","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/01\/firewall-rules-export-import-windows-10.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/01\/firewall-rules-export-import-windows-10.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/01\/firewall-rules-export-import-windows-10.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/01\/firewall-rules-export-import-windows-10.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/01\/firewall-rules-export-import-windows-10.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":179558,"url":"https:\/\/pureinfotech.com\/reset-firewall-settings-windows-11\/","url_meta":{"origin":179498,"position":2},"title":"How to reset Defender Firewall settings on Windows 11","author":"Mauro Huculak","date":"August 5, 2025","format":false,"excerpt":"Do you have a mess of firewall rules? Here's how to reset the security feature to its default settings on Windows 11.","rel":"","context":"","block_context":{"text":"Features","link":"https:\/\/pureinfotech.com\/category\/features\/"},"img":{"alt_text":"Windows 11 reset firewall settings","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/windows-11-reset-firewall-settings-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/windows-11-reset-firewall-settings-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/windows-11-reset-firewall-settings-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/windows-11-reset-firewall-settings-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/08\/windows-11-reset-firewall-settings-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":126966,"url":"https:\/\/pureinfotech.com\/reset-firewall-settings-windows-10\/","url_meta":{"origin":179498,"position":3},"title":"How to reset firewall settings on Windows 10","author":"Mauro Huculak","date":"October 5, 2020","format":false,"excerpt":"Windows 10 allows you to reset the firewall settings in several ways to fix problems or remove no longer needed rules, and in this guide, you'll learn how to complete the task in four different ways.","rel":"","context":"","block_context":{"text":"Windows","link":"https:\/\/pureinfotech.com\/category\/windows\/"},"img":{"alt_text":"Windows 10 reset firewall settings","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/10\/windows-10-reset-firewall-settings_hero.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/10\/windows-10-reset-firewall-settings_hero.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/10\/windows-10-reset-firewall-settings_hero.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/10\/windows-10-reset-firewall-settings_hero.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/10\/windows-10-reset-firewall-settings_hero.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":139121,"url":"https:\/\/pureinfotech.com\/disable-firewall-windows-11\/","url_meta":{"origin":179498,"position":4},"title":"How to disable firewall on Windows 11","author":"Mauro Huculak","date":"February 26, 2024","format":false,"excerpt":"You can disable (or enable) the Microsoft Defender Firewall in several ways, and here's how on Windows 11.","rel":"","context":"","block_context":{"text":"Features","link":"https:\/\/pureinfotech.com\/category\/features\/"},"img":{"alt_text":"Windows 11 disable Defender Firewall","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-disable-firewall-hero-mauro-huculak_result.webp?fit=1200%2C803&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-disable-firewall-hero-mauro-huculak_result.webp?fit=1200%2C803&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-disable-firewall-hero-mauro-huculak_result.webp?fit=1200%2C803&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-disable-firewall-hero-mauro-huculak_result.webp?fit=1200%2C803&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-disable-firewall-hero-mauro-huculak_result.webp?fit=1200%2C803&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":157352,"url":"https:\/\/pureinfotech.com\/export-import-firewall-rules-windows-11\/","url_meta":{"origin":179498,"position":5},"title":"How to export and import individual firewall rules on Windows 11","author":"Mauro Huculak","date":"July 13, 2023","format":false,"excerpt":"You can export and import only specific firewall rules on Windows 11, and in this guide, you will learn how.","rel":"","context":"","block_context":{"text":"Features","link":"https:\/\/pureinfotech.com\/category\/features\/"},"img":{"alt_text":"Windows 11 export firewall rule","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/07\/windows-11-export-import-single-firewall-rule-hero.webp?fit=1200%2C744&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/07\/windows-11-export-import-single-firewall-rule-hero.webp?fit=1200%2C744&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/07\/windows-11-export-import-single-firewall-rule-hero.webp?fit=1200%2C744&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/07\/windows-11-export-import-single-firewall-rule-hero.webp?fit=1200%2C744&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/07\/windows-11-export-import-single-firewall-rule-hero.webp?fit=1200%2C744&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts\/179498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/comments?post=179498"}],"version-history":[{"count":2,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts\/179498\/revisions"}],"predecessor-version":[{"id":179536,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts\/179498\/revisions\/179536"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/media\/179519"}],"wp:attachment":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/media?parent=179498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/categories?post=179498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/tags?post=179498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}