answersLogoWhite

0


Best Answer

You can use this to try and parse it: IPAddress.TryParse

Then check AddressFamily which

Returns System.Net.Sockets.AddressFamily.InterNetwork for IPv4 or System.Net.Sockets.AddressFamily.InterNetworkV6 for IPv6.

EDIT: some sample code. change as desired: string input = "your IP address goes here";

IPAddress address;

if (IPAddress.TryParse(input, out address))

{

switch (address.AddressFamily)

{

case System.Net.Sockets.AddressFamily.InterNetwork:

// we have IPv4

break;

case System.Net.Sockets.AddressFamily.InterNetworkV6:

// we have IPv6

break;

default:

// umm... yeah... I'm going to need to take your red packet and...

break;

}

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you determine if a website uses IPv4 or IPv6?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is IPv6 and when will it be used?

(Internet Protocol) IPv6 is the next step from IPv4. Currently we are not using IPv6 for our networks but soon it will implemented into our networks normally. IPv6 uses 128 bit spaces for its ip addresses were as IPv4 only uses 32 bit spaces. That means IPv6 can support 2128 addresses. I do not think we will run out of addresses with this version anytime soon.


Why IPv4 is called IPv4?

IPv4 is an abbreviation for Internet Protocol version 4, which is a 32 bit addressing method. IPv6 is an abbreviation for Internet Protocol version 6, which uses 128 bits.


Ip telephony uses which ip version?

I am not one-hundred percent certain, I do believe that ipv4 or ipv6 can be used. Obviously ipv6 can be used. I think ipv4 can be used also, with limitations or by meeting the required specifications with some backwards compatibility.


In networking what uses 32 bits for addressing?

In networking there are two version of IP addresses . IPV4 address that is Internet protocol version 4 uses 32 bits. IPV6 address that is Internet protocol version 6 uses 128 bits .


What are the uses of ipv6 for commercial?

what is the commercial use of ipv6?


What transport layer protocol does ping use?

Assuming IPv4 ICMP. Ping uses IP for transport. Ping in itself is an "Echo Request", which is a function of the ICMP protocol. The IP Packet will carry the ICMP protocol from end-to-end. ICMP has a protocol number of 1, so the "Protocol" field in the IPv4 header will contain "1" as a reference to the ICMP payload. For IPv6, ICMPv6 is used, and the transport will be IPv6.


What is the maximum number of IP addresses available?

In IPv4, which uses 4x bytes or 32 bits, there is a theoretical maximum of 4,294,967,296 IP addresses. In IPv6, which attempts to resolve the address shortage, uses 128bits, giving a maximum of ~ 340,282,366,920,938,463,463,374,607,431,770,000,000 addresses.


What is the difference between IP4 and IP6?

IPv6 is based on IPv4, it is an evolution of IPv4. So many things that we find with IPv6 are familiar to us. The main differences are:1.Simplified header format. IPv6 has a fixed length header, which does not include most of the options an IPv4 header can include. Even though the IPv6 header contains two 128 bit addresses (source and destination IP address) the whole header has a fixed length of 40 bytes only. This allows for faster processing.Options are dealt with in extension headers, which are only inserted after the IPv6 header if needed. So for instance if a packet needs to be fragmented, the fragmentation header is inserted after the IPv6 header. The basic set of extension headers is defined in RFC 2460.2.Address extended to 128 bits. This allows for hierarchical structure of the address space and provides enough addresses for almost every 'grain of sand' on the earth. Important for security and new services/devices that will need multiple IP addresses and/or permanent connectivity.3.A lot of the new IPv6 functionality is built into ICMPv6 such as Neighbor Discovery, Autoconfiguration, Multicast Listener Discovery, Path MTU Discovery.4.Enhanced Security and QoS Features.Answer:IPv4 means Internet Protocol version 4, whereas IPv6 means Internet Protocol version 6.IPv4 is 32 bits IP address that we use commonly, it can be 192.168.8.1, 10.3.4.5 or other 32 bits IP addresses. IPv4 can support up to 232 addresses, however the 32 bits IPv4 addresses are finishing to be used in near future, so IPv6 is developed as a replacement.IPv6 is 128 bits, can support up to 2128 addresses to fulfill future needs with better security and network related features. Here are some examples of IPv6 address:1050:0:0:0:5:600:300c:326bff06::c30:0:0:0:0:0:192.1.56.10The most important difference is that it has a larger address space. IPv6 uses 128 bits, instead of the 32 bits used in an IPv4 address.There are also some changes in the header format, and some additional options, like built-in security options. These can be added to IPv4 through additional protocols, so this is really no big deal.IPv4 is like 10.36.05.2 while IPv6 is one huge garble.IPv4 is a 32 bits IP address that we use commonly, it can be 192.168.8.1, 10.3.4.5 or other 32 bits IP addresses. IPv4 can support up to 232 addresses, however the 32 bits IPv4 addresses are finishing to be used in near future, so IPv6 is developed as a replacement.IPv6 is 128 bits, can support up to 2128 addresses to fulfill future needs with better security and network related features.Here are some examples of IPv6 address:1050:0:0:0:5:600:300c:326bff06::c30:0:0:0:0:0:192.1.56.10For More help, you can visit website:http://www.iyogibusiness.comThe main difference, at least the one that is most relevant for a transition from version 4 to version 6, is the length of the addresses. IPv4 uses 4 bytes; IPv6 uses 16 bytes for the address.Mainly, IPv6 has a larger addressing space; IPv6 addresses use 128 bits instead of 32 bits.


How many bits are in an IPv6?

IPv6 uses a 128-bit address space


What is the most recent and largest address space IP addressing scheme?

IP version 6, also known as IPv6, IP next generation, or IPng. It uses addresses of 16 bytes, instead of the 4 bytes used in IPv4.


The most recent and largest addresses space IP addressing scheme is?

IP version 6, also known as IPv6, IP next generation, or IPng. It uses addresses of 16 bytes, instead of the 4 bytes used in IPv4.


What is ipv4 protocol?

Well IPv4 is actually just part of the protocol TCP/IP or Transmission Control Protocol / Internet Protocol. IPv4 is the current addressing scheme used by TCP/IP. The newer IPv6 has been rolling out to eventually replace IPv4. Back to what it is… IPv4 is a 32 bit binary addressing scheme by which every computer on the public Internet (most commonly HTTP) or web servers must be assigned a unique address. The address format is comprised of four sets of 8 bit numbers, more commonly referred to as an octet. So 4 * 8 binary numbers give you a 32 bit IPv4 binary address. Because these numbers are binary each place value only has two possibilities, 0 or 1. Because there are only around 4.3 billion addresses available with 2^32 possible IPv4 addresses a new IPv6 was developed which gives a 128 bit addresses space. This should last until there is no room to stand anywhere on the planet. To summarize IPv4 is not a protocol but an addressing scheme that TCP/IP uses to transmit data packets over the Internet or over a private network. Every computer that is directly connected to the Internet needs a unique address. There are what is known as private IPv4 addresses, different topic, and finally IPv4 will eventually be replaced by IPv6.