Configure programs and ports:
Common sense applies to opening ports: Open one only when you really need it, never unblock a program that you don’t recognize, and close a port when you no longer need it. But sometimes you’ll change your mind about a program or will be tricked into unblocking a hostile program named to fool you. Windows Firewall lets you create exceptions for these programs and manage them manually.
1. Open Windows Firewall.
2. Click Allow a Program through Windows Firewall. If a security prompt appears, type an administrator password or confirm the action.
3. On the Exceptions tab of the Windows Firewall Settings dialog box, do any of the following:
- To open or close ports for specific programs, check or uncheck the boxes.
- To add a program, click Add Program; then select it in the list or browse to it.
- To delete a program, select it in the list; then click Delete. (You can’t delete the preconfigured programs.)
- To open an individual port by number, click Add Port; then type the port name (any name) and number, and select a protocol. (Windows assumes that you’re geeky enough to know the port number and protocol or that you read it in the program’s documentation.).If you’re adding a program or port, you can click Change Scope to change the set of computers that can use this port.