kill ports macc code example Example 1: killing a port mac sudo lsof -i :3000 Example 2: release a port in mac sudo lsof -i :<port>