469,645 Members | 1,187 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

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

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

Aug 16 '07 #1
1 1459
Im still a bit of a newbie to help you farther but i think you may be able
to do it this way:

http://www.xtremevbtalk.com/showthread.php?t=180606

and use the MAC address to see which one is open or not of the network card.

-Just a thought

Miro

"Rollasoc" <ro******@hotmail.comwrote in message
news:11**********************@d55g2000hsg.googlegr oups.com...
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

Aug 16 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Olivier Parisy | last post: by
4 posts views Thread by Matthew K Jensen | last post: by
3 posts views Thread by Maniaque | last post: by
3 posts views Thread by Mark Prenter | last post: by
8 posts views Thread by rongchaua | last post: by
25 posts views Thread by Fred | last post: by
reply views Thread by amir | last post: by
4 posts views Thread by =?Utf-8?B?TWFydGlu?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.