Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To allow incoming connections through Windows 10 Firewall, create a narrowly scoped rule under Inbound Rules in Windows Defender Firewall with Advanced Security. To close an exception, disable the matching rule. Allowing an app is generally safer than leaving a port open, so use a port rule only when the application’s requirements call for one.

Before you open a port

A firewall rule permits traffic; it does not make an application listen on that port or guarantee traffic can reach your PC. Confirm the app or service’s required port, protocol (TCP or UDP), and connection direction first. Windows 10’s built-in firewall settings are the only Windows changes covered here; router port forwarding is a separate configuration.

Microsoft advises that it is generally safer to add an app to the allowed-app list than to open a port. An allowed app opens required ports only when needed, while a port exception remains open until you close it. See Microsoft’s Windows Firewall guidance.

Open an inbound port in Windows 10

  1. Open Windows Security, then select Firewall & network protection.
  2. Select Advanced settings. Approve the administrator prompt if one appears.
  3. In the Windows Firewall with Advanced Security window, select Inbound Rules in the left pane. Under Actions, select New Rule.
  4. Select Port, then select Next. Choose TCP or UDP as required by the application. Enter the specific local port, then continue. Inbound rules typically specify a local port.
  5. Select Allow the connection. Choose only the network profiles where the connection should be permitted, then continue.
  6. Give the rule a clear name that identifies its purpose and port, then finish the wizard.

For more control, choose Custom instead of the simpler Port rule. Microsoft’s inbound-rule guidance describes combining port and program criteria, as well as narrowing the rule by service or address scope. Use those options when practical so the exception applies only to the needed traffic. You can open the advanced firewall console directly by running wf.msc.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
  • DUAL-BAND WIFI 6 ROUTER: Wi-Fi 6(802.11ax) technology achieves faster speeds, greater capacity and reduced network congestion compared to the previous gen. All WiFi routers require a separate modem. Dual-Band WiFi routers do not support the 6 GHz band.
  • AX1800: Enjoy smoother and more stable streaming, gaming, downloading with 1.8 Gbps total bandwidth (up to 1200 Mbps on 5 GHz and up to 574 Mbps on 2.4 GHz). Performance varies by conditions, distance to devices, and obstacles such as walls.
  • CONNECT MORE DEVICES: Wi-Fi 6 technology communicates more data to more devices simultaneously using revolutionary OFDMA technology
  • EXTENSIVE COVERAGE: Achieve the strong, reliable WiFi coverage with Archer AX1800 as it focuses signal strength to your devices far away using Beamforming technology, 4 high-gain antennas and an advanced front-end module (FEM) chipset
  • OUR CYBERSECURITY COMMITMENT: TP-Link is a signatory of the U.S. Cybersecurity and Infrastructure Security Agency’s (CISA) Secure-by-Design pledge. This device is designed, built, and maintained, with advanced security as a core requirement.

Choose the right rule type and scope

Choice Use it for
Inbound rule Traffic initiated by another device or service and received by this PC. Specify the local port.
Outbound rule Traffic initiated from this PC. Outbound port rules typically specify a remote port; Windows allows outbound traffic by default unless a blocking rule applies.
TCP or UDP Select the protocol documented by the application or service. They are separate choices; do not assume that permitting one permits the other.
Network profile Select only the profile or profiles where the service should accept connections.
Program, service, or address scope Where feasible, restrict the rule to the relevant application or service and the necessary IP addresses.

If your goal is to accept an incoming connection, do not add an outbound rule as a routine extra step. The necessary direction depends on the traffic the service actually uses.

Close a port by disabling its rule

  1. Open Windows Security → Firewall & network protection → Advanced settings.
  2. Select Inbound Rules and locate the rule that created the exception. Check its name and settings so you disable the correct rule.
  3. Select the rule, then choose Disable Rule under Actions.

Disabling a rule stops it from applying while preserving it for possible re-enabling. For command-line administration, Microsoft documents deleting a named rule with netsh advfirewall firewall delete rule name="MyRule"; deletion removes the rule rather than preserving it. See the netsh advfirewall command reference.

Rank #2
Sale
TP-Link ER605, Wired Gigabit VPN Router
  • 【Five Gigabit Ports】1 Gigabit WAN Port plus 2 Gigabit WAN/LAN Ports plus 2 Gigabit LAN Port. Up to 3 WAN ports optimize bandwidth usage through one device.
  • 【One USB WAN Port】Mobile broadband via 4G/3G modem is supported for WAN backup by connecting to the USB port. For complete list of compatible 4G/3G modems, please visit TP-Link website.
  • 【Abundant Security Features】Advanced firewall policies, DoS defense, IP/MAC/URL filtering, speed test and more security functions protect your network and data.
  • 【Highly Secure VPN】Supports up to 20× LAN-to-LAN IPsec, 16× OpenVPN, 16× L2TP, and 16× PPTP VPN connections.
  • Security - SPI Firewall, VPN Pass through, FTP/H.323/PPTP/SIP/IPsec ALG, DoS Defence, Ping of Death and Local Management. Standards and Protocols IEEE 802.3, 802.3u, 802.3ab, IEEE 802.3x, IEEE 802.1q
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Optional: create or delete a rule with netsh

Run Command Prompt as an administrator and substitute the port, protocol, and unique rule name required by your service. Microsoft’s example allows inbound TCP traffic on port 8080:

netsh advfirewall firewall add rule name="Allow8080" protocol=TCP dir=in localport=8080 action=allow

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
TP-Link Tri-Band BE9700 WiFi 7 Router (Archer BE600)
  • 𝐍𝐞𝐱𝐭-𝐆𝐞𝐧 𝐖𝐢-𝐅𝐢 𝟕 - Optimize performance on latest WiFi 7 laptops and devices, like the iPhone 16 Pro, Samsung Galaxy S24 Ultra, and PS5 Pro with the latest WiFi 7 technology with Multi-Link Operation, Multi-RUs, 4K-QAM, and up to 320 MHz channels.◇△
  • 𝟕-𝐒𝐭𝐫𝐞𝐚𝐦, 𝐁𝐄𝟗𝟕𝟎𝟎 𝐓𝐫𝐢-𝐁𝐚𝐧𝐝 𝐖𝐢-𝐅𝐢 𝟕 𝐒𝐩𝐞𝐞𝐝𝐬 - Delivers smooth 4K/8K streaming, immersive AR/VR gaming, and blazing-fast downloads with speeds up to 5,765 Mbps on the 6 GHz band, 2,882 Mbps on the 5 GHz band, and 1,032 Mbps on the 2.4 GHz band.⌂
  • 𝐌𝐚𝐱𝐢𝐦𝐢𝐳𝐞𝐝 𝐂𝐨𝐯𝐞𝐫𝐚𝐠𝐞 - Up to 2,600 sq. ft. coverage for up to 120 devices at a time. 6 optimally positioned antennas and Beamforming technology focus Wi-Fi signals toward hard-to-cover areas for stronger coverage-—ideal for those seeking the best WiFi router for large homes.
  • 𝟏𝟎 𝐆𝐛𝐩𝐬 𝐏𝐨𝐫𝐭 𝐟𝐨𝐫 𝐌𝐮𝐥𝐭𝐢-𝐆𝐢𝐠𝐚𝐛𝐢𝐭 𝐂𝐨𝐧𝐧𝐞𝐜𝐭𝐢𝐯𝐢𝐭𝐲 - Features 1x 10 Gbps WAN/LAN port, 1x 2.5 Gbps WAN/LAN port, and 3x 2.5 Gbps LAN ports. Integrate with a multi-gig modem for fast, wired gig+ internet.
  • 𝐎𝐮𝐫 𝐂𝐲𝐛𝐞𝐫𝐬𝐞𝐜𝐮𝐫𝐢𝐭𝐲 𝐂𝐨𝐦𝐦𝐢𝐭𝐦𝐞𝐧𝐭 - TP-Link is a signatory of the U.S. Cybersecurity and Infrastructure Security Agency’s (CISA) Secure-by-Design pledge. This device is designed, built, and maintained, with advanced security as a core requirement.

To remove a rule created with a particular name, use that exact name in the delete command:

netsh advfirewall firewall delete rule name="MyRule"

Rank #4
Sale
TP-Link Dual-Band BE3600 Wi-Fi 7 Router, Archer BE230
  • 𝐅𝐮𝐭𝐮𝐫𝐞-𝐏𝐫𝐨𝐨𝐟 𝐘𝐨𝐮𝐫 𝐇𝐨𝐦𝐞 𝐖𝐢𝐭𝐡 𝐖𝐢-𝐅𝐢 𝟕: Powered by Wi-Fi 7 technology, enjoy faster speeds with Multi-Link Operation, increased reliability with Multi-RUs, and more data capacity with 4K-QAM, delivering enhanced performance for all your devices.
  • 𝐁𝐄𝟑𝟔𝟎𝟎 𝐃𝐮𝐚𝐥-𝐁𝐚𝐧𝐝 𝐖𝐢-𝐅𝐢 𝟕 𝐑𝐨𝐮𝐭𝐞𝐫: Delivers up to 2882 Mbps (5 GHz), and 688 Mbps (2.4 GHz) speeds for 4K/8K streaming, AR/VR gaming & more. Dual-band routers do not support 6 GHz. Performance varies by conditions, distance, and obstacles like walls.
  • 𝐔𝐧𝐥𝐞𝐚𝐬𝐡 𝐌𝐮𝐥𝐭𝐢-𝐆𝐢𝐠 𝐒𝐩𝐞𝐞𝐝𝐬 𝐰𝐢𝐭𝐡 𝐃𝐮𝐚𝐥 𝟐.𝟓 𝐆𝐛𝐩𝐬 𝐏𝐨𝐫𝐭𝐬 𝐚𝐧𝐝 𝟑×𝟏𝐆𝐛𝐩𝐬 𝐋𝐀𝐍 𝐏𝐨𝐫𝐭𝐬: Maximize Gigabitplus internet with one 2.5G WAN/LAN port, one 2.5 Gbps LAN port, plus three additional 1 Gbps LAN ports. Break the 1G barrier for seamless, high-speed connectivity from the internet to multiple LAN devices for enhanced performance.
  • 𝐍𝐞𝐱𝐭-𝐆𝐞𝐧 𝟐.𝟎 𝐆𝐇𝐳 𝐐𝐮𝐚𝐝-𝐂𝐨𝐫𝐞 𝐏𝐫𝐨𝐜𝐞𝐬𝐬𝐨𝐫: Experience power and precision with a state-of-the-art processor that effortlessly manages high throughput. Eliminate lag and enjoy fast connections with minimal latency, even during heavy data transmissions.
  • 𝐂𝐨𝐯𝐞𝐫𝐚𝐠𝐞 𝐟𝐨𝐫 𝐄𝐯𝐞𝐫𝐲 𝐂𝐨𝐫𝐧𝐞𝐫 - Covers up to 2,000 sq. ft. for up to 60 devices at a time. 4 internal antennas and beamforming technology focus Wi-Fi signals toward hard-to-reach areas. Seamlessly connect phones, TVs, and gaming consoles.

These examples are not universal settings: use the documented port and protocol for your application, and choose a distinctive name so you can identify the rule later. The command reference also documents ways to list active rules and export firewall policy.

Quick Recap

SaleBestseller No. 1
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
VPN SERVER: Archer AX21 Supports both Open VPN Server and PPTP VPN Server
$59.98
SaleBestseller No. 2
Best Value
Sale
TP-Link Dual-Band AX3000 Wi-Fi 6 Wireless Gigabit Internet Router for Home
  • Next-Gen Gigabit Wi-Fi 6 Speeds: 2402 Mbps on 5 GHz and 574 Mbps on 2.4 GHz bands ensure smoother streaming and faster downloads; support VPN server and VPN client¹
  • A More Responsive Experience: Enjoy smooth gaming, video streaming, and live feeds simultaneously. OFDMA makes your Wi-Fi stronger by allowing multiple clients to share one band at the same time, cutting latency and jitter.²
  • Expanded Wi-Fi Coverage: 4 high-gain external antennas and Beamforming technology combine to extend strong, reliable, Wi-Fi throughout your home.
  • Improved Battery Life: Target Wake Time helps your devices to communicate efficiently while consuming less power.
  • Improved Cooling Design: No heat ups, no throttles. A larger heat sink and redefined case design cools the WiFi 6 system and enables your network to stay at top speeds in more versatile environments.

If the connection still does not work

  • Verify the service: Check that the application is running and listening on the port you allowed.
  • Check the rule: Confirm it is enabled and that its direction, TCP/UDP selection, local port, profile, program, and address scope match the intended connection.
  • Check the network path: A Windows Firewall rule does not configure a router or upstream network. If connections originate outside the local network, any needed router configuration is a separate step.
  • Check device management: On a work or school PC, organization policy may prevent changes. Contact the administrator rather than trying to bypass policy.
  • Avoid disabling the firewall: Turning off the entire firewall can make the PC more vulnerable and is not a routine fix for one application. Microsoft’s Windows Security guidance also warns that incorrect advanced changes can increase exposure or disrupt apps; it documents restoring firewall settings to defaults, after which organization-applied policies may be reapplied.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.