Article # 591
Category: General : Windows
How to Listen to TCP/IP Port in Windows
Whenever an application wants to make itself accessible over the network, it claims a TCP/IP port, which means that port can’t be used by anything else
Listening on a Port
The first step is to use a command-line tool to see what ports are in use, and use a special flag that tells us which port is assigned to each Windows process identifier number. Then we can use that number to look up exactly which process it is.
Open up a command prompt and type in the following— Administrator mode to see all processes:
netstat -aon | more
List of Pids will be opened, find the port which is to be bounded
An example, see that 0.0.0.0:80, or port 80, is in use by PID 4708
Simply open up Task Manager—Then use the option to Show Processes for All Users, and that enables to find the PID in the list.
Use End Process, Open File Location, or Go to Service(s) options to control the process or stop it.
Use Curr Ports to View What is Listening
Just open up the utility, and we can see every—processes, ports, remote ports, the full path to the process.
Double-click on any of the item we can see every single thing in detail
We can also use Curr Ports to directly kill the process which we want.