カイワレの大冒険 Third

技術的なことや他愛もないことをたまに書いてます

Macでリッスンしているポートを調べる

以下を叩く。

$ sudo lsof -i -P | grep -i "listen"
Password:
VBoxHeadl 1358         masudak   20u  IPv4 000000000000      0t0    TCP *:8080 (LISTEN)
<省略>

以下では、情報でないので要注意。

$ netstat -tnl |grep -i 8080