Using netstat

PORT=80; sudo netstat -ltnp | grep ":${PORT}"

Using lsof

PORT=80; sudo lsof -i :${PORT}