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 1 1622
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******@hotma il.comwrote in message
news:11******** **************@ d55g2000hsg.goo glegroups.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Olivier Parisy |
last post by:
Hi all,
I'd like to get, in a portable way, a list of all
network adapters on a local machine running some
python code.
socket.gethostname() does not seem enough, as it
only returns one name ; I'd like to get all
available IPs.
|
by: Matthew K Jensen |
last post by:
In one of my "because I can" projects, I want to be able to see the
enabled network interfaces on a machine. I have no clue as to how to
do this. Any suggestions?
|
by: FrodoBaggins |
last post by:
Dear Team,
I have set up a Windows Server 2003 on a laptop PC in order to experiment
with Visual Studio .NET.
On attempting to set up Active Directory, I get the message:
"The wizard has detected that there are no valid IP addresses assigned to
any of the network adapters for this computer. Please verify that the
network cable is connected, and that a DHCP server is available or the
|
by: Maniaque |
last post by:
Does anybody knows, how can I address multiply network adapters on one
computer?
I've looked up through classes reference and found nothing.
Thanks in advance.
--
.... blood, sugar, sex, magic ...
|
by: Mark Prenter |
last post by:
Hello, I'm trying to find a way to retrieve the MAC address from a network
card in a Visual C++ .NET managed application.
I've found some examples in C#, but I just can't get them to work in C++.
Here's what I've found in C#:
using System.Management;
.....
ManagementClass mc = new
ManagementClass("Win32_NetworkAdapterConfiguration");
| |
by: rongchaua |
last post by:
Hi all,
i would like now to disable and enable network adapter programmatically with
c#. I have searched but found nothing useful. There's no topic about this
problem. Has someone done with this problem?
All help will be appreciated.
rongchaua.
|
by: Fred |
last post by:
Our server has 8 IPs with 121.232.21.1 as default (example).
I wrote a windows service that downloads podcasts (mp3s) off the net.
However every time this service runs it clogs down the entire server, even
though its not that bandwidth intensive. (30kps on a 100Mbps line)
Process resource at 20% max.
I would like to know if anyone knows what is causing this problem. What
command in c# can I use to assign the service a different IP to...
|
by: amir |
last post by:
Hello All,
I am currently looking for writing an application that will act like
a
network bridge. Meaning, I have 2 network adapters and i want all
thing
from 1 adapter will pass directly to the other adapter (both ways).
Wandered
if anyone has written something like that, or can tell me where to
read about it, or maybe c# has a simple class for accesing network
adapters and doing those connectios.
|
by: =?Utf-8?B?TWFydGlu?= |
last post by:
In Device Manager under Network Adapters, nearly all (about 20) items have a
yellow warning symbol. The first item, Microsoft 6to4 Adapter says driver is
up-to-date BUT says "This device is not working properly because Windows
cannot load the drivers required for their device (Code 31). Similar message
in all other 20 items under network adapters. Have checked for solutions -
send data to Micosoft- but so far no solutions. Any help please?...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |