I learned here about the utility DumpCap to get the right ip on which Wireshark is actually captures(the syntax is DumpCap -D -M, thanks Kurt). I want to deploy it inside my open source application but if there is a better alternative I'd be very happy, since it demands to deploy all the dll's that come with Wireshark(Wireshark itself is not deployed but WinPcap does) Can someone direct me regarding and alternative? Thanks in advance I. Lesher asked 06 Aug '12, 01:04 triplebit |
One Answer:
Then the "better alternative" might be to just use, in your application, the same WinPcap calls that dumpcap uses (I say "WinPcap" because you say "dll's" rather than "shared libraries" or "so's" or ".so's", so you're presumably doing this on Windows). The call is answered 07 Aug '12, 11:38 Guy Harris ♦♦ |
do you want to capture packets in your application or just let it print the IP addresses (dumpcap -D -M)?
Thanks Mr. Kurt I want it just to print the IP addresses. Regards I. Lesher
then running one of these commands would be the easiest way:
Available on all windows systems >= WinXP, no need to install any libraries.
Then parse the output to extract the ip addresses.