473,505 Members | 15,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MAC Address/Physical Address?

SJ
I know I can use System.Management library, but it returns like 6 different
values all
of which look like MAC addresses. Which one do I pick and how do I identify
it?
ManagementClass oMClass = new ManagementClass
("Win32_NetworkAdapterConfiguration");

ManagementObjectCollection colMObj = oMClass.GetInstances();

foreach(ManagementObject objMO in colMObj)

{

if(objMO["MacAddress"] != null)

MACAddress += objMO["MacAddress"].ToString();

}
Jan 7 '06 #1
0 1283

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
9556
by: Krishna Sagiraju | last post by:
hai, can we convert virtual address to physical address using c/c++ ? thanx Krishna
4
12930
by: nilesh | last post by:
Hello, I have a basic doubt. Consider following program : #include<stdio.h> int main() { int i, *ip; i = 10; ip = &i;
9
3596
by: sushant | last post by:
hello, my question is related with the address of a variable in C. suppose if i am printing the address of a variable, so that address will be virtual address or physical address. and why it'll...
4
1989
by: Verde | last post by:
I know this is somewhat OT, but don't know where else to ask: How can I discover the rough physical location of an IP address? By "rough physical location" I'm thinking at least country, and...
4
1788
by: UJ | last post by:
Is there any way to find out the actual MAC Address that a request comes in from? We are trying to get a way where we can limit access to specific machines (TCP/IP isn't good enough - we want to do...
5
12800
by: ampeloso | last post by:
Hello, I would like to allocte memory, but I want it to start at a predefined address. I have a program that writes data to ROM in an embedded device and I would like to state where it goes. Can...
20
2831
by: sethukr | last post by:
hi, i need to store a value to a particular memory location without having a variable. So, how can i access a 'memory address' without using variables?? Is it possible in C??? Plz, help...
9
2567
by: volcano | last post by:
Can it be done, and if yes - how?
3
1703
by: =?Utf-8?B?TWFyaw==?= | last post by:
I have an ASP.Net 1.1 site that uses Server.Transfer() heavily. Specifically, I use a page called /misc/pagenotfound.aspx to implement logic that maps URLs of the format /vdir/california to a...
1
7435
by: Pioneer | last post by:
Hi, I need to get MAC address/physical ip address of machine. I am using below code: ManagementClass mc = new ManagementClass("Win32_NetworkAdapter"); foreach (ManagementObject mo in...
0
7098
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...
0
7303
Oralloy
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,...
0
7367
jinu1996
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...
1
7018
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...
0
7471
tracyyun
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...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5028
isladogs
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...
0
4699
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...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.