stunner: Check Your NAT Type with STUN

Summary
Stunner is a Go command-line tool that compares STUN responses from multiple servers to estimate your NAT behavior. Use it to assess how readily devices behind your network may connect through hole punching.
At a glance
- Language
- Go
- License
- MIT
- Stars
- 182
- Forks
- 10
- Added to OSRepos
- May 13, 2026
- Last analyzed
- October 3, 2026
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
Stunner probes multiple STUN servers and compares the external IP and port mappings they observe. It turns those results into a best-effort NAT classification and an indication of how easy or hard hole punching may be.
It is useful when you need a quick network diagnostic, such as checking connectivity conditions for peer-to-peer connections. It is an experimental assessment, not a guarantee that a particular connection method will work.
Key Features
- Sends STUN Binding Requests to multiple servers for comparison.
- Fetches the Tailscale DERP map and selects servers automatically when none are specified.
- Accepts user-specified STUN servers and port settings.
- Supports binding to a chosen local IP address and port.
- Reports external mappings and an overall NAT classification in tables.
- Includes optional debug logging for STUN requests and responses.
Use Cases
- Network administrators can quickly inspect NAT behavior while troubleshooting connectivity.
- Developers building peer-to-peer applications can check whether a test network appears suitable for hole punching.
- Tailscale users can run a quick diagnostic using automatically selected DERP servers.
- Users comparing network environments can provide the same custom STUN servers to each test.
Project Facts
- Language: Go
- License: MIT
- Stars: 182
- Forks: 10
- Topics: network, tailscale
- Archived: No
Getting Started
Install with Go:
go install github.com/jaxxstorm/stunner@latest
Then run stunner to use automatically selected servers, or pass --stun-server values. See the README for installation alternatives and flags.
Considerations
- The README describes Stunner as an experimental proof of concept, and its NAT classification is a best-effort interpretation.
- Real NAT and firewall behavior can be more complex than the tests capture, so results may not predict whether a connection will succeed.
- Building from source requires Go 1.18 or later, as recommended by the project.
Source repository
Open the original repository on GitHub.
19 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

e2a: Email API for Applications and AI Agents
September 29, 2026
e2a provides an email API and relay for applications and AI agents. It supports transactional sending, inbound mailboxes, and agent replies, with optional human review and hosted or Docker-based deployment.

router: Route AI Requests to the Best Model
September 28, 2026
weave-os/router is a Go proxy that routes AI requests across configured model providers, while accepting Anthropic, OpenAI, and Gemini API formats. It suits developers who want model choice and routing behind one endpoint, including agent and coding-tool users.

ksail: Create and Operate Kubernetes Clusters
September 27, 2026
KSail is a Go-based toolkit for creating and operating Kubernetes clusters across local, nested, and cloud providers. It brings provisioning, GitOps, secrets, cluster operations, and AI interfaces into one tool, for developers and platform teams who want a unified workflow.

Memoh: Give AI Agents Dedicated Cloud Computers
September 26, 2026
Memoh is a multi-agent platform that gives each agent an isolated, always-on workspace with a desktop, browser, network access, and long-term memory. Use your own API keys or host agents such as Claude Code and Codex, either in Memoh Cloud or on your own infrastructure.