If in windows, we can capture and analysis the packet with wireshark directly
If in Linux, we can capture the packet with tcpdump, and analysis by wireshark in windows.
(1) Tool install
(2) Capture with tcpdump
-s: define the length of captured packet, default is 96 bytes
-w: Write the raw packets to file rather than parsing and printing them out.
-i: specify the correct interface
(3) Analysis with wireshark
Use ftp upload the file to windows, and open the file with wireshark.
Android OS and iOS can also use tcpdump to capture the packet , detail info in the following links: