Hey guys,
I cant seem to find the syntax in VB.NET to return my local IP address...
ie:
VB Code:
label1.Text = 'get my IP here
Any one know?
Thanks in advance fpr the help
Longy
Printable View
Hey guys,
I cant seem to find the syntax in VB.NET to return my local IP address...
ie:
VB Code:
label1.Text = 'get my IP here
Any one know?
Thanks in advance fpr the help
Longy
surely there is a way...
You can also enumerate the ip array and get all the ip address thats asociated with your machine.VB Code:
Dim ipHost As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName()) Dim ip As System.Net.IPAddress() = ipHost.AddressList Label1.Text = ip(0).ToString()
Hope that helped. :)
thanks man that helps alot...
although im still VERY confused about the whole sockets thing...
anyone got a VERY basic example or tutorial?
Thanks
longy