find what port a service is listening on code example Example: find which service is using port netstat -aon | findstr<port_number> tasklist | findstr 9260