In the Task Manager interface, select Details. At this time, the column corresponding to PID is the open port number of our computer. In addition, we can also see the program corresponding to this open port.
2. Add a new port number: Open windows Firewall Settings under Control Panel and select Advanced Settings:
Select the inbound rule, and then click New Rule on the right side of the window:
Under Protocol and Port, select a port:
Finally, according to the type of port we open (TCP or UDP), and then enter the value of the port number we want to increase in "specific local port".