port 8080 mac code example
Example 1: how to port number of 8080 in macos
$ lsof -i :8080 | grep LISTEN
java 42975 mkyong 57u IPv6 0xf10ca37d995a077f 0t0 TCP *:http-alt (LISTEN)
Example 2: mac find who is using port 8080
$ lsof -i :8080 | grep LISTEN
or
$ ps -ef 42975