EnglishFrenchSpanish

OnWorks favicon

stunc - Online in the Cloud

Run stunc in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command stunc that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


stunc - STUN test client. STUN test client

Author:
Pekka Pessi [email protected]

Martti Mela [email protected]

Kai Vehmanen [email protected]

Date:
Created: Thu Jul 24 17:21:00 2003 ppessi

Synopsis


stunc [OPTIONS] <stun-server-address>

Description


The stunc utility can be used to gather information about possible NAT devices that are
located between the client and STUN server.

stunc can provide the following information: the IP address and port as seen by the STUN
server, detecting presence of NATs, and hints on the type of address translation done. It
should be noted that the results of NAT type and life-time detection should be considered
as hints. There is no guarantee that NAT(s) will handle future packets in the same way.

Command Line Options


The stunc utility accepts following command line options:

-b Perform a STUN binding discovery. stunc will report the client transport address
(IP:port) as seen by the STUN server. In the presence of NATs, this address is
allocated by the NAT closest to the STUN server.

-l Perform a STUN binding life-time check.

-n Perform a STUN binding type check. Notice that the results are only hints.
Nondeterministic behaviour, resource exhaustion, or reboots of network elements can
cause changes in NAT behaviour between successive runs of stunc.

-r Randomize the local port. Otherwise stunc let's the operating system select a free
port.

-s Request a shared-secret over TLS. Tests whether the STUN server supports the shared-
secret mechanism (needed to protect message integrity). Can be combined with -b, -l
and -n.

Return Codes


0when successful 1when any errors detected

Examples


Discover the NAT binding, use a random local port:

$ stunc stunserver.org -b -r

Environment


#STUN_DEBUG

Reporting Bugs


Report bugs to [email protected].

Authors


· Pekka Pessi <pekka -dot pessi -at- nokia -dot- com>

· Martti Mela <martti -dot mela -at- nokia -dot- com>

· Kai Vehmanen <kai -dot vehmanen -at- nokia -dot- com>

Copyright


Copyright (C) 2005,2006 Nokia Corporation.

This program is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Use stunc online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Osu!
    Osu!
    Osu! is a simple rhythm game with a well
    thought out learning curve for players
    of all skill levels. One of the great
    aspects of Osu! is that it is
    community-dr...
    Download Osu!
  • 2
    LIBPNG: PNG reference library
    LIBPNG: PNG reference library
    Reference library for supporting the
    Portable Network Graphics (PNG) format.
    Audience: Developers. Programming
    Language: C. This is an application that
    can also...
    Download LIBPNG: PNG reference library
  • 3
    Metal detector based on  RP2040
    Metal detector based on RP2040
    Based on Raspberry Pi Pico board, this
    metal detector is included in pulse
    induction metal detectors category, with
    well known advantages and disadvantages.
    RP...
    Download Metal detector based on RP2040
  • 4
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 5
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 6
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • More »

Linux commands

Ad