[Winpcap-users] WinPCAP as a loopback device

Paal Tamas paal_to at freemail.hu
Tue Aug 18 06:37:07 PDT 2009


Hi!

I'd like to use WinPCap as a communication channel between applications running on the same PC. I tried this, but it did not work. 
1. As a first try I started two applications (of mine) that open the same physical ethernet card (using WinPCAP 4.0.2). The first application sent out a frame  (I was able to capture it using Wireshark running on another machine, connected to the ethernet card in use), but I was not able to receive this frame by my other application (running on the same PC as the sender). 

2. As a second try, I installed the Microsoft Loopback device, and tried the same as before, with the same (un)luck. (There was no Wireshark on the other end, since there is no other end in this case...)

3. If I try to capture the traffic using Wireshark on the same PC as the sender is, it captures nothing.

 I use the ethernet device in PROMISCUOUS mode by setting only the PCAP_OPENFLAG_PROMISCUOUS flag for pcap_open(). Why am I not able to capture the packet ,sent by my 1st application, in my 2nd application on the same PC? Is it a theoretical problem, or I have a configuration issue?

Certainly this all is only a test. I will use PCAP and the ethernet card as an interface between several machines in the future, but it would be nice if I could create a "Virtual system" on a single PC too.

Thank you in advance.
Tamas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20090818/fe019fbf/attachment.htm 


More information about the Winpcap-users mailing list