see service running on a particular port code example Example: find which service is using port netstat -aon | findstr tasklist | findstr 9260