sudo tcpdump -A -vvvv -i lo0 port 7000 > /tmp/sample
explain:
Capture packets with tcpdump
Packet capture network card: lo0
Capture port: 7000
Packet capture accuracy: the most complete content
Capture packet content: print each captured packet in ASCII
Store the captured packets in the /tmp/sample file