XSTUNT Library(STUNT Library in C/C++)
English | ¤¤¤å
What is STUNT
-
STUNT Simple Traversal of UDP Through NATs and TCP too (STUNT),
which extends STUN to include TCP functionality,
is a lightweight protocol that allows applications running
behind a NAT to determine external IP and port-binding properties,
packet filtering rules and various timeouts associated with TCP connections through the NAT.
The originator can be referred from http://nutss.gforge.cis.cornell.edu/stunt.php.
-
XSTUNT is a C/C++ library which implements "STUNT #2" approach in "Characterization and Measurement of TCP Traversal through NAT
and Firewalls". It provides programmers with a set of simple functions
to create STUNT connections through cooperating with a particular XSTUNT server.
-
XSTUNT helps to establish a direct TCP session if a destination is behind a NAT. Use the
plain TCP connection if a destination is in the public internet.
Binary
- XSTUNT Client Win32 Lib Win32 Dll (built by MS VC++ 7) Library 1.0
- XSTUNT Server Linux 1.0
- Echo Server/Client Sample 1.0: xecho Win32 Linux
- News: Experimental servers (59.124.31.21/59.124.31.19) are not running anymore, so to setup a XSTUNT server is necessary before your test. I apologize for this inconvenient.
Source
Examples
- Echo Server/Client: xecho
Example How To
- Run xecho on two machines behind "DIFFERENT" NATs or you may get ERR_SAME_NAT(-3975).
To handle this kind of problem (hairpin), please read the section:
XConnect in the reference.
- For Echo Server-
Usage: xecho server [Server ID] [STUNT Server IP1] [STUNT Server IP2]
Example: xecho server MyEchoServer 59.124.31.21 59.124.31.19
- For Echo Client-
Usage: xecho client [Client ID] [Server ID] [STUNT Server IP1] [STUNT Server IP2]
Example: xecho client MyEchoClient MyEchoServer 59.124.31.21 59.124.31.19
Docs
- XSTUNT Reference

License
Contact
Visitor
The page © 2006 xDreaming Tech. Co., Ltd.. All rights reserved.