473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Get the MAC Address

Hi EveryBody:

Can Some body tell me if my knowldge right that there are three types of MAC
address:

1\ the first one is for the lan network adapter

2\ and the second one for the wireless network adpter

3\ and the last one for the modem.

If that is correct can Some body tell me how can I get them programaticaaly
with vb.net code or redirect me to any site that might help me ?

any help will be appreciated

regard's

Husam
Aug 26 '07 #1
3 11529
In article <D6**********************************@microsoft.co m>,
Hu***@discussions.microsoft.com says...
Hi EveryBody:

Can Some body tell me if my knowldge right that there are three types of MAC
address:

1\ the first one is for the lan network adapter

2\ and the second one for the wireless network adpter

3\ and the last one for the modem.

If that is correct can Some body tell me how can I get them programaticaaly
with vb.net code or redirect me to any site that might help me ?
Use WMI:

http://tinyurl.com/2umjqj

--
Patrick Steele (pa*****@mvps.org)
http://weblogs.asp.net/psteele
Aug 26 '07 #2
On Sun, 26 Aug 2007 04:56:01 -0700, Husam
<Hu***@discussions.microsoft.comwrote:
>Hi EveryBody:

Can Some body tell me if my knowldge right that there are three types of MAC
address:

1\ the first one is for the lan network adapter

2\ and the second one for the wireless network adpter

3\ and the last one for the modem.

If that is correct can Some body tell me how can I get them programaticaaly
with vb.net code or redirect me to any site that might help me ?

any help will be appreciated

regard's

Husam
Imports System.Net.NetworkInformation

Dim networkcard() As NetworkInterface =
NetworkInterface.GetAllNetworkInterfaces()
Public netCard As String =
networkcard(0).GetPhysicalAddress.ToString

or use for ... next to inerate throw all network cards
Aug 27 '07 #3
It works but how do we do to retrieve the MAC address of each network interface installed on a single host
Sep 5 '07 #4

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

Similar topics

21
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
8
by: YAN | last post by:
Hi, I want to get the mac address from a machine, which i have the IP address of that machine, how can i do that? I know how to get the mac address of the local machine from the following code: ...
7
by: Privacy Advocate | last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an effort to get factual answers from JavaScript experts// Simply put; Is it possible to obtain the real (actual) IP address of...
33
by: baumann.Pan | last post by:
hi all, i want to get the address of buf, which defined as char buf = "abcde"; so can call strsep(address of buf, pointer to token);
4
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> ...
1
by: Phoenix_ver10 | last post by:
I have a mailing list with multiple names going to the same addresses. I need one address with all the names for that address on it. I checked out the example on microsoft's site, but A: It doesn't...
1
by: Jamie J. Begin | last post by:
I'm very new to the world of Python and am trying to wrap my head around it's OOP model. Much of my OOP experience comes from VB.Net, which is very different. Let's say I wanted to create an...
6
by: Nicolas Noakes | last post by:
Hello, I would like to convert to following process to code. Any advice is welcome. I have a hardware device which requires the this procedure to set it's IP address. First create an static...
36
by: Julienne Walker | last post by:
Ignoring implementation details and strictly following the C99 standard in terms of semantics, is there anything fundamentally flawed with describing the use of a (non-inline) function as an...
1
by: saravanatmm | last post by:
I need javascript code for validate the email address. Email address field cannot allowed the capital letters, special characters except '@' symbol. But can allowed the small letters, numeric...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.