It has been my experience that you will not be able to accomplish this. Essentially, any traffic bound for the local/loopback interface is routed inside the IP stack, so that it is never seen by NDIS. Since WinPcap is an NDIS driver, the packets are never seen.
In my experience it is impossible to sniff packets destined for a local or loopback interface, using any packet capture program, from network monitor from M$ to an application that uses WinPcap (such as Ethereal). SLH. > > Hi, > > I have a (hopefully!) simple question. I have the following > situation:- > > I have two java applications (running as servers) on my machine. I'll > call them App1 and App2. > These applications communicate with each other over http on assigned > ports. > I have a single machine with the following setup:- A wireless network > adaptor that is assigned to IP 192.168.0.3 on my home network, App1 is > running on this ip. > A 'wired' network adaptor that is assigned to IP 192.168.0.4 on the > same network, App2 is running on this ip. > > So, I have one machine with 2 network cards, each with a different IP > address and an application running on each. > What I want to do is be able to capture the network traffic between > these apps when they talk. I'm using Ethereal and subsequently the > Winpcap libraries. > Currently the tool will happily capture traffic I send to and from the > internet, but when I set it to capture traffic 'internally' I see no > packets. > > The Ethereal mailing list suggested I contact this one! Any help on > this would be very much appreciated. > > Regards, > Steve B > > > ====================== > This is the WinPcap users list. It is archived at > http://www.mail-archive.com/[EMAIL PROTECTED]/ > > To unsubscribe use > mailto: [EMAIL PROTECTED] > ====================== > ================================================================= This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] =================================================================
