Hi,
Am looking for away to list the multiple IP addresses a computer can have, either from wireless card, LAN card, and VPN connections ect...
I have been able to do this but it only lists one IP address, is there away to expand this code to list all IP addresses assigned to the computer it is run on?
Am using VB.NET 2008.
Here is the code I have so far;
Thanks for any help...
Am looking for away to list the multiple IP addresses a computer can have, either from wireless card, LAN card, and VPN connections ect...
I have been able to do this but it only lists one IP address, is there away to expand this code to list all IP addresses assigned to the computer it is run on?
Am using VB.NET 2008.
Here is the code I have so far;
VB.NET:
Dim myHost As String = System.Net.Dns.GetHostName
Dim myIPs As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(myHost)
For Each myIP As System.Net.IPAddress In myIPs.AddressList
ipaddlab.Text = myIP.ToString
'ipadd1lab.Text = myIP.ToString
Next
Thanks for any help...
Last edited: