how to capture network traffic in the pcap file using tcpdump command?
<p>I want to capture network trafic of my application using tcpdump command.</p>

<p>I'm implemented the Websocket client and server, in which server is sending messages to the connected clients continously. So in that scenario I just want to capture this messages in one pcap file.</p>

<p>previously I used this command which is not working properly : </p>

<p><code>sudo tcpdump -ni eth0 -s0 -w mycap.pcap</code>  </p>

<p>Can anyone told me how to capture such type of network traffic  using tcpdump command?</p>