Solved

Why the item (0) of System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName).AddressList is "::1"?

Posted on 2009-03-30
4
972 Views
Last Modified: 2012-05-06
Somebody knows why in my PC the first item (0) of System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName).AddressList has "::1" for value?
Thanks..

For Each theIP As System.Net.IPAddress In System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName).AddressList

            Dim theIPString = theIP.ToString

Next

Open in new window

0
Comment
Question by:bobdylan75
  • 2
4 Comments
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24016738
are your PC part of domain system? or are you working in stand alone pc?
0
 
LVL 18

Expert Comment

by:carlnorrbom
ID: 24016791
Hi,

An unassigned IPv6 address?

/Carl.
0
 
LVL 31

Accepted Solution

by:
RiteshShah earned 500 total points
ID: 24016849
that is why it is behaving like this. you can have a look at following URL. it will show you the way how to treat if there is IPv6

http://msdn.microsoft.com/en-us/library/system.net.ipaddress.aspx

http://www.daniweb.com/forums/thread168515.html
0
 

Author Comment

by:bobdylan75
ID: 24018427
Sorry, I explain better the situation:
In item(0) value is ::1
in item(1) value (correct) is 192.168.1.33
No, I'm not in a domain.
I'm connected by dhcp to a router.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now