<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Comments for Three Ways To Get Your System's Network MAC Address</title>
<link rel="alternate" type="text/plain" href="http://dn.codegear.com/article/26040" title="Three Ways To Get Your System's Network MAC Address" />
<link rel="self" type="application/atom+xml" href="http://dn.codegear.com/article/26040/feed" title="Comments for Three Ways To Get Your System's Network MAC Address" />
<id>http://dn.codegear.com/article/26040</id>
<updated>2008-11-19T08:05:31-08:00</updated>
<entry>
<title>Three Ways To Get Your System's Network MAC Address</title>
<author>
<name>Jubran Ghanadry</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=40571</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=40571</id>
<updated>2007-10-15T08:07:45-07:00</updated>
<published>2007-10-15T08:07:45-07:00</published>
<summary>Three Ways To Get Your System's Network MAC Address</summary>
<content>Hi allI tried to use the first suggestion, its works fine.. I succeed to get two different Mac addresses on my machine, the issue is that this current code works just in case the network adapter is connected, and fails to give the same results in case it&#8217;s disconnected, any idea?Jubran</content>
</entry>
<entry>
<title>Two supplementary ways to get the MAC address in Windows</title>
<author>
<name>Marian Robert</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=39006</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=39006</id>
<updated>2006-04-10T01:21:56-07:00</updated>
<published>2006-04-10T01:21:56-07:00</published>
<summary>Two supplementary ways to get the MAC address in Windows</summary>
<content>There're more two ways to get the MAC Address on Windows XP and later:From the command prompt you can type the following commands: GetMAC and IPconfig.On my computer it looks like that:H:\&gt;getmacPhysical Address    Transport Name=====================================================================00-0D-61-65-69-F1   \Device\Tcpip_{44058371-4AA4-4C86-82F7-E4161B7EC2E1}H:\&gt;ipconfig -allWindows IP Configuration        Host Name . . . . . . . . . . . . : marianrobert        Primary Dns Suffix  . . . . . . . :        Node Type . . . . . . . . . . . . : Unknown        IP Routing Enabled. . . . . . . . : No        WINS Proxy Enabled. . . . . . . . : No        DNS Suffix Search List. . . . . . : somethingEthernet adapter Local Area Connection:        Connection-specific DNS Suffix  . :        Description . . . . . . . . . . . : Marvell Yukon Gigabit Ethernet 10/100/1000Base-T Adapter, Copper RJ-45        Physical Address. . . . . . . . . : 00-0D-61-65-69-F1        Dhcp Enabled. . . . . . . . . . . : No        IP Address. . . . . . . . . . . . : 10.2.5.67        Subnet Mask . . . . . . . . . . . : 255.255.252.0        Default Gateway . . . . . . . . . : 10.2.7.7        DNS Servers . . . . . . . . . . . : 10.1.1.2                                            10.1.1.1Ethernet adapter {0E639582-BF2C-4F52-BDDE-E6E6A8327538}:        Connection-specific DNS Suffix  . :        Description . . . . . . . . . . . : Nortel IPSECSHM Adapter - Packet Scheduler Miniport        Physical Address. . . . . . . . . : 44-45-53-54-42-00        Dhcp Enabled. . . . . . . . . . . : No        IP Address. . . . . . . . . . . . : 0.0.0.0        Subnet Mask . . . . . . . . . . . : 0.0.0.0        Default Gateway . . . . . . . . . :What one can do is just capture the output of one of these commands and parse the information, looking for the MAC Addresses (or Physical Addresses). For instance, at the very least, one can create a temporary file, get the information inside it and then remove it.</content>
</entry>
<entry>
<title>Three Ways To Get Your System's Network MAC Address</title>
<author>
<name>Saurabh  Harit</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=38318</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=38318</id>
<updated>2005-03-31T07:58:40-07:00</updated>
<published>2005-03-31T07:58:40-07:00</published>
<summary>Three Ways To Get Your System's Network MAC Address</summary>
<content>also if i want to retrieve MAC address by using IOCTL then also i face the same problem of getting MAC address of virtual card in adition to MAC address of physical card. Please suggest me a way to discard NAC address obtained by virtual ethernet card.thanks &amp; regards</content>
</entry>
<entry>
<title>Three Ways To Get Your System's Network MAC Address</title>
<author>
<name>Saurabh  Harit</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=38317</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=38317</id>
<updated>2005-03-31T07:42:20-07:00</updated>
<published>2005-03-31T07:42:20-07:00</published>
<summary>Three Ways To Get Your System's Network MAC Address</summary>
<content>I like this method of retrieving MAC address butb at the same time I am facing a problem with the same.What can we do to avoid the virtual MAC address as it is also returned this function. I want to use only MAC address of physical ethernet card available on this system.</content>
</entry>
<entry>
<title>Three Ways To Get Your System's Network MAC Address</title>
<author>
<name>Misheck Masawi</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=36356</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=36356</id>
<updated>2004-03-18T02:37:52-07:00</updated>
<published>2004-03-18T02:37:52-07:00</published>
<summary>Three Ways To Get Your System's Network MAC Address</summary>
<content>I'm getting the following errors whem i try to compile netbios.ccp using vc++ 6.0 do u have any ldea on how i can fix these error ??--------------------Configuration: netbios - Win32 Debug--------------------Linking...netbios.obj : error LNK2001: unresolved external symbol _Netbios@4Debug/netbios.exe : fatal error LNK1120: 1 unresolved externalsError executing link.exe.Creating browse info file...</content>
</entry>
<entry>
<title>Three Ways To Get Your System's Network MAC Address</title>
<author>
<name>liu yi</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=36313</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=36313</id>
<updated>2004-03-10T07:10:38-08:00</updated>
<published>2004-03-10T07:10:38-08:00</published>
<summary>Three Ways To Get Your System's Network MAC Address</summary>
<content>Method 1:for (int i = 0; i &lt; AdapterList.length - 1; ++i)//Error should be:for (int i = 0; i &lt; AdapterList.length;i++)//</content>
</entry>
<entry>
<title>re: Three Ways To Get Your System's Network MAC Address</title>
<author>
<name>Andr&#233;s de la Cuadra</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=35012</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=35012</id>
<updated>2003-07-25T10:04:32-07:00</updated>
<published>2003-07-25T10:04:32-07:00</published>
<summary>re: Three Ways To Get Your System's Network MAC Address</summary>
<content>Do you have more information about it, sample code?I used netbios method and works just when there is a plugged cable and the computer is on line. I need to know the mac address even when there is no lan connection.</content>
</entry>
<entry>
<title>Three Ways To Get Your System's Network MAC Address</title>
<author>
<name>John Hoffman</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=34797</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=34797</id>
<updated>2003-06-16T08:06:02-07:00</updated>
<published>2003-06-16T08:06:02-07:00</published>
<summary>Three Ways To Get Your System's Network MAC Address</summary>
<content>Another alternative is to use the GetAdaptersInfo method in the IPHelper Functions lib ( Iphlpapi.lib/dll )</content>
</entry>
<entry>
<title>Three Ways To Get Your System's Network MAC Address</title>
<author>
<name>John Hoffman</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=34796</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=34796</id>
<updated>2003-06-16T08:04:54-07:00</updated>
<published>2003-06-16T08:04:54-07:00</published>
<summary>Three Ways To Get Your System's Network MAC Address</summary>
<content>Another alternative is to use the GetAdaptersInfo function in the IPHelper Functions lib (Iphlpapi.lib/dll).</content>
</entry>
<entry>
<title>not quite Three Ways To Get Your System's Network MAC Address</title>
<author>
<name>mARK bLOORE</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=33261</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=33261</id>
<updated>2002-10-03T08:19:22-07:00</updated>
<published>2002-10-03T08:19:22-07:00</published>
<summary>not quite Three Ways To Get Your System's Network MAC Address</summary>
<content>I have tried the SNMP method.  As a standalone program it works fine,but when I turned it into a subroutine and called it from my applicationit returned different results for each call.  Most calls returnedno results.  They all found a type 6 interface, but most times theloop hit one of the two continue statements and printed nothing.In none of the cases where it did print results were they correct.Does anyone know a reliable way to get this data?</content>
</entry>
</feed>
