

If you want to focus your capture on a specific IP address, enter the following capture filter before starting your capture: “host. Wireshark How to Capture Packets From a Specific IP Address You’ll see both the requests and the replies to the ping in the packets list. Create a filter for ping packets by typing “icmp” in your display filter bar, then hit Enter.Go back to Wireshark and stop the capture process.Open your command prompt and ping the address of your choice.Open Wireshark and start the capturing process as described above.The best way to capture ping packets (otherwise known as Internet Control Message Protocol (ICMP) Echo traffic) in Wireshark is by using a display filter in capture mode. You’ll have to enter “udp.port = 68” in the display filter bar.

However, remember that display filters use a different syntax than capture filters. Similarly, a display filter can filter out DHCP packets in your capture screen. Use the capture filter “port 67” or “port 68” or the combination of the two “port 67 or port 68” to capture DHCP packets. To capture DHCP packets exclusively, you’ll need to enter the corresponding port number in the capture filter. The filter bar will be at the bottom of the Capture Interface.

Tip: Another way to adjust your capture filters is clicking “Capture,” then “Options” in the menu. You can also add a specific port after “udp” if you wish to specify your filter further.
