Answers for "how to listen to a specific port mac"

2

port finding in macos

$ lsof -nP -iTCP -sTCP:LISTEN | grep 8000
Posted by: Guest on March-13-2021
0

mac list used port

sudo lsof -nP -iTCP:$PORT | grep LISTEN
sudo lsof -nP -i:$PORT | grep LISTEN
Posted by: Guest on October-27-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language