how to open port on mac code example
Example 1: killing a port mac
sudo lsof -i :3000
Example 2: running ports in mac
sudo lsof -PiTCP -sTCP:LISTEN
Example 3: release a port in mac
sudo lsof -i :<port>
sudo lsof -i :3000
sudo lsof -PiTCP -sTCP:LISTEN
sudo lsof -i :<port>