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