Checking which application is using a port:
Checking which port is being used by a application:
Exactly the reverse of the above steps.
- Open the command prompt
- Type netstat -aon | findstr [port_number]
- If the port is being used by any application, then that application’s detail will be shown. The last column of the list, is the PID of that application. Take a note of the PID.
- Type tasklist | findstr [PID]
- You’ll be shown the application name that is using your port number.
Checking which port is being used by a application:
Exactly the reverse of the above steps.
- Open the command prompt
- Type tasklist | findstr [application_name]
- Make note of the PID (second column) from the details shown.
- Type netstat -aon | findstr '[PID]'
- You’ll be shown the application detail and the corresponding port to which it is listening.
No comments:
Post a Comment