Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
Hey i am trying to disable Ipv6 through C# code but i am not getting any perfect soln...

or can any one tell, how i can convert my IPv6 address into Ipv4 using C# code only or any alternative ????

Ashish...
Posted
Updated 21-Apr-10 0:55am
v2

1 solution

To disable IPv6 you can create a DWORD 32-bit registry value named “DisabledComponents” in the following registry key branch:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tcpip6\Parameters\

The value data for DisabledComponents must be set to 000000FF.

This can be done in C# code ([MSDN] How to: Create a Key In the Registry (Visual C#)

As for converting IPv6 into IPv4. This is impossible. Also one of the biggest issues in switching worldwide from v6 to v4 because basicly the entire world needs to switch at the same time ;)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900