|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
get ip address of NICI've got the following code, that gets the mac address of the card I'm looking for, but how can I also get the ip address of that card??? Thanks Dim scope As ManagementScope = New ManagementScope(ManagementPath.DefaultPath) Dim query As SelectQuery = New SelectQuery("Win32_NetworkAdapterConfiguration") ' this query returns all properties of the class Dim searcher As ManagementObjectSearcher = New ManagementObjectSearcher(scope, query) Dim mo As New ManagementObject For Each mo In searcher.Get() If (mo.Item("Caption").ToString) = "[00000016] Packet Scheduler Miniport" Then Try MACaddress = (mo.Item("MacAddress").ToString) 'Me.RichTextBox1.Text &= "Mac Address: " & MacAttack & vbCrLf Catch ex As Exception End Try End If Next try
Dim MyIp as Net.IPAddress = Net.Dns.GetHostByName(Net.Dns.GetHostName).AddressList.GetValue(0) -- -iwdu15
Destroying objects.
Run a Citrix App Custom Configuration file Sections in 2.0 ComboBox HELP Pleasse! Listview + Treeview Silent install needed for Visual Basic Express Simple question - Datagrid - how to detect change in a row cell? How to hide the messagebox ? is it Possible? Master-Detail Relationship |
|||||||||||||||||||||||