# Quick Tip: Who is listening on given TCP port on MacOS?

*2024-03-18*

> Find which process is listening on a specific TCP port on macOS Big Sur or later using lsof and grep in Terminal.

For Big Sur and later:

```sh
sudo lsof -i -P | grep LISTEN | grep :$PORT

```

Where _$PORT_ is the port you are looking for. Ex: 3306

