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