how to check if a port is getting used by any service code example
Example: find which service is using port
netstat -aon | findstr<port_number>
tasklist | findstr 9260
netstat -aon | findstr<port_number>
tasklist | findstr 9260