Solved

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

Posted on 2009-03-30
4
970 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

19 Experts available now in Live!

Get 1:1 Help Now