Author: harshal_shravgi | Posted on: 12/15/2006 2:52:17 AM | Views : 352

I want to display mac address of server machine. I have its IP address.

Actually I have written a function to find MAC Address as follows -


 Public Function FunG_GetMACAddress() As String
        Dim mc As System.Management.ManagementClass
        Dim mo As ManagementObject
        mc = New ManagementClass("Win32_NetworkAdapterConfiguration")
        Dim moc As ManagementObjectCollection = mc.GetInstances()
        For Each mo In moc
            If mo.Item("IPEnabled") = True Then
                Dim strAdapter As String
           &nb ...

Go to the complete details ...