Win7 the system to share files, do not want others to access the other port content through this port. You can prevent other hosts from accessing certain ports on this computer by Win7 the system's firewall.
First, take a look at inbound rules and outbound rules: Inbound is someone else visiting you, outbound is you visiting others.
Turn on Control Panel-"system and Security"-"Windows Firewall." Click Advanced Settings on the left panel to appear in the Advanced Secure Windows Firewall window:
Click on the "Inbound rules" on the left and click "New rule" on the right and select "Port":
Next, select protocols and ports, such as TCP and Port 4000:
"Next" SELECT "Block Connection":
Next, select as needed:
Finally, set the name and click "Finish":
After that, the new rule is enabled by default on the firewall.
Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 welcome you to join