Multiple Network Adapters - How to find where the message is from

  • Thread starter Thread starter Rollasoc
  • Start date Start date
R

Rollasoc

Hello,

I have a situation with my PC, where I have three network cards
installed.

I have a piece of hardware sending UDP messages every now and then.
I want to capture these messages. But I need to know which network
adapter they came in on. (for reasons, I can only talk to the
hardware using a certain network address on the physical card, so will
need to reconfigure the card programatically (which I can already
do). If only I knew what card the UDP message was coming in on).

What would be the simplist way of doing this? (other than the brute
force method of disabling the other two cards and listening for a
time, then repeating for other cards until I get a message back).

(Obviously, I can physically look at the back of my PC to see which
one, but I need to do this programatically out in the field. We don't
want the user to have to worry about the network settings, we want it
to be totally automatic).

I've looked at the UDPClient stuff, but it doesn't cut it, so assuming
I need to go back to sockets. (my knowledge of which is a bit
sketchy).

Any ideas?

Rollasoc
 
Back
Top