Click here to Skip to main content
15,887,297 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# sp_attach_db execute Pin
betterc3-May-04 4:35
betterc3-May-04 4:35 
GeneralRe: C# sp_attach_db execute Pin
Heath Stewart3-May-04 4:36
protectorHeath Stewart3-May-04 4:36 
GeneralIPv6 help Pin
bouli3-May-04 2:10
bouli3-May-04 2:10 
GeneralRe: IPv6 help Pin
Jeff Varszegi3-May-04 2:29
professionalJeff Varszegi3-May-04 2:29 
GeneralRe: IPv6 help Pin
bouli3-May-04 2:43
bouli3-May-04 2:43 
GeneralRe: IPv6 help Pin
Heath Stewart3-May-04 2:45
protectorHeath Stewart3-May-04 2:45 
GeneralRe: IPv6 help Pin
bouli3-May-04 2:51
bouli3-May-04 2:51 
GeneralRe: IPv6 help Pin
Heath Stewart3-May-04 3:06
protectorHeath Stewart3-May-04 3:06 
Man, you really should learn about IPv6 addresses before you start digging into them. ::1 is the interface address. 0 would be the scope. Try running my little sample code on your machine.

Also, "::" in an IPv6 address masks out consecutive zeros, so it doesn't always include 8 32-bit integers.

The point is, you don't need to worry about all this. Use something like I did in my sample app and just use one of the interfaces returned in the IPHostEntry.AddressList property. It doesn't matter which one you use, they will all work. If all it returns is IPv6 (which won't be happening for several years at least), then you'd connect to that one. The .NET classes you'd be using really don't care which you use in many cases.

The ability of an app to use IPv6 is just the ability to recognize and connect using IPv6 addresses, but it doesn't mean that an app must use it. Use whatever address is return, whether it's the 1st address in the list or the last. It doesn't really matter.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: IPv6 help Pin
Heath Stewart3-May-04 2:44
protectorHeath Stewart3-May-04 2:44 
GeneralRe: IPv6 help Pin
bouli3-May-04 3:18
bouli3-May-04 3:18 
GeneralRe: IPv6 help Pin
Heath Stewart3-May-04 3:23
protectorHeath Stewart3-May-04 3:23 
QuestionPrograming USB in c++? Pin
lyto3-May-04 1:37
lyto3-May-04 1:37 
AnswerRe: Programing USB in c++? Pin
Corinna John3-May-04 1:50
Corinna John3-May-04 1:50 
QuestionBrowse files and folder control? Pin
Marlun2-May-04 23:19
Marlun2-May-04 23:19 
AnswerRe: Browse files and folder control? Pin
Mazdak3-May-04 1:51
Mazdak3-May-04 1:51 
GeneralRe: Browse files and folder control? Pin
Heath Stewart3-May-04 2:27
protectorHeath Stewart3-May-04 2:27 
GeneralRe: Browse files and folder control? Pin
Marlun3-May-04 2:51
Marlun3-May-04 2:51 
GeneralRe: Browse files and folder control? Pin
Heath Stewart3-May-04 3:08
protectorHeath Stewart3-May-04 3:08 
GeneralRe: Browse files and folder control? Pin
Marlun3-May-04 6:01
Marlun3-May-04 6:01 
AnswerRe: Browse files and folder control? Pin
Meysam Mahfouzi3-May-04 2:06
Meysam Mahfouzi3-May-04 2:06 
GeneralRe: Browse files and folder control? Pin
Marlun3-May-04 2:52
Marlun3-May-04 2:52 
GeneralCalling crypt32.dll functions from C# Pin
jamie__smith2-May-04 22:55
jamie__smith2-May-04 22:55 
GeneralRe: Calling crypt32.dll functions from C# Pin
Mazdak3-May-04 1:47
Mazdak3-May-04 1:47 
GeneralRe: Calling crypt32.dll functions from C# Pin
Heath Stewart3-May-04 2:25
protectorHeath Stewart3-May-04 2:25 
GeneralRe: Calling crypt32.dll functions from C# Pin
jamie__smith3-May-04 3:33
jamie__smith3-May-04 3:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.