Use tcpdump to capture packets

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327014734&siteId=291194637