Wireshark is a tool for packet filtering in network adapter.
Use following steps to capture packets in Wireshark.
1) Start network interface for capturing for Wireshark Capture/Interfaces
2) Enter filtering in Wireshark filtering option under menu bar
Ex :- ip.addr==18.104.22.168
Above is a filtering packets for ip "22.214.171.124"
3) Right-click on a packet and Follow TCP stream. This gives packet contents.