This is how to get the internal IP address:
Imports System.Net
Dim ipAddress As IPHostEntry = Dns.GetHostByName(Dns.GetHostName)
Me.Text = ipAddress.AddressList.GetValue(0).ToString
I hope this helps,
--
Newbie Coder
(It's just a name)
Dim ipAddressInfo As IPHostEntry = Dns.GetHostEntry(Dns.GetHostName())
Dim ipAddress As String = ipAddressInfo.AddressList.GetValue(0).ToString
You're right that Dns.GetHostByName is obsolete in .NET 2.0,
Dns.GetHostEntry should be used instead.
Regards,
Walter Wang (waw...@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.