# Gonc: Netcat with Zero-Config P2P NAT Traversal and End-to-End Encryption

Original title: Gonc – Netcat with P2P Nat Traversal

> Hacker News story 49654148 · language: en · submitted 2026-09-11
> Web version: https://zeli.app/story/49654148
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 19 · by [gonc_cc](<https://news.ycombinator.com/user?id=gonc_cc>) · 💬 5
[original](<https://github.com/threatexpert/gonc>) · [HN discussion](<https://news.ycombinator.com/item?id=49654148>)

## Summary

Gonc is a Golang-based netcat alternative that adds automated NAT traversal with zero configuration—just agree on a passphrase. It uses public STUN and MQTT servers for address exchange, establishes direct P2P connections (IPv6 TCP > IPv4 TCP > IPv4 UDP) with TLS 1.3 or DTLS encryption and mutual authentication. Beyond shell access and file transfer, it offers built-in SOCKS5/HTTP proxies, reverse shells with pseudo-terminal support, and flexible service configuration via -e. No relay servers; either it connects directly or fails.

## Key quote

> No relay servers are used, and no fallback mechanisms are provided — either the connection fails, or it's a real P2P success.

## HN discussion (5 comments)

### [nicman23](<https://news.ycombinator.com/item?id=49682209>)

> there are public stun servers ???

### [gonc_cc](<https://news.ycombinator.com/item?id=49654204>)

> A simple example:
>
> On one machine:
>
> `echo Hello | gonc -p2p <passphrase>`
>
> On the other:
>
> `gonc -p2p <passphrase>`
>
> The second machine will print:
>
> `Hello`
>
> Both sides use the same command and passphrase. There is no separate server/client role.
>
> If NAT traversal succeeds, a direct connection is established. There is no relay by default.

---

## Cite

- Page: https://zeli.app/story/49654148
- Date: 2026-09-11
- Source: github.com (https://github.com/threatexpert/gonc)
- Hacker News: https://news.ycombinator.com/item?id=49654148

## Other languages

- zh: https://zeli.app/zh/story/49654148 · markdown: https://zeli.app/zh/story/49654148.md
- ja: https://zeli.app/ja/story/49654148 · markdown: https://zeli.app/ja/story/49654148.md
- ko: https://zeli.app/ko/story/49654148 · markdown: https://zeli.app/ko/story/49654148.md
- de: https://zeli.app/de/story/49654148 · markdown: https://zeli.app/de/story/49654148.md
- es: https://zeli.app/es/story/49654148 · markdown: https://zeli.app/es/story/49654148.md
- ru: https://zeli.app/ru/story/49654148 · markdown: https://zeli.app/ru/story/49654148.md
