Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: NAT Traversal
danielcohee

From: USA
Posts: 2
Member Since: 07/09/14
posted July 9, 2014 10:12 PM

Does Sockets.NET support NAT traversal similar to the TcpListener in .NET 4?
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 10, 2014 11:34 AM

Hello,

Our Server class does not implement it, but I found this article:
http://blogs.msdn.com/b/ncl/archive/2009/07/27/end-to-end-connectivity-with-nat-traversal-.aspx

Which states that adding an App.Config file to your project (in .NET 4.0 or above) specifying the ipProtectionLevel (values other than Unrestricted are available):

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <system.net>
 <settings>
  <socket ipProtectionLevel="Unrestricted"/>
 </settings>
 </system.net>
</configuration>

Will implement NAT Traversal the same as the TcpListener: "This is what the System.Net listener implementations do when you invoke the previously mentioned AllowNatTraversal method." Note that this will affect all listening sockets in the same AppDomain.

Please let us know how this works out for you; we'd be interested in your results.
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX