<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><div><font face="times new roman, new york, times, serif">Hoping to get some help from the experts here.  I have a service, "Listener", that is listing on 0.0.0.0:7070.  I have another application, "Agent" that receives fully-formed UDP/IP packets via a proprietary interface.  </font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">I would like to preserve the UDP/IP packet in its entirety (do not want to perform any NAT) and somehow get it from the Agent to the Listener.</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">Current setup:</font></div><div><font face="times new roman, new york, times, serif">Physical NIC with
 address 10.80.8.10 / 255.255.0.0</font></div><div><font face="times new roman, new york, times, serif">Microsoft Loopback Adapter with address 10.10.10.1 / 255.255.0.0</font></div><div><font face="times new roman, new york, times, serif">IP Forwarding enabled via Registry Edit (Windows XP / 7)</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">The IP packet that the Agent has received is addressed to 10.10.10.1:7070 (Virtual NIC).  </font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">What I can get to work:</font></div><div><font face="times new roman, new york, times, serif">Using WinPcap and WinPcap::SendPacket, I can attach to the Physical NIC and send the packet to that NIC.  The packet is then forwarded to the Virtual NIC (I assume) and received by the
 Listener.  </font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">Problem: My target system does not have a Physical NIC</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">I tried installing a 2nd Microsoft Loopback Adapter, mimicking the addresses of the Physical NIC, attaching WinPcap to the 2nd Loopback Adapter, and sending the packet to it, just like I did with the Physical NIC, and... nothing.  I've also tried experimenting with sending it to a Raw Socket, with no results (not sure if I'm doing something wrong, have never used raw sockets before).</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">So, I'm hoping someone can point me in the right direction.
  End goal is to get the pre-formed packet from the Agent to the Listener, and I really don't care what the mechanism is (WinPcap, Raw Sockets, something simple I'm too ignorant to know about, anything else), so long as the Listener receives the packet and the IP/UDP headers and Data payload are unmolested.</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">Cheers,</font></div><div><font face="times new roman, new york, times, serif">Chris</font></div></div></div></body></html>