If Windows Firewall is blocking a program and you want to allow that program to communicate through the firewall, you can usually do that by selecting the program on the Exceptions tab in Windows Firewall. To learn how to do this, see Allow a program to communicate through Windows Firewall.
However, if the program isn't listed on the Exceptions tab, you might need to open (add) a port. For example, to play a multiplayer game with friends online, you might need to open a port for the game so that the firewall allows the game information to reach your computer. Unlike an exception, which is only open during the time that it is needed, a port stays open all the time, so be sure to close ports that you don't need anymore.
Open Windows Firewall by clicking the Start button , clicking Control Panel, clicking Security, and then clicking Windows Firewall.
Click Allow a program through Windows Firewall.
If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Click Add port.
In the Name box, type a name that will help you remember what the port is used for.
In the Port number box, type the port number.
Click TCP or UDP, depending on the protocol.
To change scope for the port, click Change scope, and then click the option that you want to use. ("Scope" refers to the set of computers that can use this port opening.)