Re: Retrieving the MAC address?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Thomas.

(1) How do we retrieve the MAC address for any or all NIC on a PC?
http://www.codeproject.com/csharp/Host_Info_within_Network.asp - for all NIC
on a PC and Network
http://msdn2.microsoft.com/library/xt4877f8(en-us,vs.80).aspx -Supported in
Framework 2.0 [ MSDN2 - for VS 2005 beta]

(2) And do we make sure that it is correct?
Through Network command...
Run > cmd > type ipconfig/all [ this you can use it for checking or
verification]

(3) How do we make it work, even if disconnected from a network?
I tried and checked its not working....i mean i disabled my LAN and tried
IPCONFIG /All - so no idea about this more

Reply me if you want anything specifically in MAC.

Maheshkumar.R
http://spaces.msn.com/members/cyberiafreak

"Thomas Due" <tdue@xxxxxxxxxxxxxxx> wrote in message
news:uI3cjohqFHA.1028@xxxxxxxxxxxxxxxxxxxxxxx
> We currently use a method for retrieving a MAC address in which we use
> the "SendARP" method from the "iphlpapi.dll" library.
>
> As we have understod it, this method is actually deprecated, and
> unstable. So the question is:
>
> How do we retrieve the MAC address for any or all NIC on a PC?
> And do we make sure that it is correct?
> How do we make it work, even if disconnected from a network?
>
> If there isn't a NIC available, there is of course no MAC address, but
> any modern computer has a NIC as default, so we're not worried about
> not having a NIC available.
>
> We are currently using C# 1.1, but will switch to 2.0 when released.
>
> TYI
>
> --
> Thomas Due
> Posted with XanaNews version 1.17.5.9
>
> "The visionary lies to himself, the liar only to others."
> -- Friedrich Nietzsche


.



Relevant Pages

  • TidBITS#794/29-Aug-05
    ... This week's issue brings a potpourri of Mac news, ... Mark Anbinder looks briefly at Google Talk, ... Adding Tiger's AirPort Preferred Network List ...
    (comp.sys.mac.digest)
  • Re: IP addresses of devices on local network?
    ... But it turns out that the printer shows up in Bonjour Browser in various ... and even the Airport Express box has a Bonjour-advertised ... If any other devices connected to the physical network ... over Airport or Ethernet (recent Mac models). ...
    (uk.comp.sys.mac)
  • Re: All I have is the MAC address which are on our LAN so no routers are involved.
    ... echo Clearing ARP Cache ... an IP on MAC How to use TCP/IP without installing a NIC. ... How to Setup Windows, Network, VPN & Remote Access on = ... Anyway now I have the list of machines with MAC and IP, ...
    (microsoft.public.windowsxp.network_web)
  • Re: Re: All I have is the MAC address which are on our LAN so no routers are involved.
    ... addresses and then check the arp cache with "arp -a". ... an IP on MAC How to use TCP/IP without installing a NIC. ... How to Setup Windows, Network, VPN & Remote Access on = ... Anyway now I have the list of machines with MAC and IP, ...
    (microsoft.public.windowsxp.network_web)
  • Re: Setting up Airport Express
    ... It is usually referred to as a "MAC Address", ... on their network. ... always the hardware address assigned to the computer sending the packet. ... When your router receives a packet destined for a computer on your LAN, ...
    (uk.comp.sys.mac)