Open Port in Windows Firewall in Windows 10 (2024)

RЕCOMMENDED: Click here to fix Windоws issues and optimize system performance

Windows Defender Firewall is a great feature in modern Windows versions. It was introduced in Windows XP and improved in Windows XP Service Pack 2. In Windows 10, it is part of the Windows Security app (formerly Windows Defender Security Center). Today, we will see how to open a port in Windows Firewall in Windows 10 for an app or a service.

Advertisеment

In Windows 10, Windows Firewall is based completely on the Windows Filtering Platform API and has IPsec integrated with it. This is true since Windows Vista where the firewall added outbound connection blocking and also comes with an advanced Control Panel called Windows Firewall with Advanced Security. It gives fine-grained control over configuring the firewall. The Windows Firewall supports multiple active profiles, co-existence with third-party firewalls, and rules based on port ranges and protocols.

You may have an app (e.g a local FTP server) which requires a port(s) to be open so other computers on your network can connect to it.

Before you open or close ports in the Windows Firewall, ensure that you are signed in asan administrator.

To open a port in Windows Firewall in Windows 10, do the following.

  1. Open Windows Security.
  2. Click on the iconFirewall & network protection.Open Port in Windows Firewall in Windows 10 (1)
  3. On the next page, click on the linkAdvanced settings.Open Port in Windows Firewall in Windows 10 (2)
  4. Click on Inbound Rules on the left.
  5. On the right, click on the New Rule link.Open Port in Windows Firewall in Windows 10 (3)
  6. Select Port as the rule type and clickNext.Open Port in Windows Firewall in Windows 10 (4)
  7. Fill in the Specific local ports box. Type there the required port number or a range of ports. Set the required network protocol (TCP or UDP) and click Next.Open Port in Windows Firewall in Windows 10 (5)
  8. On the next page, select the optionAllow the connection. Click Next.Open Port in Windows Firewall in Windows 10 (6)
  9. Select the Windows Firewall profile the new rule should apply to. E.g. leaving the Private profile enabled and disabling others will make your app available only on home networks.Open Port in Windows Firewall in Windows 10 (7)
  10. On the next page, provide some meaningful description for your firewall rule. Click on the Finish button.Open Port in Windows Firewall in Windows 10 (8)

Voila, you have opened the inbound port in Windows 10 Firewall.

The same can be done for anoutbound port if it is required by your app. In Windows Firewall with Advanced Security, click on the Outbound Rules instead of Inbound Rules and follow the wizard.Open Port in Windows Firewall in Windows 10 (9)

Finally, to close the opened port, remove the rule or just disable it.

Open Port in Windows Firewall in Windows 10 (10)

The change will take effect instantly.

There are a couple alternative methods you can use to open a port in Windows 10. Let's review them.

Contents hide

Open a port using netsh

Open a port using PowerShell

Open a port using netsh

Netshis a console utility which allows changing a lot of network related parameters. Here are just a few examples of what you can do with netsh:

  • Check supported WiFi speed of your Wireless adapter in Windows 10
  • Backup and restore Wireless network profiles in Windows 10
  • Filter wireless networks in Windows 10 to create a black list or white list
  • Set up Windows 10 ad hoc wireless hotspot

To open a port using netsh, do the following.

  1. Open anelevated command prompt.
  2. Type the following command: netsh advfirewall firewall add rule name="TCP Port 6624" dir=in action=allow protocol=TCP localport=6624.Modify the appropriate values to match your app, e.g. the port number, the rule name, the protocol (TCP or UDP).
  3. To delete the rule, execute the command as follows.netsh advfirewall firewall delete rule name="TCP Port 6624" protocol=TCP localport=6624.

Open a port using PowerShell

PowerShell is an advanced form of command prompt. It is extended with a huge set of ready-to-use cmdlets and comes with the ability to use .NET framework/C# in various scenarios. You can use it to open or close a port in Windows 10.

There is a special cmdletNew-NetFirewallRule that can be used to open or block a network port in Windows 10.

To open a port with PowerShell,

  1. Openan elevated PowerShellinstance.
  2. Type the following command:
    New-NetFirewallRule -DisplayName 'My port' -Profile 'Private' -Direction Inbound -Action Allow -Protocol TCP -LocalPort 6624

That's it.

Articles of interest:

  • Add Windows Firewall Context Menu in Windows 10
  • How To Allow Or Block Apps In Windows Firewall in Windows 10
  • How To Disable Windows Firewall in Windows 10
  • Disable Firewall Notifications In Windows 10
  • How to Backup and Restore Firewall Rules in Windows 10
  • How to Reset Windows Firewall in Windows 10

RЕCOMMENDED: Click here to fix Windоws issues and optimize system performance

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube. View all posts by Sergey Tkachenko

Open Port in Windows Firewall in Windows 10 (2024)

FAQs

Open Port in Windows Firewall in Windows 10? ›

Click Security and Users > Firewall. Select the Allowed Services tab and click Advanced. Enter the wanted port range in the from-port-start:to-port-end format and specify the protocol (TCP or UDP).

How to open a port in firewall windows 10? ›

How to open and close ports in Windows Firewall
  1. Right-click the Start button.
  2. Click Search.
  3. Type Windows Firewall.
  4. Click Windows Firewall.
  5. Click Advanced settings.
  6. Click Inbound Rules.
  7. Click New Rule.
  8. Click Port.
Mar 6, 2023

How do I open a port range in Windows Firewall? ›

Click Security and Users > Firewall. Select the Allowed Services tab and click Advanced. Enter the wanted port range in the from-port-start:to-port-end format and specify the protocol (TCP or UDP).

How do I add an open port to my firewall? ›

Open a Port in Firewalld
  1. Log into SSH.
  2. Check if the application port is defined as a service (e.g. IMAPS, Kerberos, MySQL): firewall-cmd -get-services.
  3. If the service is listed, whitelist the service permanently in the current zone: sudo firewall-cmd --permanent --add-service=SERVICE. ...
  4. Reload Firewalld to apply changes:
Dec 1, 2023

How to open port 80 and 443 on Windows 10? ›

Windows
  1. Open the file: [app-path]\server\server.properties.
  2. Enable port 80 (and 443) by changing the appropriate settings from N to a Y . They should look like: server.enable-http-on-port-80=Y. server.enable-https-on-port-443=Y.
  3. Restart the Application Server. (See Stop and start the Application Server .)

How to check if port is open in Windows 10? ›

Press the Windows key + R, then type "cmd.exe" and click OK. Enter "telnet + IP address or hostname + port number" (e.g., telnet www.example.com 1723 or telnet 10.17.xxx.xxx 5000) to run the telnet command in Command Prompt and test the TCP port status. If the port is open, only a cursor will show.

How do I open port 445 in Windows 10 firewall? ›

-Go to Computer Configuration > Policies > Windows Settings > Security Settings > Windows Firewall with Advanced Security > Windows Firewall with Advanced Security - LDAP > Inbound Rules. -Right-click and choose New Rule. -Choose Port and click Next. -Choose TCP and at specific local ports enter 445, then click Next.

How do I allow a specific IP and port in Windows Firewall? ›

Windows Firewall > Advanced Settings > Inbound Rules > New Rule > Custom > Choose your program > Select the protocol (probably TCP) and port > Enter the IP of the remote computer > choose the action (filter/forward) > choose when the rule applies > name it > save it.

How do you check if a port is open on a firewall? ›

Easy Ways to Identify Open Ports
  1. On Windows devices, enable Telnet. Open a command prompt and type “ipconfig.” Use the IP address and port number to locate an open port.
  2. For Mac devices, open a Terminal window. Type “netsat -nr | grep default” into the program. Then, type “nc -vs” + your IP + port number to locate.

How do I open port 22 on Windows 10? ›

Open Settings > Update and Security > For Developers . Click on the radio button for Developer mode ; this will open up your system's port 22 and allow the SSH broker to start listening for incoming connections. If you just switched to Developer mode , restart your computer, and then follow step 1 again.

How to check if port 443 is open in Windows 10? ›

Check if port 443 is open:

On Windows: open the Command Prompt on your Windows machine > type telnet <IP address or domain name> 443 and press Enter. If the command returns “Connected to <IP address or domain name>”, then port 443 is open.

How to check if port 80 is open? ›

Port 80 Availability Check
  1. From the Windows Start menu, select Run.
  2. In the Run dialog box, enter: cmd .
  3. Click OK.
  4. In the command window, enter: netstat -ano.
  5. A list of active connections is displayed. ...
  6. Start Windows Task Manager and select the Processes tab.

How do I allow HTTP through Windows Firewall? ›

Start > Control Panel > System and Security > Click Allow a program or feature through Window Firewall in Windows Firewall. You can check World Wide Web Services (HTTP) in the list. If World Wide Web Services (HTTP) is not checked, please click Change Settings.

How do I open a firewall for a specific port? ›

How to open a port on the firewall
  1. Click on Start then on Control Panel.
  2. Click on Windows Firewall and then click on Advanced Settings.
  3. Right click on Inbound Rules then on New Rule:
  4. Select Port and click on Next:
  5. Enter a specific local port (e.g. 8080) and click on Next:
  6. Click on Next:
  7. Name the rule and click on Finish:
Jun 16, 2023

How to open port 587 in firewall? ›

Follow this guide if you're a Windows user:
  1. Open the Start menu. Type Windows Security in the search bar and click on it in the results.
  2. Click on Firewall & network protection.
  3. Scroll down and select Allow an app through firewall.
  4. Find your email client or port 587 entry and ensure it's allowed.
Apr 26, 2024

How do I open my port? ›

How to open ports on a router
  1. Access your router's web interface. Navigate to your router's configuration page by typing the router's IP address into your browser.
  2. Log in to your router. ...
  3. Find the port forwarding section. ...
  4. Add a new port forwarding rule. ...
  5. Save the changes.
Jun 19, 2023

Top Articles
8 Best Crypto AI Trading Bots of 2024
​​Delivery issues | Consumer Protection
Frederick County Craigslist
Cooking Chutney | Ask Nigella.com
Loves Employee Pay Stub
Jefferey Dahmer Autopsy Photos
South Carolina defeats Caitlin Clark and Iowa to win national championship and complete perfect season
Corpse Bride Soap2Day
Costco in Hawthorne (14501 Hindry Ave)
Craigslist Phoenix Cars By Owner Only
What is IXL and How Does it Work?
Goldsboro Daily News Obituaries
Seafood Bucket Cajun Style Seafood Restaurant in South Salt Lake - Restaurant menu and reviews
978-0137606801
Mals Crazy Crab
Jellyfin Ps5
Where to Find Scavs in Customs in Escape from Tarkov
2020 Military Pay Charts – Officer & Enlisted Pay Scales (3.1% Raise)
Account Suspended
Scout Shop Massapequa
College Basketball Picks: NCAAB Picks Against The Spread | Pickswise
Toothio Login
Page 2383 – Christianity Today
Impact-Messung für bessere Ergebnisse « impact investing magazin
Acurafinancialservices Com Home Page
Churchill Downs Racing Entries
Downtown Dispensary Promo Code
Kristy Ann Spillane
Ehome America Coupon Code
Christmas Days Away
Kempsville Recreation Center Pool Schedule
Kaiserhrconnect
Nextdoor Myvidster
Tgh Imaging Powered By Tower Wesley Chapel Photos
Kelsey Mcewen Photos
Reading Craigslist Pa
Zasilacz Dell G3 15 3579
Winco Money Order Hours
Discover Wisconsin Season 16
Riverton Wyoming Craigslist
Emily Tosta Butt
My Eschedule Greatpeople Me
Access to Delta Websites for Retirees
The Pretty Kitty Tanglewood
Erica Mena Net Worth Forbes
Food and Water Safety During Power Outages and Floods
Shiftselect Carolinas
Pronósticos Gulfstream Park Nicoletti
Craigslist Com Brooklyn
Sam's Club Fountain Valley Gas Prices
Zom 100 Mbti
Myhrkohls.con
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 5541

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.