display port code example Example 1: lsof port $ lsof -i :port # ex. lsof -i :3000 Example 2: netstat check port sudo netstat -plnt