Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
VB.Net: Creating an IPv6 address the correct way
From Wiki
DO not use a string but use the power of the System.Net.IPAddress class.
- Imports System.IO
- Module Module1
- Sub Main()
- Dim _IPAddress As System.Net.IPAddress
- _IPAddress = New System.Net.IPAddress(New Byte() {125, 23, 23, 4, 125, 23, 23, 4, 125, 23, 23, 4, 125, 23, 23, 4})
- Console.WriteLine(_IPAddress.ToString)
- Console.ReadLine()
- End Sub
- End Module
For an IPv6 addres you are best to use a byte array with 16 elements.



LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.