Obtain Physical Address of a local machine

Momo

Member
Joined
May 30, 2006
Messages
21
Programming Experience
Beginner
Anybody have an idea on how to obtain the physical address from a local machine and the address which belongs to "loopback" type MUST be filtered out by using vb 2005?
Thanks.
 
isnt loopback always "127.0.0.1" ? it's been a while since i've taken networking classes

this will get the host name and ip of the current system:
VB.NET:
Import System.NET

Dim strHost As String
strHost = Dns.GetHostName()

Dim iphe AS IPHostEntry
iphe = Dns.GetHostByName(strHost)
 
actually, the physical address here is refer to Mac Address. We may obtain amc address by using class System.Management. But, the problem here is how i know the Mac address is belong to the my machine mac address or for the "loopback" .
The ip address for "loopback" not neccessary must be "127.0.0.1".(example)
As the Mac address format should be something like this "00-12-25-36-25-8e".

So, I would like know is that any method in vb.net or 2005 can get more information regarding the mac address.
thanks.
 
But, I still need to thanks you for your information. As I gain a new knowledge. Maybe I have post in the wrong place.
 
Back
Top