netstat to check port windows code example Example 1: netstat find port netstat -na | find "8080" Example 2: netstat check port sudo netstat -plnt