$ sudo lsof -n -P -i +c 13 | egrep -i 'rabbit.*listen'
epmd 1317 rabbitmq 3u IPv4 23830 0t0 TCP *:4369 (LISTEN)
beam.smp 1410 rabbitmq 12u IPv4 24006 0t0 TCP *:25672 (LISTEN)
beam.smp 1410 rabbitmq 33u IPv6 24115 0t0 TCP *:5672 (LISTEN)
beam.smp 1410 rabbitmq 36u IPv4 20442 0t0 TCP *:15672 (LISTEN)