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