Firewalls are available to protect you from Internet threats (both internet traffic and local applications trying to access when they should not). Sometimes, however, you want to allow other limited traffic through your firewall. To do that you must open a port.
When a device connects to another device on a network (including the Internet), it specifies a port number that allows the recipient to handle the traffic. If an IP address shows traffic how to access a particular device on a network, the port number allows the receiving device which program is receiving that traffic. By default, most unwanted traffic from the Internet is blocked by Windows Firewall. If you run something like a game console, you may need to open a port to allow the specific type of traffic through the firewall.
Note: This article shows how to open a port on a particular firewall for a particular computer to allow traffic. If you have a router on your network (as you probably do), you must also allow the same traffic through this router through to forward the port there.
To open a port on Windows 1
Click Start, type "Windows Firewall" in the search box, and then click "Windows Defender Firewall."
When Windows Firewall is opened click on "Advanced Settings."
This launches Windows Defender Firewall with Advanced Security. Click the "Incoming Rules" tab on the left. Click the command "New Rule" in the far right.
If you need to open a rule for outgoing traffic, instead of clicking "Incoming Rule", click "Outgoing Rule". "Most apps are quite good at creating their own outgoing rules when installing them, but sometimes you can agree to one that can not.
On the Rule Type page, select the" Port "option and then click on "Next."
On the next screen, you must choose whether the port you open uses the Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) protocol. Unfortunately, we can not specifically tell you which use you should use because different apps use different protocols. Port numbers can range from 0-65535, with ports up to 1023 reserved for privileged services. You can find an unofficial list of (most) TCP / UDP ports on the Wikipedia page. , and you can also search for the app you are using. If you can not determine the specific protocol that will be used for your app, you can create two new incoming rules, one for TCP and one for UDP.
Select the option "Speci fika local ports "and then type the port number in the fields provided. If you open more than one port, you can distinguish them from commas. If you need to open a series of ports, use a dash (-).
Click on "Next" when you're done.
On the next page, click "Allow connection" and then click "Next".
Note! For this wizard, we use the Allow connection option, because we trust the connection we "Create a Rule Again" If you want a little more peace of mind, use "Allow Connection if It's Safe" the Internet Protocol Security (IPsec) to authenticate the connection. You can try that option, but many apps do not support it. If you try to secure the option and it does not work, you can always come back and switch to the less secure.
Then select when the rule applies and click "Next." You can select one or all of the following:
- Domain: When a computer is connected to a domain controller like Windows can verify domain access.
- Private: When a computer is connected to a private network, such as a home network or network you trust.
- Public: When a computer is connected to an open network, such as a cafe, an airport or a b ibliotek where someone can join and the security is unknown to you.
RELATED: What is the difference between private and public networks in Windows?
In the last window, give your new rule a name and an optional, more detailed description. Click "Finish" when done.
To disable the rule at any time, locate it in the list of incoming or outgoing rules, right-click it, and then click "Disable rule."
That's all there is. If you need to open other ports for another program or with another rule, repeat the steps above with another set of ports to open.
RELATED: How to Create Advanced Firewall Rules in Windows Firewall