Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UDP packets from 1 IP to 2 IP

Status
Not open for further replies.

bluegnu

Technical User
Sep 12, 2001
131
GB
Please bear with me here, I'm not totally sure what I'm talking about so apologies!

I have a program that transmits UDP packets to a single IP address to populate data in a SQL database.

I cannot amend this program, but what I need to do is send the same data to 2 identical PC's at the same time(rather than the 1 which it currently transmits to). Is it possible to do this?

Like I said, I don't really know what I'm talking about - all I know is that the program I use allows me to put 1 IP in and I need to send the information to 2 IPs

thanks
 
There are probably numerous ways to do this, but here is what I can think of off the top of my head. I can't think of a single way to do it that doesn't require some system to receive the initial UDP request and resend to two IPs.

The most straight forward, platform independent method would be to use PERL and Net::RawIP or IO::Interface to receive the packets, duplicate them, alter the headers and resend. Using Net::RawIP you may be able to duplicate the packets as they are leaving the computer, but I'm not sure about that.

You could also write something in C or C++ using winsock, or you could also do it with VB or C# using System.Net.UdpClient.


pansophic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top