Windows 11 Open Ports -

Opening ports in Windows 11 is a common task for setting up gaming servers, remote desktop access, or web development environments. By default, the Windows Firewall blocks most incoming traffic to protect your system, but you can manually create "Inbound Rules" to allow specific traffic through. How to Check Currently Open Ports

Before opening a new port, it’s helpful to see what is already active. You can do this quickly using the Command Prompt , and press Enter. Type the following command and hit Enter: netstat -ano windows 11 open ports

This lists all active connections and the ports they are using. To find a specific port (e.g., 8080), use: netstat -ano | find "8080" Step-by-Step: How to Open a Port in Windows 11 Opening ports in Windows 11 is a common

To allow traffic through a specific port, you must configure the Windows Defender Firewall with Advanced Security Warrior Trading Open Firewall Settings Option 2: Block the Port Using Windows Defender

: Click the Start menu, search for "Windows Defender Firewall," and select it. Then, click Advanced settings on the left sidebar. Create Inbound Rule : In the new window, click Inbound Rules on the left, then click


Option 2: Block the Port Using Windows Defender Firewall

This is the preferred method, as it keeps the service running but denies external access.

  1. Press Win + R, type wf.msc, and press Enter.
  2. Click Inbound RulesNew Rule.
  3. Select Port → Next.
  4. Choose TCP or UDP, then specify the port number (e.g., 445).
  5. Select Block the connection.
  6. Apply to all profiles (Domain, Private, Public).
  7. Name the rule (e.g., “Block SMB port 445”) and finish.

To verify, run netstat -an again. The port will still show LISTENING, but external traffic is dropped.

Method 1: Using the Command Prompt

  1. Press the Windows key + R to open the Run dialog box.
  2. Type cmd and press Enter to open the Command Prompt.
  3. Type netstat -an and press Enter to display a list of all active connections and listening ports.

Command Line (Admin recommended)

netstat -an | findstr LISTENING