Computer ports are an essential feature of all computing devices. Computer ports give the comments and output interfaces the device needs to communicate with peripherals and computer networks. The most important ports on computers are used for computer networking.
The physical ports are those which we can see on the sides of our laptops and on the backside of our CPU. Each one has a different functionality and can be distinguished by the unique shape of each port. If you want to look for the functions of each physical port, click here for the Wikipedia page.
In this session, however, we will be discussing primarily of the networking ports of a computer and how to control / block one or more specific ports according to our need.
Computer Networking Ports are the ones which we cannot perceive through one’s eyes or touch i.e. it is an abstract term for, what we can call, a media for sharing of resources (files, data, etc.).
Port numbers are from 0 to 65535. Ports 0 to 1024 are reserved for use by certain privileged services. For the HTTP service, port 80 is defined as a default and it does not have to be specified in the Uniform Resource Locator (URL).
Working in various fields in the Computer Science sector, users may encounter the need to block or open a specific port depending on their need. The following step-by-step procedure gives detailed explanation of the same.
(Please keep in mind that the following procedure is performed and verified for Windows 10 / 8 / 7. If you are using an operating system other that these, you may encounter some variations.)
Step.1: Click on the START button and type “Windows Firewall”. The Windows Firewall icon will appear. Click on the icon.
Note: Although there are many methods to open the “Windows Firewall” dialog box, we prefer this one as it is the simplest one.
The following dialog box will appear:
The above dialog box is showing various options regarding the Windows Firewall.
The Windows Firewall is a very important feature of your computer system as it protects your system from various viruses and other malicious activity that might affect the smooth running of your PC. So it is better not to experiment with those features that you are unaware of. Always remember, Prevention is better than cure.
Step.2: Now, on the left hand panel of the above window, click on the “Advanced Settings” option. You will see the new firewall window showing a list of rules on the left side. From the list, select Inbound Rules to display the inbound rules section.
This will display a list of all the Inbound Rules that your system is currently using. We can view the properties of any of the rules. We can also enable / disable different rules.
Again, if you are not aware what a specific rule does, then it is in the best interest not to alter its properties. Often, the alteration in a single property may start a chain reaction which will bring down several other properties with it.
Step.3: From the right pane click on “New Rule”. This will give you a “New Inbound Rule Wizard”.
Select the “Port” option and Click NEXT.
Step.4: If you are a newbie to this process, then for safety purposes please select the TCP port. If you know what you are doing then you can select either of them according to your need or preference.
Select the TCP port and click on “Specific Local Ports”. In the box, type any port number for e.g. 80.
Click on Next option.
Step.5: Now select “Block the connection” and click Next option in the following dialog box.
Step.6: In the next dialog box to appear, select all the profiles available i.e. Domain, Private and Public. Click on the Next option.
Step.7: You are almost there!!
Now, give a Name for your new rule. You can choose any name you like. You can also give a Description of the rule. However, this is an optional step.
Finally, click the Finish button to configure the settings.
Now, the port number 80 of your computer system has been blocked.
You can enable/disable the rules. Also you can add or delete the rules according to your need.