1stunc(1)                        sofia-sip-utils                       stunc(1)
2
3
4

NAME

6       stunc - .TH "stunc" 1 "Fri Mar 11 2011" "Version 1.12.11" "sofia-sip-
7       utils"
8

NAME

10       stunc - STUN test client
11
12       Author:
13           Pekka Pessi <Pekka.Pessi@nokia.com>
14
15           Martti Mela <Martti.Mela@nokia.com>
16
17           Kai Vehmanen <Kai.Vehmanen@nokia.com>
18
19       Date:
20           Created: Thu Jul 24 17:21:00 2003 ppessi
21

Synopsis

23       stunc [OPTIONS] <stun-server-address>
24

Description

26       The stunc utility can be used to gather information about possible NAT
27       devices that are located between the client and STUN server.
28
29       stunc can provide the following information: the IP address and port as
30       seen by the STUN server, detecting presence of NATs, and hints on the
31       type of address translation done. It should be noted that the results
32       of NAT type and life-time detection should be considered as hints.
33       There is no guarantee that NAT(s) will handle future packets in the
34       same way.
35

Command Line Options

37       The stunc utility accepts following command line options:
38
39       -b  Perform a STUN binding discovery. stunc will report the client
40           transport address (IP:port) as seen by the STUN server. In the
41           presence of NATs, this address is allocated by the NAT closest to
42           the STUN server.
43
44       -l  Perform a STUN binding life-time check.
45
46       -n  Perform a STUN binding type check. Notice that the results are only
47           hints. Nondeterministic behaviour, resource exhaustion, or reboots
48           of network elements can cause changes in NAT behaviour between
49           successive runs of stunc.
50
51       -r  Randomize the local port. Otherwise stunc let's the operating
52           system select a free port.
53
54       -s  Request a shared-secret over TLS. Tests whether the STUN server
55           supports the shared-secret mechanism (needed to protect message
56           integrity). Can be combined with -b, -l and -n.
57

Return Codes

59       0when successful 1when any errors detected
60

Examples

62       Discover the NAT binding, use a random local port:
63
64        $ stunc stunserver.org -b -r
65
66

Environment

68       STUN_DEBUG
69

Reporting Bugs

71       Report bugs to <sofia-sip-devel@lists.sourceforge.net>.
72

Authors

74       · Pekka Pessi <pekka -dot pessi -at- nokia -dot- com>
75
76       · Martti Mela <martti -dot mela -at- nokia -dot- com>
77
78       · Kai Vehmanen <kai -dot vehmanen -at- nokia -dot- com>
79
81       Copyright (C) 2005,2006 Nokia Corporation.
82
83       This program is free software; see the source for copying conditions.
84       There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
85       PARTICULAR PURPOSE.
86
87
88
89Version 1.12.11                 Fri Mar 11 2011                       stunc(1)
Impressum