Solved

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

Posted on 2014-07-21
5
443 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:ktola
ID: 40209334
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 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 40210751
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
ID: 40211596
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 143

Accepted Solution

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

Author Closing Comment

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

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

690 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