1, start-control panel;
2. Click on the network and Internet connection;
3. Click Windows Firewall;
4. Click Advanced Settings.
5, click on the access rules and then click the new rules on the right, in the dialog box, select the port-Next.
6. Select TCP, select a specific local port, and enter the port number in the input box at the back. Next.
7. Select the specified operation to block the connection, and then click Next to finish the setting.