# Check for open ports

[https://phoenixnap.com/kb/linux-check-open-ports](https://phoenixnap.com/kb/linux-check-open-ports)

```bash
 lsof -nP -iTCP -sTCP:LISTEN

 netstat -tunpl

 ss -tunlp

 nc -z -v localhost 1-65535 2>&1 | grep succeeded
```