How to capture packets between 2 IP’s
I am trying to capture date between to devices on the same network. How do I go about
since it is a switched network you might get into issues. Best solution is to connect directly to the router or mirror on one port of the switch the rest of the ports. Then get to the filters of the wireshark and type
ip.addr == 192.168.1.38 && ip.addr==192.168.1.1
192.168.1.1 is the router IP and 192.168.1.38 is the PC IP.
As you're most likely capturing on a switched network capturing on two other devices isn't trivial, see the Wiki page on Ethernet Capture setup, particularly the sections on switched networks.
Try to capture on host A,then apply a capture filter for host B.
host xx.xx.xx.xx
or link : https://gitlab.com/wireshark/wireshar...
Asked: 2021-08-09 02:27:56 +0000
Seen: 8,410 times
Last updated: Aug 09 '21
Not much to go on in your question. PLease elaborate more on what you want to achieve and what your network looks like. (What hosts? what sort of network? switches? routers?)
Sorry about the detail
I wish to capture the traffic between the PC I am on (192.168.0.113) and the Router (192.168.0.1) with two Switches in between.
Cheers GarryB