Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check if server is accessible via IPv6?

Tags:

c#

ipv6

Is is possible to check if a server is accessible via IPv6 with c#?

like image 273
marcus Avatar asked May 10 '11 08:05

marcus


People also ask

How do you check if IPv6 is being used?

Checking IPv6 Communication To verify whether a PC is already actively using IPv6, use a web browser to navigate to http://test-ipv6.com. This test site will return a fully-qualified IPv6 address in the second Summary bullet point.

How do I know if my server supports IPv6?

IPv6 Compatibility Checker tool verifies if a domain is using IPv6 on their network. This tool queries the domain's DNS Records to check if the IPv6 DNS Records resolves properly and returns some valid value or not. Just enter a domain and this tool instantly checks the IPv6 Compatibility against a given domain.

How do I test an IPv6 address?

By using I-P. show, you can check whether you are: On an IPv4 supported device here: https://v4.i-p.show. On an IPv6 supported device here: https://v6.i-p.show.

How do I know if I'm using IPv4 or IPv6?

IPv4 & IPv6 are both IP addresses that are binary numbers. IPv4 is 32 bit binary number while IPv6 is 128 bit binary number address. IPv4 address are separated by periods while IPv6 address are separated by colons.


2 Answers

Traverse the address list returned from Dns.GetHostEntry and check if any of the IsIPv6xxxx properties is set to true

like image 77
jgauffin Avatar answered Oct 03 '22 05:10

jgauffin


It depends on what you mean - if you know (or can resolve) the server's hostname or DNS name to an IPv6 address, it should be possible for you to do a couple of things.

You could either send a test packet using IPv6 to the server and see if you get a response back. Alternatively, if you're going IPv6 all the way, you could change your own network layer to be IPv6 only. On newer releases of Windows server I believe you can switch IPv6 on and IPv4 off.

Hope that helps!

like image 36
invertedlambda Avatar answered Oct 03 '22 03:10

invertedlambda