Quick Tip: Who is listening on given TCP port on MacOS?
·1 min read·paskov
For Big Sur and later:
sudo lsof -i -P | grep LISTEN | grep :$PORTWhere $PORT is the port you are looking for. Ex: 3306
For Big Sur and later:
sudo lsof -i -P | grep LISTEN | grep :$PORTWhere $PORT is the port you are looking for. Ex: 3306