Click here to Skip to main content
15,890,946 members
Articles / Desktop Programming / MFC

Getting the Physical (MAC) address of a Network Interface Card and finding out if it is the primary adapter on a multi-homed system

Rate me:
Please Sign up or sign in to vote.
4.80/5 (22 votes)
14 Mar 2006CPOL4 min read 235.2K   15.5K   107  
This article describes how to obtain a Network Interface Card's (NIC) Physical or Ethernet (MAC) address. It also shows how to identify if a network adapter is the primary adapter on a multi-homed system. If not, it shows how to find and get the primary adapter's IP and MAC addresses.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
Although an electrical engineer by major, I slowly transformed into a software developer as I realized I liked working with logical AND and ORs more than the physical ones on chips. I have taught C++ at ITT tech and worked on videoconferencing as a programmer. A summer class at Harvard got me into windows programming and I have enjoyed it ever since.

I like hiking, camping, walking and swimming. Tennis gets me going too as does discussing human psychology.

Comments and Discussions