How do I convert an IPv4 addres to IPv6 in C#?
My app has so far only encountered IPv4 addresses and I use:
Dns.GetHostByName( "someOtherComputer", portNumber ).AddressList[0].
Can someone please point me to an example of how to turn this into an IPv6
address?
Thanks in advance.
Chris Hough
.
Relevant Pages
- Re: http://www.ntp.org/ => a blank page?
... At the app level, ... getaddrinfowhich is used by all newer apps returns both IPv4 and IPv6 ... You might want to spend a little time curling up with RFC 3484, ... DNS makes no ... (comp.protocols.time.ntp) - Re: http://www.ntp.org/ => a blank page?
... At the app level, ... getaddrinfowhich is used by all newer apps returns both IPv4 and IPv6 ... You might want to spend a little time curling up with RFC 3484, ... results Martin saw that only machines with IPv6 global addresses were ... (comp.protocols.time.ntp) - Re: How to determine if IPv6 is installed (using VC++ 6.0)
... and find that your app puts up a dialog box saying "IPv6 ... better message would be "App X cannot detect a supported version of IPv6. ... IPv6 may or may not work yada, ... Second if he contacts support he may remeber to mention this message which ... (microsoft.public.win32.programmer.networks) - Re: http://www.ntp.org/ => a blank page?
... though the DNS server first returns an IPv4 ... At the app level, ... a name indicating both IPv4 and IPv6 addresses are desired, ... (comp.protocols.time.ntp) - Re: [PHP] $_SERVER["REMOTE_ADDR"] returning ::1
... Request it with an IPv6 domain/IP and REMOTE_ADDR will also be IPv6. ... This app uses this test to insure that the page being processed came from the same machine as was used to login to the app. ... If you really need to use IP then you can probably rely on it not switching between v4 and v6 if you're not using localhost. ... using the real ip addr solved my problem as far as my test install is concerned. ... (php.general) |
|