# jselbie/stunserver

Version 1.2. This is the source code to STUNTMAN - an open source STUN server and client code by john selbie.  Compliant with the latest RFCs including 5389, 5769, and 5780. Also includes backwards compatibility for RFC 3489. Compiles on Linux, MacOS, BSD, Solaris, and Win32 with Cygwin. Windows binaries avaialble from www.stunprotocol.org.

Repository: https://github.com/jselbie/stunserver
Canonical: https://ross.abutalabs.com/products/stunserver
Homepage: http://www.stunprotocol.org
Language: C++
License: Apache-2.0
License Family: permissive
Last push: 2026-05-12T01:29:29+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 81, release rhythm 35, longevity 100
- inputs: {"age_days": 5501, "days_push": 114, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1609, forks 375 (observed 2026-08-28T04:05:10.770884+00:00)

## What it is
STUNTMAN is an open source STUN server and client implementation in C++, compliant with RFCs 5389, 5769, and 5780 with backwards compatibility for RFC 3489. It supports UDP and TCP over IPv4 and IPv6, runs in basic or full mode, and includes a client library for embedding STUN in applications.

## Use cases
- self-host a STUN server for WebRTC applications
- discover a client's public IP address and port behind NAT
- run NAT behavior and filtering detection tests
- test STUN clients against a local server
- embed STUN client functionality in a C++ application
- deploy a STUN service on Amazon EC2

## When to choose
- you need a self-hosted, RFC-compliant STUN server for WebRTC or VoIP
- you need both UDP and TCP support with IPv4 and IPv6
- you want a C++ STUN client library to embed in your own app
- you need NAT behavior detection in full mode with two IP interfaces

## When to avoid
- you need STUN over TLS, which is not implemented
- you need built-in authentication with user credential lookup out of the box
- you need a TURN relay server rather than just STUN
- you prefer a managed cloud STUN service instead of self-hosting

## Facets
- artifact type: service
- maturity: stable
- function: networking, http-server, cli, developer-tools
- domain: networking, web-development, developer-tools, self-hosted
- platform: windows, bsd, cross-platform, cli, self-hosted
- tags: stun, nat-traversal, webrtc, rfc5389, voip, c-plus-plus, linux, macos

## Member repositories
- jselbie/stunserver (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:10.770884+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:51:17.346498+00:00, confidence not recorded.
  - readme: https://github.com/jselbie/stunserver (fetched 2026-08-28T04:05:10.770884+00:00, sha 53b5043f4174)
  - homepage: http://www.stunprotocol.org (fetched 2026-08-29T11:23:23.793118+00:00, sha c7a97f04dbc2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
