Solved

How do you force the use of IPv6 in a .NET P2P Application?

Posted on 2014-07-21
5
403 Views
Last Modified: 2014-07-26
It is relatively straightforward to create a P2P application using .NET 4.5 but I cannot figure out how to force this type of application to use IPv6 over IPv4.  I have attempted to created an "old school" TCP application as well as one based on WCF but, in both cases, the application uses IPv4.

To be upfront, I do not need to use .NET - what I need is an application that runs in a peer, non web-based, manner that will ideally communicate either through IPv4 or IPv6 and within which I can control which version of IP is being used.  My company is providing a new type of communications security that works great on IPv4 (and UDP) but we really need to test out IPv6.

In fact, given that we are now running across Linux/Unix and Windows, a Java application would be preferable but I cannot find anything to that end either.

Can somebody possibly point me in the right direction?

Thank you for your time.
0
Comment
Question by:ktola
  • 3
  • 2
5 Comments
 

Author Comment

by:ktola
Comment Utility
As an additional note, I already tried the Windows Meeting Space option in Vista but it only works there and not on any other operating system.  Live Meeting (the Windows 7 equivalent) is supposed to run over IPv6 if that version is available on both ends but my tests show it always reverting back to IPv4 - even between two Windows 7 computers running on the same LAN...
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
in short: you would have to disable ipv4 on the computer, OR "intercept" any dns lookups that return ipv6 ip addresses and ignore any ipv4 address in your application...

so, using .net or not does not change a lot the picture here (though I have seen that for java, you can set a preference to ipv4 ...), it's more about "why" you want to force the ipv6...
0
 

Author Comment

by:ktola
Comment Utility
I need to see if our communications security works on IPv6 and we need to run a range of tests to that end.  Does it work at all?  How does it work under load?  And so forth.
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
Comment Utility
then, just disable the ipv4 protocol during the tests on the relevant machines...
0
 

Author Closing Comment

by:ktola
Comment Utility
Such a simple solution, I never thought of it!  Thanks!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Read about achieving the basic levels of HRIS security in the workplace.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now