netstat get listening ports windows code example Example: netstat find port netstat -na | find "8080"