check port use on windows code example
Example 1: how to check for open ports in windows
netstat -an
Example 2: check ports in use windows 8080
netstat -aon | findstr 8080
tasklist | findstr <PID>
netstat -an
netstat -aon | findstr 8080
tasklist | findstr <PID>