I am using:
to get my IP address. I am getting this format returned:
I guess this is IPv6 format? I am doing some TCP stuff, and every time I try to connect, I get the error "no such host known". Is there a way to connect differently with this format or convert it? What is strange is when I go to canyouseeme.org, it gives me a normal address. Sorry..I am in the wrong forum as usually..
Here is how I get the address:
Is there a way to connect to an IP by its website or DNS name?
VB.NET:
Dim h As System.Net.IPHostEntry = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName)
lblIP.Text = h.AddressList.GetValue(0).ToString
to get my IP address. I am getting this format returned:
2002:450d:a56c::450d:a56c
I guess this is IPv6 format? I am doing some TCP stuff, and every time I try to connect, I get the error "no such host known". Is there a way to connect differently with this format or convert it? What is strange is when I go to canyouseeme.org, it gives me a normal address. Sorry..I am in the wrong forum as usually..
Here is how I get the address:
VB.NET:
Dim h As System.Net.IPHostEntry = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName)
Dim address1 as string = h.AddressList.GetValue(0).ToString())
Here is how I am trying to connect:
Dim tcp As New TcpClient
tcp.Connect(address1, 800)
Last edited by a moderator: