how to know which ports are running and services using it code example Example: find out process using port windows netstat -ano | findstr 8080