-
You can try
netstatnetstat -vanp tcp | grep 3000 -
For macOS El Capitan and newer (or if your netstat doesn’t support
-p), uselsoflsof -i tcp:3000
You can try netstat
netstat -vanp tcp | grep 3000
For macOS El Capitan and newer (or if your netstat doesn’t support -p), use lsof
lsof -i tcp:3000