So to confirm which application is really running in that port we have to check out what is the status of the port and the process ID running in that port
To list the ports
netstat –aon
The -n tells netstat to show the IP addresses and ports as numbers only.
The -a tells it to show us all active connections and the ports on which the computer is listening.
The -o represents process ID
To check a specific port
netstat –aon | find "5000"
netstat –aon
The -n tells netstat to show the IP addresses and ports as numbers only.
The -a tells it to show us all active connections and the ports on which the computer is listening.
The -o represents process ID
To check a specific port
netstat –aon | find "5000"
this will produce the result as
C:\windows\system32>netstat -aon | find "5000"
Proto Local Address Foreign Address State PIDTCP 127.0.0.1:5000 0.0.0.0:0 LISTENING 16056
TCP [::1]:5000 [::]:0 LISTENING 16056
now go to task manager and find the process ID and kill it.
0 comments:
Post a Comment