How to find a list of sockets held by a process in windows?

Try netstat

Type the type the following from an elevated (admin) command prompt:

Windows: netstat -a -o -n -b

Linux: netstat -4 -6 -a -n -p

On Windows, -b is to display the executable involved in creating each connection or listening port. See netstat --help for a list of all options.

On Linux, -p is the equivalent. Type man netstat for more information.


Leave a Comment